diff options
author | Vishal Kulkarni <vishal@chelsio.com> | 2020-03-02 10:54:13 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-03 19:00:11 -0800 |
commit | 116ca924aea664141afa86a1425edc3fcda0d06f (patch) | |
tree | 060efe514281240ecc23756e58cbc8ecec402b12 /include | |
parent | 20d8bb0d172d87dcc52727cb7174ae9994de8978 (diff) | |
download | lwn-116ca924aea664141afa86a1425edc3fcda0d06f.tar.gz lwn-116ca924aea664141afa86a1425edc3fcda0d06f.zip |
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: 5952dde72307 ("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>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions