aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Morey-Chaisemartin <nmorey@kalray.eu>2015-07-21 10:05:24 +0200
committerMaxim Uvarov <maxim.uvarov@linaro.org>2015-07-27 13:09:59 +0300
commit1338a46573b2c602e3565cb1f372dabef3497eb4 (patch)
tree0032d0a6c4e877239f9a427e9c3d04639c703dbd
parentc959e03c601287183c07223d193982bbf36d56cd (diff)
validation: packet: do not account for head or tail room in packet length computations
It is the pool responsibility to ensure that there is enough space available for headroom and tailroom in the segment(s) Also fixes the issue where ODP_CONFIG_PACKET_SEG_MIN_LEN < ODP_CONFIG_PACKET_HEADROOM Signed-off-by: Nicolas Morey-Chaisemartin <nmorey@kalray.eu> Reviewed-and-tested-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
-rw-r--r--test/validation/packet/packet.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/test/validation/packet/packet.c b/test/validation/packet/packet.c
index e6fb18ab7..329482a89 100644
--- a/test/validation/packet/packet.c
+++ b/test/validation/packet/packet.c
@@ -19,12 +19,9 @@
static odp_pool_t packet_pool;
static const uint32_t packet_len = PACKET_BUF_LEN -
- ODP_CONFIG_PACKET_HEADROOM -
- ODP_CONFIG_PACKET_TAILROOM -
PACKET_TAILROOM_RESERVE;
static const uint32_t segmented_packet_len = PACKET_BUF_LEN * 5 -
- ODP_CONFIG_PACKET_HEADROOM - ODP_CONFIG_PACKET_TAILROOM -
PACKET_TAILROOM_RESERVE;
odp_packet_t test_packet, segmented_test_packet;