@@ -1178,6 +1178,31 @@ int odp_packet_move_data(odp_packet_t pkt, uint32_t dst_offset,
*
*/
+/**
+ * Flags to control payload checksum checking
+ */
+typedef union odp_packet_parse_chksum_t {
+ /** Individual check bits. */
+ struct {
+ /** Check IPv4 header checksum */
+ uint32_t ipv4_chksum : 1;
+
+ /** Check UDP checksum */
+ uint32_t udp_chksum : 1;
+
+ /** Check TCP checksum */
+ uint32_t tcp_chksum : 1;
+
+ /** Check SCTP checksum */
+ uint32_t sctp_chksum : 1;
+
+ } check;
+
+ /** All check bits. This can be used to set/clear all flags. */
+ uint32_t all_check;
+
+} odp_packet_parse_chksum_t;
+
/**
* Packet parse parameters
*/
@@ -1194,26 +1219,7 @@ typedef struct odp_packet_parse_param_t {
* layer. Checksum checking status can be queried for each packet with
* odp_packet_l3_chksum_status() and odp_packet_l4_chksum_status().
*/
- union {
- /** Individual check bits. */
- struct {
- /** Check IPv4 header checksum */
- uint32_t ipv4_chksum : 1;
-
- /** Check UDP checksum */
- uint32_t udp_chksum : 1;
-
- /** Check TCP checksum */
- uint32_t tcp_chksum : 1;
-
- /** Check SCTP checksum */
- uint32_t sctp_chksum : 1;
-
- } check;
-
- /** All check bits. This can be used to set/clear all flags. */
- uint32_t all_check;
- };
+ odp_packet_parse_chksum_t chksum;
} odp_packet_parse_param_t;