diff options
author | Matias Elo <matias.elo@nokia.com> | 2019-09-17 14:58:07 +0300 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2019-10-23 11:35:58 +0300 |
commit | cc4e3434ca806736fd0c586ed36bc34f3d3b2bd4 (patch) | |
tree | 3cf6e40c80a347787e681801b6665923ddcb7098 /platform/linux-generic/include/odp_config_internal.h | |
parent | 916bfae5098242dd7e5121c789b1dbe20c8453ea (diff) |
linux-gen: packet: reimplement segmentation using linked list
Packet segmentation has been reimplemented using a linked list. The new
implementation is more simple and has the added benefit of reducing
packet and buffer header sizes:
odp_packet_hdr_t: 384B -> 256B
odp_buffer_hdr_t: 256B -> 64B
The dynamic packet reference implementation has been temporarily downgraded
to a simple packet copy.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'platform/linux-generic/include/odp_config_internal.h')
-rw-r--r-- | platform/linux-generic/include/odp_config_internal.h | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/platform/linux-generic/include/odp_config_internal.h b/platform/linux-generic/include/odp_config_internal.h index 2e1d61d36..e283472a0 100644 --- a/platform/linux-generic/include/odp_config_internal.h +++ b/platform/linux-generic/include/odp_config_internal.h @@ -1,4 +1,5 @@ /* Copyright (c) 2016-2018, Linaro Limited + * Copyright (c) 2019, Nokia * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause @@ -89,21 +90,6 @@ extern "C" { #define CONFIG_PACKET_TAILROOM 0 /* - * Maximum number of segments per packet - */ -#define CONFIG_PACKET_MAX_SEGS 255 - -/* - * Packet segmentation disabled - */ -#define CONFIG_PACKET_SEG_DISABLED (CONFIG_PACKET_MAX_SEGS == 1) - -/* - * Number of segments stored in a packet header - */ -#define CONFIG_PACKET_SEGS_PER_HDR 6 - -/* * Maximum packet data length in bytes */ #define CONFIG_PACKET_MAX_LEN (64 * 1024) |