aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-dpdk/include
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2021-01-04 13:56:40 +0200
committerMatias Elo <matias.elo@nokia.com>2021-02-12 10:34:29 +0200
commit6282c4027e8b931f744ac83196168a0f13709b81 (patch)
tree2d4b6693e427ec9e64be1342f46b08ec882186a7 /platform/linux-dpdk/include
parentce5f6302bba529be9b1473134d823e13f1ab8da4 (diff)
linux-dpdk: packet: replace deprecated rte_mbuf.userdata/udata64 fields
The deprecated rte_mbuf.userdata/udata64 fields have been removed in DPDK v20.11. Store ODP packet user pointer inside odp_buffer_hdr_t. Fixes: https://github.com/OpenDataPlane/odp-dpdk/issues/113 Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
Diffstat (limited to 'platform/linux-dpdk/include')
-rw-r--r--platform/linux-dpdk/include/odp_buffer_internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/linux-dpdk/include/odp_buffer_internal.h b/platform/linux-dpdk/include/odp_buffer_internal.h
index ed36fd4f3..213d2c35b 100644
--- a/platform/linux-dpdk/include/odp_buffer_internal.h
+++ b/platform/linux-dpdk/include/odp_buffer_internal.h
@@ -73,6 +73,9 @@ struct odp_buffer_hdr_t {
/* --- Mostly read only data --- */
+ /* User pointer */
+ const void *user_ptr;
+
/* Pool pointer */
void *pool_ptr;
};