From: Ajit Khaparde Date: Fri, 11 Feb 2011 13:32:32 +0000 (+0000) Subject: be2net: While configuring QOS for VF, pass proper domain id X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=856c40125acf63f93aab5bc18ff9e627beeb0a3d;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c index 82b2df8e12cf..4c73dceaeedf 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,