aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/qlogic/qed/qed_dev.c
diff options
context:
space:
mode:
authorYuval Mintz <Yuval.Mintz@qlogic.com>2016-07-27 14:45:23 +0300
committerDavid S. Miller <davem@davemloft.net>2016-07-30 20:34:03 -0700
commitd572c4308fdecc95a84e747b8a13c2fa10a5fff6 (patch)
treefdd56110d0ffcb18bef99fdac56c1ed7c22d8c99 /drivers/net/ethernet/qlogic/qed/qed_dev.c
parentqede: Reset statistics on explicit down (diff)
downloadlinux-dev-d572c4308fdecc95a84e747b8a13c2fa10a5fff6.tar.xz
linux-dev-d572c4308fdecc95a84e747b8a13c2fa10a5fff6.zip
qed: Correct min bandwidth for 100g
Driver uses reverse logic when checking if minimum bandwidth configuration applied, causing it to configure the guarantee only on the first hw-function. Fixes: a0d26d5a4fc8 ("qed*: Don't reset statistics on inner reload") Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/qlogic/qed/qed_dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_dev.c b/drivers/net/ethernet/qlogic/qed/qed_dev.c
index b26fe267a150..1a53c04bb25c 100644
--- a/drivers/net/ethernet/qlogic/qed/qed_dev.c
+++ b/drivers/net/ethernet/qlogic/qed/qed_dev.c
@@ -2539,7 +2539,7 @@ int qed_configure_vport_wfq(struct qed_dev *cdev, u16 vp_id, u32 rate)
rc = __qed_configure_vport_wfq(p_hwfn, p_ptt, vp_id, rate);
- if (!rc) {
+ if (rc) {
qed_ptt_release(p_hwfn, p_ptt);
return rc;
}