aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSridhar Samudrala <sridhar.samudrala@intel.com>2016-08-04 18:45:47 +0200
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2016-08-18 11:43:14 -0700
commitd40062f3c48612f075f99c58206ab8023eca1029 (patch)
treed2e3d8bbac13186f837c2cb4246db3b1e05ee016
parenti40e: remove a stray unlock (diff)
downloadlinux-dev-d40062f3c48612f075f99c58206ab8023eca1029.tar.xz
linux-dev-d40062f3c48612f075f99c58206ab8023eca1029.zip
i40e: Expose 'trust' flag to userspace via ndo_get_vf_config.
This enables ip -d l to indicate if trust is on or off for VFs. Signed-off-by: Sridhar Samudrala <sridhar.samudrala@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
index 68e3482b3b2b..da3423561b3a 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
@@ -3000,6 +3000,7 @@ int i40e_ndo_get_vf_config(struct net_device *netdev,
else
ivi->linkstate = IFLA_VF_LINK_STATE_DISABLE;
ivi->spoofchk = vf->spoofchk;
+ ivi->trusted = vf->trusted;
ret = 0;
error_param: