aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/i40evf
diff options
context:
space:
mode:
authorMitch Williams <mitch.a.williams@intel.com>2015-06-04 16:23:56 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2015-07-23 08:20:07 -0400
commit17a65a7f8030c467193a6b774b6bbbbfc9d01f5c (patch)
tree1315b1c73b9297989af39f83eec4613823e1d47e /drivers/net/ethernet/intel/i40evf
parent1b53c2fb43a0f03f7bb8a179d910e98a2fe68674 (diff)
i40e/i40evf: add macros for virtual channel API version and device capability
Now that we've rolled the virtual channel API version to 1.1, add some macros to test what version is being used by our partner in crime. For the VF, add some macros to determine what our device capabilities are. Change-ID: I79f6683d4c23bd76a8ad9fd492776fcc1208e1dc Signed-off-by: Mitch Williams <mitch.a.williams@intel.com> Tested-by: Jim Young <james.m.young@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/i40evf')
-rw-r--r--drivers/net/ethernet/intel/i40evf/i40evf.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/i40evf/i40evf.h b/drivers/net/ethernet/intel/i40evf/i40evf.h
index fea3b75a9a35..f3bcd05f7ecf 100644
--- a/drivers/net/ethernet/intel/i40evf/i40evf.h
+++ b/drivers/net/ethernet/intel/i40evf/i40evf.h
@@ -249,8 +249,17 @@ struct i40evf_adapter {
249 bool netdev_registered; 249 bool netdev_registered;
250 bool link_up; 250 bool link_up;
251 enum i40e_virtchnl_ops current_op; 251 enum i40e_virtchnl_ops current_op;
252#define CLIENT_ENABLED(_a) ((_a)->vf_res->vf_offload_flags & \
253 I40E_VIRTCHNL_VF_OFFLOAD_IWARP)
254#define RSS_AQ(_a) ((_a)->vf_res->vf_offload_flags & \
255 I40E_VIRTCHNL_VF_OFFLOAD_RSS_AQ)
256#define VLAN_ALLOWED(_a) ((_a)->vf_res->vf_offload_flags & \
257 I40E_VIRTCHNL_VF_OFFLOAD_VLAN)
252 struct i40e_virtchnl_vf_resource *vf_res; /* incl. all VSIs */ 258 struct i40e_virtchnl_vf_resource *vf_res; /* incl. all VSIs */
253 struct i40e_virtchnl_vsi_resource *vsi_res; /* our LAN VSI */ 259 struct i40e_virtchnl_vsi_resource *vsi_res; /* our LAN VSI */
260 struct i40e_virtchnl_version_info pf_version;
261#define PF_IS_V11(_a) (((_a)->pf_version.major == 1) && \
262 ((_a)->pf_version.minor == 1))
254 u16 msg_enable; 263 u16 msg_enable;
255 struct i40e_eth_stats current_stats; 264 struct i40e_eth_stats current_stats;
256 struct i40e_vsi vsi; 265 struct i40e_vsi vsi;