diff options
author | Shahed Shaikh <Shahed.Shaikh@cavium.com> | 2018-09-20 11:22:52 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-21 09:14:21 -0700 |
commit | ea65949e1988a686976496bcf26471ff22d821d8 (patch) | |
tree | a77a621505c542f819db0cc56116d1bfda5eba2a /drivers/net/ethernet/broadcom/bnx2x | |
parent | 75a110a1783ef8324ffd763b24f4ac268253cbca (diff) | |
download | talos-obmc-linux-ea65949e1988a686976496bcf26471ff22d821d8.tar.gz talos-obmc-linux-ea65949e1988a686976496bcf26471ff22d821d8.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c index 2f76b37a47d5..c835f6c7ecd0 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c @@ -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)) { |