be2net: While configuring QOS for VF, pass proper domain id
authorAjit Khaparde <ajit.khaparde@emulex.com>
Fri, 11 Feb 2011 13:32:32 +0000 (13:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 Feb 2011 05:14:42 +0000 (21:14 -0800)
While configuring QOS for VFs, the VF number should be translated
to domain number correctly.

Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_main.c

index 82b2df8e12cfb4b798938c7253077d4e5f3cc91f..4c73dceaeedf15908716708be7829704b43a6e20 100644 (file)
@@ -820,7 +820,7 @@ static int be_set_vf_tx_rate(struct net_device *netdev,
                rate = 10000;
 
        adapter->vf_cfg[vf].vf_tx_rate = rate;
-       status = be_cmd_set_qos(adapter, rate / 10, vf);
+       status = be_cmd_set_qos(adapter, rate / 10, vf + 1);
 
        if (status)
                dev_info(&adapter->pdev->dev,