aboutsummaryrefslogtreecommitdiff
path: root/include/odp/api/spec/packet.h
diff options
context:
space:
mode:
authorAshwin Sekhar T K <asekhar@marvell.com>2020-10-16 10:24:49 +0530
committerMatias Elo <matias.elo@nokia.com>2020-11-02 13:33:21 +0200
commit603739117ed51d72f305e465fc70764f928026f4 (patch)
treefa0e6620f0d9eabe34e08cc2985c2a8ee52e1fb6 /include/odp/api/spec/packet.h
parent630f9ac536dd1c1b021f5dd560f2bcc800fb036f (diff)
api: packet: move odp_packet_chksum_status_t enum
Move odp_packet_chksum_status_t enum from spec/packet.h to abi/packet.h to allow platform specific header files to make use of this enumeration. Currently this is not possible as spec/packet.h is included after the platform specific header files. Signed-off-by: Ashwin Sekhar T K <asekhar@marvell.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
Diffstat (limited to 'include/odp/api/spec/packet.h')
-rw-r--r--include/odp/api/spec/packet.h31
1 files changed, 15 insertions, 16 deletions
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