From: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org>

Reuse odp_packet_parse_chksum_t from packet API to ease passing checksum
flags to packet parsing functions.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org>
---
/** Email created from pull request 314 (lumag:ipsec-chksum)
 ** https://github.com/Linaro/odp/pull/314
 ** Patch: https://github.com/Linaro/odp/pull/314.patch
 ** Base sha: 4cb02e1caccb9179575e95448fd46979e17d0905
 ** Merge commit sha: 5150c0fba1777777f4e9a7d0b37c7d02639d54be
 **/
 include/odp/api/spec/ipsec.h | 27 +--------------------------
 1 file changed, 1 insertion(+), 26 deletions(-)

diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index 4a33af8ea..15d7d25ff 100644
--- a/include/odp/api/spec/ipsec.h
+++ b/include/odp/api/spec/ipsec.h
@@ -159,32 +159,7 @@ typedef struct odp_ipsec_inbound_config_t {
         *  level. Checksum checking status can be queried for each packet with
         *  odp_packet_l3_chksum_status() and odp_packet_l4_chksum_status().
         */
-       union {
-               /** Mapping for individual bits */
-               struct {
-                       /** Check IPv4 header checksum in IPSEC payload.
-                        *  Default value is 0. */
-                       uint32_t ipv4_chksum   : 1;
-
-                       /** Check UDP checksum in IPSEC payload.
-                        *  Default value is 0. */
-                       uint32_t udp_chksum    : 1;
-
-                       /** Check TCP checksum in IPSEC payload.
-                        *  Default value is 0. */
-                       uint32_t tcp_chksum    : 1;
-
-                       /** Check SCTP checksum in IPSEC payload.
-                        *  Default value is 0. */
-                       uint32_t sctp_chksum   : 1;
-               } check;
-
-               /** All bits of the bit field structure
-                 *
-                 * This field can be used to set/clear all flags, or bitwise
-                 * operations over the entire structure. */
-               uint32_t all_check;
-       };
+       odp_packet_parse_chksum_t chksum;
 
 } odp_ipsec_inbound_config_t;
 

Reply via email to