]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: Fix number of queue sets corssing the limit
authorGanesh Goudar <ganeshgr@chelsio.com>
Tue, 18 Oct 2016 08:51:25 +0000 (14:21 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Oct 2016 14:32:39 +0000 (10:32 -0400)
commit59ca12ccb9199e49aac4199eedd96b02fa9e5d5f
tree5af66ab2631380078648e5104ca8e9be1a98fa7a
parentbb92ebd0edb3ac3cd9947e1dafc1e53da626c740
cxgb4: Fix number of queue sets corssing the limit

Do not let number of offload queue sets to go more than
MAX_OFLD_QSETS, which would otherwise crash the driver
on machines with cores more than MAX_OFLD_QSETS.

Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c