]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: fix checks for max queues to allocate
authorVishal Kulkarni <vishal@chelsio.com>
Mon, 2 Mar 2020 05:24:13 +0000 (10:54 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Mar 2020 03:00:11 +0000 (19:00 -0800)
commit7fdb5e12530acf873340621468ee43d6701114ec
tree060efe514281240ecc23756e58cbc8ecec402b12
parent2b524724710a955fef8ba9f9fb0391e30cfeb781
cxgb4: fix checks for max queues to allocate

Hardware can support more than 8 queues currently limited by
netif_get_num_default_rss_queues(). So, rework and fix checks for max
number of queues to allocate. The checks should be based on how many are
actually supported by hardware, OR the number of online cpus; whichever
is lower.

Fixes: 7321581792f8 ("cxgb4: set maximal number of default RSS queues")
Signed-off-by: Vishal Kulkarni <vishal@chelsio.com>"
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c