aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/odp/api/abi-default/packet.h6
-rw-r--r--include/odp/api/spec/packet.h31
-rw-r--r--platform/linux-generic/include-abi/odp/api/abi/packet.h6
3 files changed, 27 insertions, 16 deletions
diff --git a/include/odp/api/abi-default/packet.h b/include/odp/api/abi-default/packet.h
index ab7d8ff5c..57e255c57 100644
--- a/include/odp/api/abi-default/packet.h
+++ b/include/odp/api/abi-default/packet.h
@@ -70,6 +70,12 @@ typedef enum {
ODP_PACKET_ALL_COLORS = 3,
} odp_packet_color_t;
+typedef enum {
+ ODP_PACKET_CHKSUM_UNKNOWN = 0,
+ ODP_PACKET_CHKSUM_BAD,
+ ODP_PACKET_CHKSUM_OK
+} odp_packet_chksum_status_t;
+
/** Parse result flags */
typedef struct odp_packet_parse_result_flag_t {
/** Flags union */
diff --git a/include/odp/api/spec/packet.h b/include/odp/api/spec/packet.h
index 924658e34..bf979ecf9 100644
--- a/include/odp/api/spec/packet.h
+++ b/include/odp/api/spec/packet.h
@@ -168,6 +168,21 @@ extern "C" {
*/
/**
+ * @enum odp_packet_chksum_status_t
+ * Checksum check status in packet
+ *
+ * @var ODP_PACKET_CHKSUM_UNKNOWN
+ * Checksum was not checked. Checksum check was not
+ * attempted or the attempt failed.
+ *
+ * @var ODP_PACKET_CHKSUM_BAD
+ * Checksum was checked and it was not correct.
+ *
+ * @var ODP_PACKET_CHKSUM_OK
+ * Checksum was checked and it was correct.
+ */
+
+/**
* Protocol
*/
typedef enum odp_proto_t {
@@ -219,22 +234,6 @@ typedef struct odp_packet_data_range {
} odp_packet_data_range_t;
/**
- * Checksum check status in packet
- */
-typedef enum odp_packet_chksum_status_t {
- /** Checksum was not checked. Checksum check was not attempted or
- * the attempt failed. */
- ODP_PACKET_CHKSUM_UNKNOWN = 0,
-
- /** Checksum was checked and it was not correct */
- ODP_PACKET_CHKSUM_BAD,
-
- /** Checksum was checked and it was correct */
- ODP_PACKET_CHKSUM_OK
-
-} odp_packet_chksum_status_t;
-
-/**
* Event subtype of a packet
*
* Returns the subtype of a packet event. Subtype tells if the packet contains
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 15f186b41..de4d822b4 100644
--- a/platform/linux-generic/include-abi/odp/api/abi/packet.h
+++ b/platform/linux-generic/include-abi/odp/api/abi/packet.h
@@ -77,6 +77,12 @@ typedef enum {
ODP_PACKET_ALL_COLORS = 3,
} odp_packet_color_t;
+typedef enum {
+ ODP_PACKET_CHKSUM_UNKNOWN = 0,
+ ODP_PACKET_CHKSUM_BAD,
+ ODP_PACKET_CHKSUM_OK
+} odp_packet_chksum_status_t;
+
typedef struct odp_packet_parse_result_flag_t {
union {
uint64_t all;