aboutsummaryrefslogtreecommitdiff
path: root/include/odp
diff options
context:
space:
mode:
authorBill Fischofer <bill.fischofer@linaro.org>2015-02-19 12:49:59 -0600
committerMaxim Uvarov <maxim.uvarov@linaro.org>2015-02-20 21:01:49 +0300
commit1ddfc9a9a1a278fcc8e5db8b1a23c402cee3c33d (patch)
tree545e162dde4b526c713494f0559add4c99f042e1 /include/odp
parent5203c851b4b4834a17df48366b8d3c7ca545f15d (diff)
api: linux-generic: pools: cleanup to reflect new pool parameters
linux-generic: pools: cleanup to reflect new pool parameters and simplify packet configuration Remove headroom/tailroom from ODP_CONFIG_PACKET_SEG_LEN_MIN and clarify meaning of ODP_CONFIG_PACKET_SEG_LEN_MAX. Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org> Reviewed-by: Petri Savolainen <petri.savolainen@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'include/odp')
-rw-r--r--include/odp/api/config.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/include/odp/api/config.h b/include/odp/api/config.h
index ff9d5f24e..8f1139dba 100644
--- a/include/odp/api/config.h
+++ b/include/odp/api/config.h
@@ -95,15 +95,8 @@ extern "C" {
* This defines the minimum packet segment buffer length in bytes. The user
* defined segment length (seg_len in odp_pool_param_t) will be rounded up into
* this value.
- *
- * @internal In linux-generic implementation:
- * - The value MUST be a multiple of 8.
- * - The value MUST be a multiple of ODP_CACHE_LINE_SIZE
- * - The default value (1664) is large enough to support 1536-byte packets
- * with the default headroom shown above and is a multiple of both 64 and 128,
- * which are the most common cache line sizes.
*/
-#define ODP_CONFIG_PACKET_SEG_LEN_MIN (1664)
+#define ODP_CONFIG_PACKET_SEG_LEN_MIN (1598)
/**
* Maximum packet segment length
@@ -111,9 +104,8 @@ extern "C" {
* This defines the maximum packet segment buffer length in bytes. The user
* defined segment length (seg_len in odp_pool_param_t) must not be larger than
* this.
- *
*/
-#define ODP_CONFIG_PACKET_SEG_LEN_MAX ODP_CONFIG_PACKET_SEG_LEN_MIN
+#define ODP_CONFIG_PACKET_SEG_LEN_MAX (64*1024)
/**
* Maximum packet buffer length