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: Shahed Shaikh <Shahed.Shaikh@cavium.com> Signed-off-by: Ariel Elior <ariel.elior@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
75a110a178
commit
ea65949e19
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue