net/octeontx: fix Tx preparation
authorPavan Nikhilesh <pbhagavatula@marvell.com>
Tue, 28 Jul 2020 18:43:46 +0000 (00:13 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 17:19:11 +0000 (19:19 +0200)
When building send command for a given descriptor it expects
it to contain the AURA identifier of the pool that it belongs
to rather than the pool identifier itself.

Fixes: 7f4116bdbb1c ("net/octeontx: add framework for Rx/Tx offloads")
Cc: stable@dpdk.org
Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/net/octeontx/octeontx_rxtx.h

index af596cd..7c24d8b 100644 (file)
@@ -337,8 +337,7 @@ __octeontx_xmit_prepare(struct rte_mbuf *tx_pkt, uint64_t *cmd_buf,
                __mempool_check_cookies(tx_pkt->pool, (void **)&tx_pkt,
                                        1, 0);
        /* Get the gaura Id */
-       gaura_id = octeontx_fpa_bufpool_gpool((uintptr_t)
-                                             tx_pkt->pool->pool_id);
+       gaura_id = octeontx_fpa_bufpool_gaura((uintptr_t)tx_pkt->pool->pool_id);
 
        /* Setup PKO_SEND_BUFLINK_S */
        cmd_buf[nb_desc++] = PKO_SEND_BUFLINK_SUBDC |
@@ -373,7 +372,7 @@ __octeontx_xmit_mseg_prepare(struct rte_mbuf *tx_pkt, uint64_t *cmd_buf,
                /* To handle case where mbufs belong to diff pools, like
                 * fragmentation
                 */
-               gaura_id = octeontx_fpa_bufpool_gpool((uintptr_t)
+               gaura_id = octeontx_fpa_bufpool_gaura((uintptr_t)
                                                      tx_pkt->pool->pool_id);
 
                /* Setup PKO_SEND_GATHER_S */