DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/octeontx2: support Inline IPsec without MBUF_FAST_FREE offload
@ 2021-05-12 10:11 Tejasree Kondoj
  2021-06-25 14:37 ` Jerin Jacob
  0 siblings, 1 reply; 2+ messages in thread
From: Tejasree Kondoj @ 2021-05-12 10:11 UTC (permalink / raw)
  To: Jerin Jacob; +Cc: Tejasree Kondoj, Nithin Dabilpuram, Anoob Joseph, dev

Adding support for Inline IPsec without DEV_TX_OFFLOAD_MBUF_FAST_FREE.

Signed-off-by: Tejasree Kondoj <ktejasree@marvell.com>
---
 drivers/net/octeontx2/otx2_ethdev_sec_tx.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/net/octeontx2/otx2_ethdev_sec_tx.h b/drivers/net/octeontx2/otx2_ethdev_sec_tx.h
index c8eae3d628..623a2a841e 100644
--- a/drivers/net/octeontx2/otx2_ethdev_sec_tx.h
+++ b/drivers/net/octeontx2/otx2_ethdev_sec_tx.h
@@ -59,8 +59,7 @@ otx2_sec_event_tx(uint64_t base, struct rte_event *ev, struct rte_mbuf *m,
 	sa = &sess->out_sa;
 
 	RTE_ASSERT(sess->cpt_lmtline != NULL);
-	RTE_ASSERT(!(offload_flags & (NIX_TX_OFFLOAD_MBUF_NOFF_F |
-				      NIX_TX_OFFLOAD_VLAN_QINQ_F)));
+	RTE_ASSERT(!(offload_flags & NIX_TX_OFFLOAD_VLAN_QINQ_F));
 
 	dlen = rte_pktmbuf_pkt_len(m) + sizeof(*hdr) - RTE_ETHER_HDR_LEN;
 	rlen = otx2_ipsec_fp_out_rlen_get(sess, dlen - sizeof(*hdr));
@@ -135,6 +134,8 @@ otx2_sec_event_tx(uint64_t base, struct rte_event *ev, struct rte_mbuf *m,
 	sd->nix_hdr.w0.sizem1 = 1;
 	sd->nix_hdr.w0.total = rte_pktmbuf_data_len(m);
 	sd->nix_hdr.w0.aura = npa_lf_aura_handle_to_aura(m->pool->pool_id);
+	if (offload_flags & NIX_TX_OFFLOAD_MBUF_NOFF_F)
+		sd->nix_hdr.w0.df = otx2_nix_prefree_seg(m);
 
 	sd->nix_sg.u = 0;
 	sd->nix_sg.subdc = NIX_SUBDC_SG;
-- 
2.27.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] [PATCH] net/octeontx2: support Inline IPsec without MBUF_FAST_FREE offload
  2021-05-12 10:11 [dpdk-dev] [PATCH] net/octeontx2: support Inline IPsec without MBUF_FAST_FREE offload Tejasree Kondoj
@ 2021-06-25 14:37 ` Jerin Jacob
  0 siblings, 0 replies; 2+ messages in thread
From: Jerin Jacob @ 2021-06-25 14:37 UTC (permalink / raw)
  To: Tejasree Kondoj; +Cc: Jerin Jacob, Nithin Dabilpuram, Anoob Joseph, dpdk-dev

On Wed, May 12, 2021 at 2:46 PM Tejasree Kondoj <ktejasree@marvell.com> wrote:
>
> Adding support for Inline IPsec without DEV_TX_OFFLOAD_MBUF_FAST_FREE.
>
> Signed-off-by: Tejasree Kondoj <ktejasree@marvell.com>

Reviewed-by: Jerin Jacob <jerinj@marvell.com>

Updated the git comments and

Applied to dpdk-next-net-mrvl/for-next-net. Thanks


> ---
>  drivers/net/octeontx2/otx2_ethdev_sec_tx.h | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/octeontx2/otx2_ethdev_sec_tx.h b/drivers/net/octeontx2/otx2_ethdev_sec_tx.h
> index c8eae3d628..623a2a841e 100644
> --- a/drivers/net/octeontx2/otx2_ethdev_sec_tx.h
> +++ b/drivers/net/octeontx2/otx2_ethdev_sec_tx.h
> @@ -59,8 +59,7 @@ otx2_sec_event_tx(uint64_t base, struct rte_event *ev, struct rte_mbuf *m,
>         sa = &sess->out_sa;
>
>         RTE_ASSERT(sess->cpt_lmtline != NULL);
> -       RTE_ASSERT(!(offload_flags & (NIX_TX_OFFLOAD_MBUF_NOFF_F |
> -                                     NIX_TX_OFFLOAD_VLAN_QINQ_F)));
> +       RTE_ASSERT(!(offload_flags & NIX_TX_OFFLOAD_VLAN_QINQ_F));
>
>         dlen = rte_pktmbuf_pkt_len(m) + sizeof(*hdr) - RTE_ETHER_HDR_LEN;
>         rlen = otx2_ipsec_fp_out_rlen_get(sess, dlen - sizeof(*hdr));
> @@ -135,6 +134,8 @@ otx2_sec_event_tx(uint64_t base, struct rte_event *ev, struct rte_mbuf *m,
>         sd->nix_hdr.w0.sizem1 = 1;
>         sd->nix_hdr.w0.total = rte_pktmbuf_data_len(m);
>         sd->nix_hdr.w0.aura = npa_lf_aura_handle_to_aura(m->pool->pool_id);
> +       if (offload_flags & NIX_TX_OFFLOAD_MBUF_NOFF_F)
> +               sd->nix_hdr.w0.df = otx2_nix_prefree_seg(m);
>
>         sd->nix_sg.u = 0;
>         sd->nix_sg.subdc = NIX_SUBDC_SG;
> --
> 2.27.0
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-25 14:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-12 10:11 [dpdk-dev] [PATCH] net/octeontx2: support Inline IPsec without MBUF_FAST_FREE offload Tejasree Kondoj
2021-06-25 14:37 ` Jerin Jacob

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).