Skip to contentSkip to conversation

i40e: Expose 'trust' flag to userspace via ndo_get_vf_config.

PATCH New Sridhar Samudrala 2 participants 3 messages Aug 4, 2016 – Aug 16, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c +1 -0
index 6fcbf76..4bd66d7 100644
@@ -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:
Signature · 1 line
2.5.5
#1 lore raw

PATCH 1/1 i40e: Expose 'trust' flag to userspace via ndo_get_vf_config.

ACK

-----Original Message-----
From: Samudrala, Sridhar
Sent: Thursday, August 4, 2016 9:46 AM
To: [email protected]; Singhai, Anjali <[email protected]>
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.

---
 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c +1 -0
index 6fcbf76..4bd66d7 100644
@@ -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:
Signature · 1 line
2.5.5
#2 lore raw

PATCH 1/1 i40e: Expose 'trust' flag to userspace via ndo_get_vf_config.

In reply to Sridhar Samudrala
Quoted 9 lines

-----Original Message-----
From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org] On Behalf Of Sridhar Samudrala
Sent: Thursday, August 04, 2016 9:46 AM
To: intel-wired-lan at lists.osuosl.org; Singhai, Anjali <[email protected]>
Subject: [Intel-wired-lan] [next PATCH] i40e: Expose 'trust' flag to userspace via ndo_get_vf_config.

Quoted 8 lines

This enables
ip -d l
to indicate if trust is on or off for VFs.

---
 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 1 +
 1 file changed, 1 insertion(+)