From: Jingjing Wu Date: Wed, 22 Mar 2017 09:24:58 +0000 (+0800) Subject: net/i40e/base: add VF offload flags X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=1661615d9a356fa318d0a24476de3536251ed90d;p=dpdk.git net/i40e/base: add VF offload flags This patch adds: - ENCAP offload negotiation flag. Use the existing ENCAP_CSUM offload flag to negotiate GSO_UDP_TUNNEL_CSUM capability and create new ENCAP flag for negotiating offloads for encapsulated packets - RX_ENCAP_CSUM offload negotiation flag for VF to negotiate RX checksum capability for tunnelled packet types. Signed-off-by: Jingjing Wu --- diff --git a/drivers/net/i40e/base/i40e_virtchnl.h b/drivers/net/i40e/base/i40e_virtchnl.h index 8fba6081e4..7a24c0f1b3 100644 --- a/drivers/net/i40e/base/i40e_virtchnl.h +++ b/drivers/net/i40e/base/i40e_virtchnl.h @@ -170,7 +170,9 @@ struct i40e_virtchnl_vsi_resource { #define I40E_VIRTCHNL_VF_OFFLOAD_RX_POLLING 0x00020000 #define I40E_VIRTCHNL_VF_OFFLOAD_RSS_PCTYPE_V2 0x00040000 #define I40E_VIRTCHNL_VF_OFFLOAD_RSS_PF 0X00080000 -#define I40E_VIRTCHNL_VF_OFFLOAD_ENCAP_CSUM 0X00100000 +#define I40E_VIRTCHNL_VF_OFFLOAD_ENCAP 0X00100000 +#define I40E_VIRTCHNL_VF_OFFLOAD_ENCAP_CSUM 0X00200000 +#define I40E_VIRTCHNL_VF_OFFLOAD_RX_ENCAP_CSUM 0X00400000 #define I40E_VF_BASE_MODE_OFFLOADS (I40E_VIRTCHNL_VF_OFFLOAD_L2 | \ I40E_VIRTCHNL_VF_OFFLOAD_VLAN | \