From: Andrew Rybchenko Date: Thu, 24 Sep 2020 12:12:03 +0000 (+0100) Subject: common/sfc_efx/base: switch TxQ init to extended version X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4664935a73dd0b4db323ff3c94bc578b146a8414;p=dpdk.git common/sfc_efx/base: switch TxQ init to extended version Extended version of MCDI allows up to 64 DMA addresses which are required for Riverhead. Signed-off-by: Andrew Rybchenko Reviewed-by: Andy Moreton --- diff --git a/drivers/common/sfc_efx/base/efx_mcdi.c b/drivers/common/sfc_efx/base/efx_mcdi.c index a2ac053f0c..8db52acd66 100644 --- a/drivers/common/sfc_efx/base/efx_mcdi.c +++ b/drivers/common/sfc_efx/base/efx_mcdi.c @@ -2878,8 +2878,7 @@ efx_mcdi_init_txq( __in efsys_mem_t *esmp) { efx_mcdi_req_t req; - EFX_MCDI_DECLARE_BUF(payload, - MC_CMD_INIT_TXQ_IN_LEN(EF10_TXQ_MAXNBUFS), + EFX_MCDI_DECLARE_BUF(payload, MC_CMD_INIT_TXQ_EXT_IN_LEN, MC_CMD_INIT_TXQ_OUT_LEN); efx_qword_t *dma_addr; uint64_t addr; @@ -2887,7 +2886,7 @@ efx_mcdi_init_txq( int i; efx_rc_t rc; - EFSYS_ASSERT(EF10_TXQ_MAXNBUFS >= + EFSYS_ASSERT(MC_CMD_INIT_TXQ_EXT_IN_DMA_ADDR_MAXNUM >= efx_txq_nbufs(enp, enp->en_nic_cfg.enc_txq_max_ndescs)); if ((esmp == NULL) ||