be2net: fix FW default for VF tx-rate
authorVasundhara Volam <vasundhara.volam@emulex.com>
Tue, 28 Aug 2012 20:37:42 +0000 (20:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Aug 2012 17:27:05 +0000 (13:27 -0400)
BE3 FW initializes VF tx-rate to 100Mbps. Fix this to 10Gbps.

Signed-off-by: Vasundhara Volam <vasundhara.volam@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c

index def2f668896491dd8df669cd9cda3658c406d0c6..1494f2fc5b95478215ae4bba58e502a88c21ce4c 100644 (file)
@@ -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;