test/crypto: fix mbuf port in Rx inject
Checks
Commit Message
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
>
> 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>
> 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.
@@ -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);