Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea65949e authored by Shahed Shaikh's avatar Shahed Shaikh Committed by David S. Miller
Browse files

bnx2x: Provide VF link status in ndo_get_vf_config



Provide current link status of VF in ndo_get_vf_config
handler.

Signed-off-by: default avatarShahed Shaikh <Shahed.Shaikh@cavium.com>
Signed-off-by: default avatarAriel Elior <ariel.elior@cavium.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 75a110a1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2638,6 +2638,7 @@ int bnx2x_get_vf_config(struct net_device *dev, int vfidx,
	ivi->max_tx_rate = 10000; /* always 10G. TBA take from link struct */
	ivi->min_tx_rate = 0;
	ivi->spoofchk = vf->spoofchk ? 1 : 0;
	ivi->linkstate = vf->link_cfg;
	if (vf->state == VF_ENABLED) {
		/* mac and vlan are in vlan_mac objects */
		if (bnx2x_validate_vf_sp_objs(bp, vf, false)) {