]> git.karo-electronics.de Git - linux-beck.git/commitdiff
i40e: group base mode VF offload flags
authorPreethi Banala <preethi.banala@intel.com>
Wed, 14 Sep 2016 23:24:37 +0000 (16:24 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 29 Oct 2016 06:28:39 +0000 (23:28 -0700)
Group together the minimum set of offload capabilities that are always
supported by VF in base mode. This define would be used by PF to make
sure VF in base mode gets minimum of base capabilities .

Change-ID: Id5e8f22ba169c8f0a38d22fc36b2cb531c02582c
Signed-off-by: Preethi Banala <preethi.banala@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl.h
drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h

index f861d3109d1a10ace23242f4d3779328a6a32539..974ba2baf6ea006d2f3dae4e7aa841e7bffb96d3 100644 (file)
@@ -165,6 +165,10 @@ struct i40e_virtchnl_vsi_resource {
 #define I40E_VIRTCHNL_VF_OFFLOAD_RSS_PF                0X00080000
 #define I40E_VIRTCHNL_VF_OFFLOAD_ENCAP_CSUM    0X00100000
 
+#define I40E_VF_BASE_MODE_OFFLOADS (I40E_VIRTCHNL_VF_OFFLOAD_L2 | \
+                                   I40E_VIRTCHNL_VF_OFFLOAD_VLAN | \
+                                   I40E_VIRTCHNL_VF_OFFLOAD_RSS_PF)
+
 struct i40e_virtchnl_vf_resource {
        u16 num_vsis;
        u16 num_queue_pairs;
index bd691ad86673d21bcd70600226126b36136a42c1..fc374f833aa9a930f2d119c306dd2547209884af 100644 (file)
@@ -162,6 +162,10 @@ struct i40e_virtchnl_vsi_resource {
 #define I40E_VIRTCHNL_VF_OFFLOAD_RSS_PF                0X00080000
 #define I40E_VIRTCHNL_VF_OFFLOAD_ENCAP_CSUM    0X00100000
 
+#define I40E_VF_BASE_MODE_OFFLOADS (I40E_VIRTCHNL_VF_OFFLOAD_L2 | \
+                                   I40E_VIRTCHNL_VF_OFFLOAD_VLAN | \
+                                   I40E_VIRTCHNL_VF_OFFLOAD_RSS_PF)
+
 struct i40e_virtchnl_vf_resource {
        u16 num_vsis;
        u16 num_queue_pairs;