summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/cxgbi/cxgb4i
diff options
context:
space:
mode:
authorHariprasad Shenai2016-11-18 12:07:40 +0100
committerDavid S. Miller2016-11-18 20:04:29 +0100
commitab677ff4ad15bc26c359490ee201557f3a6d20df (patch)
tree86fc9dcce2c7a74b270f906ba899ebecd4c04b1c /drivers/scsi/cxgbi/cxgb4i
parentliquidio CN23XX: bitwise vs logical AND typo (diff)
downloadkernel-qcow2-linux-ab677ff4ad15bc26c359490ee201557f3a6d20df.tar.gz
kernel-qcow2-linux-ab677ff4ad15bc26c359490ee201557f3a6d20df.tar.xz
kernel-qcow2-linux-ab677ff4ad15bc26c359490ee201557f3a6d20df.zip
cxgb4: Allocate Tx queues dynamically
Allocate resources dynamically for Upper layer driver's (ULD) like cxgbit, iw_cxgb4, cxgb4i and chcr. The resources allocated include Tx queues which are allocated when ULD register with cxgb4 driver and freed while un-registering. The Tx queues which are shared by ULD shall be allocated by first registering driver and un-allocated by last unregistering driver. Signed-off-by: Atul Gupta <atul.gupta@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/scsi/cxgbi/cxgb4i')
-rw-r--r--drivers/scsi/cxgbi/cxgb4i/cxgb4i.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c b/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
index 0039bebaa9e2..4655a9f9dcea 100644
--- a/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
+++ b/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
@@ -85,6 +85,7 @@ static inline int send_tx_flowc_wr(struct cxgbi_sock *);
static const struct cxgb4_uld_info cxgb4i_uld_info = {
.name = DRV_MODULE_NAME,
.nrxq = MAX_ULD_QSETS,
+ .ntxq = MAX_ULD_QSETS,
.rxq_size = 1024,
.lro = false,
.add = t4_uld_add,