mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
crypto: chelsio - Update ntx queue received from cxgb4
Update cxgb4 to send No. of Tx Queue created in lldinfo struct
and use the same ntxq in chcr driver.
This patch depends on following commit
commit add92a817e
"Fix memory corruption in DMA Mapped buffers"
v2:
Free txq_info in error case as pointed by Lino Sanfilippo.
Signed-off-by: Harsh Jain <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
parent
18e732b803
commit
a1c6fd4308
3 changed files with 18 additions and 7 deletions
|
|
@ -1338,8 +1338,7 @@ static int chcr_device_init(struct chcr_context *ctx)
|
|||
}
|
||||
ctx->dev = u_ctx->dev;
|
||||
adap = padap(ctx->dev);
|
||||
ntxq = min_not_zero((unsigned int)u_ctx->lldi.nrxq,
|
||||
adap->vres.ncrypto_fc);
|
||||
ntxq = u_ctx->lldi.ntxq;
|
||||
rxq_perchan = u_ctx->lldi.nrxq / u_ctx->lldi.nchan;
|
||||
txq_perchan = ntxq / u_ctx->lldi.nchan;
|
||||
spin_lock(&ctx->dev->lock_chcr_dev);
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ static chcr_handler_func work_handlers[NUM_CPL_CMDS] = {
|
|||
static struct cxgb4_uld_info chcr_uld_info = {
|
||||
.name = DRV_MODULE_NAME,
|
||||
.nrxq = MAX_ULD_QSETS,
|
||||
.ntxq = MAX_ULD_QSETS,
|
||||
/* Max ntxq will be derived from fw config file*/
|
||||
.rxq_size = 1024,
|
||||
.add = chcr_uld_add,
|
||||
.state_change = chcr_uld_state_change,
|
||||
|
|
|
|||
Loading…
Reference in a new issue