API Reference Manual  1.48.0
api/abi-default/packet_types.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright (c) 2017-2018 Linaro Limited
3  * Copyright (c) 2021 Nokia
4  */
5 
6 #ifndef ODP_ABI_PACKET_TYPES_H_
7 #define ODP_ABI_PACKET_TYPES_H_
8 
9 #include <stdint.h>
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
16 typedef struct { char dummy; } _odp_abi_packet_t;
17 
19 typedef struct { char dummy; } _odp_abi_packet_seg_t;
20 
22 typedef struct { char dummy; } _odp_abi_packet_buf_t;
23 
25 typedef struct { char dummy; } _odp_abi_packet_vector_t;
26 
28 typedef struct { char dummy; } _odp_abi_packet_tx_compl_t;
29 
39 
40 #define ODP_PACKET_INVALID ((odp_packet_t)0)
41 #define ODP_PACKET_SEG_INVALID ((odp_packet_seg_t)0)
42 #define ODP_PACKET_BUF_INVALID ((odp_packet_buf_t)0)
43 #define ODP_PACKET_OFFSET_INVALID 0xffff
44 #define ODP_PACKET_VECTOR_INVALID ((odp_packet_vector_t)0)
45 #define ODP_PACKET_TX_COMPL_INVALID ((odp_packet_tx_compl_t)0)
46 
47 typedef enum {
51  ODP_PACKET_ALL_COLORS = 3,
53 
54 typedef enum {
59 
60 
65 #ifdef __cplusplus
66 }
67 #endif
68 
69 #endif
_odp_abi_packet_vector_t * odp_packet_vector_t
ODP packet vector.
_odp_abi_packet_buf_t * odp_packet_buf_t
ODP packet buffer.
_odp_abi_packet_seg_t * odp_packet_seg_t
ODP packet segment.
odp_packet_chksum_status_t
Checksum check status in packet.
odp_packet_color_t
Color of packet for shaper/drop processing.
_odp_abi_packet_tx_compl_t * odp_packet_tx_compl_t
ODP Packet Tx completion.
_odp_abi_packet_t * odp_packet_t
ODP packet.
@ ODP_PACKET_CHKSUM_BAD
Checksum was checked and it was not correct.
@ ODP_PACKET_CHKSUM_OK
Checksum was checked and it was correct.
@ ODP_PACKET_CHKSUM_UNKNOWN
Checksum was not checked.
@ ODP_PACKET_YELLOW
Packet is yellow.
@ ODP_PACKET_RED
Packet is red.
@ ODP_PACKET_GREEN
Packet is green.