qede: Fix VF minimum BW setting

VF is currently ignoring the minimum provided by the API,
mistakenly using the maximum for minimum as well.

Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Yuval Mintz 2016-05-26 11:01:17 +03:00 committed by David S. Miller
parent 61248720c4
commit be7b6d64c0
1 changed files with 1 additions and 1 deletions

View File

@ -1824,7 +1824,7 @@ static int qede_set_vf_rate(struct net_device *dev, int vfidx,
{ {
struct qede_dev *edev = netdev_priv(dev); struct qede_dev *edev = netdev_priv(dev);
return edev->ops->iov->set_rate(edev->cdev, vfidx, max_tx_rate, return edev->ops->iov->set_rate(edev->cdev, vfidx, min_tx_rate,
max_tx_rate); max_tx_rate);
} }