DPDK patches and discussions
 help / color / mirror / Atom feed
From: Rahul Bhansali <rbhansali@marvell.com>
To: <dev@dpdk.org>, Akhil Goyal <gakhil@marvell.com>,
	Fan Zhang <fanzhang.oss@gmail.com>,
	Vidya Sagar Velumuri <vvelumuri@marvell.com>,
	"Anoob Joseph" <anoobj@marvell.com>
Cc: Rahul Bhansali <rbhansali@marvell.com>
Subject: [PATCH] test/crypto: fix mbuf port in Rx inject
Date: Mon, 30 Oct 2023 12:15:42 +0530	[thread overview]
Message-ID: <20231030064542.3865749-1-rbhansali@marvell.com> (raw)

By default mbuf port is not initialized and for Rx inject
mbuf port update is required before submitting packet.

Fixes: 69e1a909aa08 ("test/crypto: add Rx inject")

Signed-off-by: Rahul Bhansali <rbhansali@marvell.com>
---
 app/test/test_cryptodev.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c
index 970ca52f7e..96a3f36d73 100644
--- a/app/test/test_cryptodev.c
+++ b/app/test/test_cryptodev.c
@@ -10065,6 +10065,7 @@ test_ipsec_proto_mbuf_enq(struct crypto_testsuite_params *ts_params,
 	hdr->ether_type = rte_cpu_to_be_16(RTE_ETHER_TYPE_IPV4);
 
 	ut_params->ibuf->l2_len = sizeof(struct rte_ether_hdr);
+	ut_params->ibuf->port = 0;
 
 	sec_sess = &ut_params->sec_session;
 	ret = rte_security_inb_pkt_rx_inject(ctx, &ut_params->ibuf, sec_sess, 1);
-- 
2.25.1


             reply	other threads:[~2023-10-30  6:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-30  6:45 Rahul Bhansali [this message]
2023-10-30  7:14 ` Anoob Joseph
2023-10-30  7:23   ` Akhil Goyal

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=20231030064542.3865749-1-rbhansali@marvell.com \
    --to=rbhansali@marvell.com \
    --cc=anoobj@marvell.com \
    --cc=dev@dpdk.org \
    --cc=fanzhang.oss@gmail.com \
    --cc=gakhil@marvell.com \
    --cc=vvelumuri@marvell.com \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).