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)
commita56177e18f2e44499a8bf5bc03dbe896dbec657d
tree5af66ab2631380078648e5104ca8e9be1a98fa7a
parent7e1670c15c9b18d614b43a674e086eb3e239c8f7
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