test/crypto: fix mbuf port in Rx inject

Message ID 20231030064542.3865749-1-rbhansali@marvell.com (mailing list archive)
State Accepted, archived
Delegated to: akhil goyal
Headers
Series test/crypto: fix mbuf port in Rx inject |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/loongarch-compilation success Compilation OK
ci/loongarch-unit-testing success Unit Testing PASS
ci/Intel-compilation success Compilation OK
ci/intel-Testing success Testing PASS
ci/iol-broadcom-Performance success Performance Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-mellanox-Performance success Performance Testing PASS
ci/intel-Functional success Functional PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-broadcom-Functional success Functional Testing PASS
ci/iol-compile-amd64-testing success Testing PASS
ci/iol-unit-arm64-testing success Testing PASS
ci/iol-unit-amd64-testing success Testing PASS
ci/iol-compile-arm64-testing success Testing PASS
ci/iol-sample-apps-testing success Testing PASS

Commit Message

Rahul Bhansali Oct. 30, 2023, 6:45 a.m. UTC
  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(+)
  

Comments

Anoob Joseph Oct. 30, 2023, 7:14 a.m. UTC | #1
> 
> 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>

Acked-by: Anoob Joseph <anoobj@marvell.com>
  
Akhil Goyal Oct. 30, 2023, 7:23 a.m. UTC | #2
> Subject: RE: [PATCH] test/crypto: fix mbuf port in Rx inject
> 
> >
> > 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>
> 
> Acked-by: Anoob Joseph <anoobj@marvell.com>
Applied to dpdk-next-crypto

Thanks.
  

Patch

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);