projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a74212
)
bnx2x: set maximal number of default RSS queues
author
Yuval Mintz
<
[email protected]
>
Sun, 1 Jul 2012 03:18:59 +0000
(
03:18
+0000)
committer
David S. Miller
<
[email protected]
>
Thu, 5 Jul 2012 10:06:45 +0000
(
03:06
-0700)
Signed-off-by: Yuval Mintz <
[email protected]
>
Signed-off-by: Eilon Greenstein <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
index daa894bd772a771a8f9ca483228fdef8dd1ab39e..53659f321d5139b580a8690278431641b50c6c0e 100644
(file)
--- a/
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
+++ b/
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
@@
-822,7
+822,8
@@
static inline int bnx2x_calc_num_queues(struct bnx2x *bp)
{
return num_queues ?
min_t(int, num_queues, BNX2X_MAX_QUEUES(bp)) :
- min_t(int, num_online_cpus(), BNX2X_MAX_QUEUES(bp));
+ min_t(int, netif_get_num_default_rss_queues(),
+ BNX2X_MAX_QUEUES(bp));
}
static inline void bnx2x_clear_sge_mask_next_elems(struct bnx2x_fastpath *fp)