From: Vasundhara Volam Date: Tue, 28 Aug 2012 20:37:42 +0000 (+0000) Subject: be2net: fix FW default for VF tx-rate X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8a046d3bfd5126b724a5352a757310229d4d3ff3;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git be2net: fix FW default for VF tx-rate BE3 FW initializes VF tx-rate to 100Mbps. Fix this to 10Gbps. Signed-off-by: Vasundhara Volam Signed-off-by: Sathya Perla Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c index def2f6688964..1494f2fc5b95 100644 --- a/drivers/net/ethernet/emulex/benet/be_main.c +++ b/drivers/net/ethernet/emulex/benet/be_main.c @@ -2645,8 +2645,8 @@ static int be_vf_setup(struct be_adapter *adapter) } for_all_vfs(adapter, vf_cfg, vf) { - status = be_cmd_link_status_query(adapter, NULL, &lnk_speed, - NULL, vf + 1); + lnk_speed = 1000; + status = be_cmd_set_qos(adapter, lnk_speed, vf + 1); if (status) goto err; vf_cfg->tx_rate = lnk_speed * 10;