git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfbd6a9
)
net/bnx2x: fix maximum PF queues
author
Rasesh Mody
<rasesh.mody@qlogic.com>
Thu, 6 Oct 2016 05:36:36 +0000
(22:36 -0700)
committer
Bruce Richardson
<bruce.richardson@intel.com>
Thu, 13 Oct 2016 13:30:59 +0000
(15:30 +0200)
Fix the max number of PF rx/tx queues. Set the value based
on BNX2X_MAX_RSS_COUNT() rather than hard coding it to 128.
Fixes:
540a211084a7
("bnx2x: driver core")
Signed-off-by: Rasesh Mody <rasesh.mody@qlogic.com>
Acked-by: Chas Williams <3chas3@gmail.com>
drivers/net/bnx2x/bnx2x.c
patch
|
blob
|
history
diff --git
a/drivers/net/bnx2x/bnx2x.c
b/drivers/net/bnx2x/bnx2x.c
index
a49a07f
..
2bb4a84
100644
(file)
--- a/
drivers/net/bnx2x/bnx2x.c
+++ b/
drivers/net/bnx2x/bnx2x.c
@@
-9556,8
+9556,8
@@
static void bnx2x_init_rte(struct bnx2x_softc *sc)
sc->max_rx_queues = min(BNX2X_VF_MAX_QUEUES_PER_VF,
sc->igu_sb_cnt);
} else {
- sc->max_
tx_queues = 128
;
- sc->max_
rx_queues = 128
;
+ sc->max_
rx_queues = BNX2X_MAX_RSS_COUNT(sc)
;
+ sc->max_
tx_queues = sc->max_rx_queues
;
}
}