aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/include-abi
diff options
context:
space:
mode:
authorJerin Jacob <jerinj@marvell.com>2020-09-03 15:30:39 +0530
committerPetri Savolainen <petri.savolainen@nokia.com>2020-11-19 09:49:08 +0200
commit527561e9a4c71e7edcddf380a86478f824e46496 (patch)
tree6578d2ee3c282c3919afefe40dca276898d2e930 /platform/linux-generic/include-abi
parentcdc1750bc40b72fc194ad69bb4db57618f13f2ac (diff)
api: event: introduce packet vector event
Introduce packet vector events which hold an array of odp_packet_t. This patch also introduce the odp_packet_vector_from_event() and odp_packet_vector_to_event() event conversion APIs. In order to build the linux-generic in --disable-abi-compat mode, A dummy definition of odp_packet_vector_t has been added. Signed-off-by: Matias Elo <matias.elo@nokia.com> Signed-off-by: Jerin Jacob <jerinj@marvell.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'platform/linux-generic/include-abi')
-rw-r--r--platform/linux-generic/include-abi/odp/api/abi/packet.h4
1 files changed, 4 insertions, 0 deletions
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 de4d822b4..602222cd6 100644
--- a/platform/linux-generic/include-abi/odp/api/abi/packet.h
+++ b/platform/linux-generic/include-abi/odp/api/abi/packet.h
@@ -35,6 +35,10 @@ typedef ODP_HANDLE_T(odp_packet_seg_t);
#define ODP_PACKET_SEG_INVALID _odp_cast_scalar(odp_packet_seg_t, 0)
+typedef ODP_HANDLE_T(odp_packet_vector_t);
+
+#define ODP_PACKET_VECTOR_INVALID _odp_cast_scalar(odp_packet_vector_t, 0)
+
#define ODP_PACKET_OFFSET_INVALID 0xffff
typedef uint8_t odp_proto_l2_type_t;