summaryrefslogtreecommitdiffstats
path: root/drivers/net/benet
diff options
context:
space:
mode:
authorAjit Khaparde <ajit.khaparde@emulex.com>2011-02-11 13:32:32 +0000
committerDavid S. Miller <davem@davemloft.net>2011-02-11 21:14:42 -0800
commit856c40125acf63f93aab5bc18ff9e627beeb0a3d (patch)
treef23c839ecbdb87cf9ab6a6fe1d09ad179681ecbe /drivers/net/benet
parent58bb4bd0e0b1ab560a7320a760141ba52db68791 (diff)
downloadop-kernel-dev-856c40125acf63f93aab5bc18ff9e627beeb0a3d.zip
op-kernel-dev-856c40125acf63f93aab5bc18ff9e627beeb0a3d.tar.gz
be2net: While configuring QOS for VF, pass proper domain id
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>
Diffstat (limited to 'drivers/net/benet')
-rw-r--r--drivers/net/benet/be_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c
index 82b2df8..4c73dce 100644
--- a/drivers/net/benet/be_main.c
+++ b/drivers/net/benet/be_main.c
@@ -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,
OpenPOWER on IntegriCloud