common/sfc_efx/base: switch TxQ init to extended version
authorAndrew Rybchenko <arybchenko@solarflare.com>
Thu, 24 Sep 2020 12:12:03 +0000 (13:12 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 17:19:12 +0000 (19:19 +0200)
Extended version of MCDI allows up to 64 DMA addresses which are
required for Riverhead.

Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Andy Moreton <amoreton@xilinx.com>
drivers/common/sfc_efx/base/efx_mcdi.c

index a2ac053..8db52ac 100644 (file)
@@ -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) ||