[Intel-wired-lan] [next PATCH] i40e: Expose 'trust' flag to userspace via ndo_get_vf_config.

Singhai, Anjali anjali.singhai at intel.com
Fri Aug 5 20:00:28 UTC 2016


ACK

-----Original Message-----
From: Samudrala, Sridhar 
Sent: Thursday, August 4, 2016 9:46 AM
To: intel-wired-lan at lists.osuosl.org; Singhai, Anjali <anjali.singhai at intel.com>
Subject: [next PATCH] 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 at intel.com>
---
 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
index 6fcbf76..4bd66d7 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
@@ -2995,6 +2995,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:
-- 
2.5.5



More information about the Intel-wired-lan mailing list