aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/odp/odp_packet.h
diff options
context:
space:
mode:
authorMichal Mazur <mkm@semihalf.com>2018-01-04 21:13:02 +0100
committerMichal Mazur <mkm@semihalf.com>2018-01-11 22:32:38 +0100
commit374d34e4bdf2c90979e856baf114e8576f0eabe7 (patch)
treeeada5c73dac6c32545ff043cd505ca4996db02f4 /src/plugins/odp/odp_packet.h
parent192a196b02b35d1f69d0679d138436bcac9d3034 (diff)
plugins: odp: Add support for free list of buffers
Free lists are required by some VPP nodes e.g. IPv6. Update copyrigths as lots of code were imported from src/vlib/buffer.c Change-Id: Ie4c56d3a3104624fe77a04069fe3ba1281d3f0cb Signed-off-by: Michal Mazur <mkm@semihalf.com>
Diffstat (limited to 'src/plugins/odp/odp_packet.h')
-rwxr-xr-xsrc/plugins/odp/odp_packet.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/odp/odp_packet.h b/src/plugins/odp/odp_packet.h
index edd3ecaa..57b651ef 100755
--- a/src/plugins/odp/odp_packet.h
+++ b/src/plugins/odp/odp_packet.h
@@ -4,11 +4,11 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
+#include <vlib/buffer.h>
#include <odp_api.h>
#include <odp/helper/odph_api.h>
-#define SHM_PKT_BUF_SIZE 1598
-#define SHM_PKT_POOL_BUF_SIZE 1856
+#define SHM_PKT_POOL_BUF_SIZE (VLIB_BUFFER_DATA_SIZE)
#define SHM_PKT_POOL_NB_PKTS 10240
#define SHM_PKT_POOL_NAME "packet_pool"