From: Igor Romanov Date: Thu, 7 Feb 2019 16:29:27 +0000 (+0000) Subject: net/sfc: use NIC Tx descriptor size instead of common X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5638b1f0e8aed46e46d78fb20f396f79d4d7b71a;p=dpdk.git net/sfc: use NIC Tx descriptor size instead of common Use of the macro for calculating a Tx queue size is deprecated. Replace it with a call to a function that uses descriptor size specified for every NIC. Signed-off-by: Igor Romanov Signed-off-by: Andrew Rybchenko --- diff --git a/drivers/net/sfc/sfc_tx.c b/drivers/net/sfc/sfc_tx.c index aa0538fe88..c3e0936ccf 100644 --- a/drivers/net/sfc/sfc_tx.c +++ b/drivers/net/sfc/sfc_tx.c @@ -173,7 +173,8 @@ sfc_tx_qinit(struct sfc_adapter *sa, unsigned int sw_index, SFC_TX_DEFAULT_FREE_THRESH; txq_info->offloads = offloads; - rc = sfc_dma_alloc(sa, "txq", sw_index, EFX_TXQ_SIZE(txq_info->entries), + rc = sfc_dma_alloc(sa, "txq", sw_index, + efx_txq_size(sa->nic, txq_info->entries), socket_id, &txq->mem); if (rc != 0) goto fail_dma_alloc;