From 603739117ed51d72f305e465fc70764f928026f4 Mon Sep 17 00:00:00 2001 From: Ashwin Sekhar T K Date: Fri, 16 Oct 2020 10:24:49 +0530 Subject: 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 Reviewed-by: Matias Elo --- include/odp/api/spec/packet.h | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) (limited to 'include/odp/api/spec/packet.h') 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 @@ -167,6 +167,21 @@ extern "C" { * Layer 4 protocol type is ROHC */ +/** + * @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 */ @@ -218,22 +233,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 * -- cgit v1.2.3