[PATCH] test/crypto: fix mbuf port in Rx inject
Rahul Bhansali
rbhansali at marvell.com
Mon Oct 30 07:45:42 CET 2023
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 at 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
More information about the dev
mailing list