bnx2x: set maximal number of default RSS queues
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0a742128db
commit
7d51541355
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user