diff mbox series

[API-NEXT,v3,2/2] linux-gen: add L2 type support for non-ABI-compat mode

Message ID 1518620408-18352-3-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [API-NEXT,v3,1/2] api: packet add L2 packet type to complement L3 and L4 types | expand

Commit Message

Github ODP bot Feb. 14, 2018, 3 p.m. UTC
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 476 (lumag:l2-type)
 ** https://github.com/Linaro/odp/pull/476
 ** Patch: https://github.com/Linaro/odp/pull/476.patch
 ** Base sha: 4b1101adedf0941f6db34047cc06fde11fb06a34
 ** Merge commit sha: d4636c5108ebc788ba06616a49ad536163961f5f
 **/
 platform/linux-generic/include-abi/odp/api/abi/packet.h | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/platform/linux-generic/include-abi/odp/api/abi/packet.h b/platform/linux-generic/include-abi/odp/api/abi/packet.h
index 137cd3ec4..92fe21a8a 100644
--- a/platform/linux-generic/include-abi/odp/api/abi/packet.h
+++ b/platform/linux-generic/include-abi/odp/api/abi/packet.h
@@ -47,6 +47,11 @@  static inline odp_packet_seg_t _odp_packet_seg_from_ndx(uint8_t ndx)
 
 #define ODP_PACKET_SEG_INVALID ((odp_packet_seg_t)-1)
 
+typedef uint8_t odp_proto_l2_type_t;
+
+#define ODP_PROTO_L2_TYPE_NONE   0
+#define ODP_PROTO_L2_TYPE_ETH    1
+
 typedef uint8_t odp_proto_l3_type_t;
 
 #define ODP_PROTO_L3_TYPE_NONE   0