common/iavf: enable hash calculation based on IPv4 checksum
authorAlvin Zhang <alvinx.zhang@intel.com>
Fri, 24 Sep 2021 09:57:28 +0000 (17:57 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Fri, 24 Sep 2021 11:05:19 +0000 (13:05 +0200)
Add IPv4 header checksum field selector, it can be used in creating
FDIR or RSS rules related to IPv4 header checksum.

Signed-off-by: Alvin Zhang <alvinx.zhang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/common/iavf/virtchnl.h

index 83f51d8..067f715 100644 (file)
@@ -1571,6 +1571,7 @@ enum virtchnl_proto_hdr_field {
        VIRTCHNL_PROTO_HDR_IPV4_DSCP,
        VIRTCHNL_PROTO_HDR_IPV4_TTL,
        VIRTCHNL_PROTO_HDR_IPV4_PROT,
+       VIRTCHNL_PROTO_HDR_IPV4_CHKSUM,
        /* IPV6 */
        VIRTCHNL_PROTO_HDR_IPV6_SRC =
                PROTO_HDR_FIELD_START(VIRTCHNL_PROTO_HDR_IPV6),