i40e: Expose 'trust' flag to userspace via ndo_get_vf_config.
authorSridhar Samudrala <sridhar.samudrala@intel.com>
Thu, 4 Aug 2016 16:45:47 +0000 (18:45 +0200)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 18 Aug 2016 18:43:14 +0000 (11:43 -0700)
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>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c

index 68e3482b3b2bf90b5f424d99f5875df4073d2e42..da3423561b3a89650a20d5553cdd51be7887c5e0 100644 (file)
@@ -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: