Commit d0381c42 authored by Ajit Khaparde's avatar Ajit Khaparde Committed by David S. Miller
Browse files

be2net: add code to display default value of tx rate for VFs

This change will allow the default value of tx rate to be displayed
when ip link show is called on a PF interface.
Signed-off-by: default avatarAjit Khaparde <>
Signed-off-by: default avatarDavid S. Miller <>
parent 187e8756
......@@ -3082,9 +3082,22 @@ static int __devinit be_probe(struct pci_dev *pdev,
if (be_physfn(adapter) && adapter->sriov_enabled) {
u8 mac_speed;
bool link_up;
u16 vf, lnk_speed;
status = be_vf_eth_addr_config(adapter);
if (status)
goto unreg_netdev;
for (vf = 0; vf < num_vfs; vf++) {
status = be_cmd_link_status_query(adapter, &link_up,
&mac_speed, &lnk_speed, vf + 1);
if (!status)
adapter->vf_cfg[vf].vf_tx_rate = lnk_speed * 10;
goto unreg_netdev;
dev_info(&pdev->dev, "%s port %d\n", nic_name(pdev), adapter->port_num);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment