We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 843bd7d commit bd79aceCopy full SHA for bd79ace
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
@@ -2695,13 +2695,17 @@ static int cxgb4_mgmt_get_vf_config(struct net_device *dev,
2695
{
2696
struct port_info *pi = netdev_priv(dev);
2697
struct adapter *adap = pi->adapter;
2698
+ struct vf_info *vfinfo;
2699
2700
if (vf >= adap->num_vfs)
2701
return -EINVAL;
2702
+ vfinfo = &adap->vfinfo[vf];
2703
+
2704
ivi->vf = vf;
- ivi->max_tx_rate = adap->vfinfo[vf].tx_rate;
2705
+ ivi->max_tx_rate = vfinfo->tx_rate;
2706
ivi->min_tx_rate = 0;
- ether_addr_copy(ivi->mac, adap->vfinfo[vf].vf_mac_addr);
2707
+ ether_addr_copy(ivi->mac, vfinfo->vf_mac_addr);
2708
+ ivi->vlan = vfinfo->vlan;
2709
return 0;
2710
}
2711
0 commit comments