From: <pbhagavatula@marvell.com> To: <jerinj@marvell.com>, Harman Kalra <hkalra@marvell.com> Cc: <dev@dpdk.org>, Pavan Nikhilesh <pbhagavatula@marvell.com>, <stable@dpdk.org> Subject: [dpdk-stable] [dpdk-dev] [PATCH 2/2] net/octeontx: fix Tx xmit command preparation Date: Wed, 29 Jul 2020 00:13:46 +0530 Message-ID: <20200728184347.3105-2-pbhagavatula@marvell.com> (raw) In-Reply-To: <20200728184347.3105-1-pbhagavatula@marvell.com> From: Pavan Nikhilesh <pbhagavatula@marvell.com> 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> --- drivers/net/octeontx/octeontx_rxtx.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/octeontx/octeontx_rxtx.h b/drivers/net/octeontx/octeontx_rxtx.h index 8b46105b6..4dcd94530 100644 --- a/drivers/net/octeontx/octeontx_rxtx.h +++ b/drivers/net/octeontx/octeontx_rxtx.h @@ -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 */ -- 2.17.1
next prev parent reply other threads:[~2020-07-28 18:44 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-07-28 18:43 [dpdk-stable] [dpdk-dev] [PATCH 1/2] mempool/octeontx: fix aura to pool mapping pbhagavatula 2020-07-28 18:43 ` pbhagavatula [this message] 2020-09-27 13:06 ` [dpdk-stable] [dpdk-dev] [PATCH 2/2] net/octeontx: fix Tx xmit command preparation Jerin Jacob
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200728184347.3105-2-pbhagavatula@marvell.com \ --to=pbhagavatula@marvell.com \ --cc=dev@dpdk.org \ --cc=hkalra@marvell.com \ --cc=jerinj@marvell.com \ --cc=stable@dpdk.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
patches for DPDK stable branches This inbox may be cloned and mirrored by anyone: git clone --mirror https://inbox.dpdk.org/stable/0 stable/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 stable stable/ https://inbox.dpdk.org/stable \ stable@dpdk.org public-inbox-index stable Example config snippet for mirrors. Newsgroup available over NNTP: nntp://inbox.dpdk.org/inbox.dpdk.stable AGPL code for this site: git clone https://public-inbox.org/public-inbox.git