From patchwork Mon Oct 30 06:45:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul Bhansali X-Patchwork-Id: 133623 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 029984323D; Mon, 30 Oct 2023 07:45:55 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BB123402BC; Mon, 30 Oct 2023 07:45:54 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id B852D40266 for ; Mon, 30 Oct 2023 07:45:53 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39TLrWRW023083; Sun, 29 Oct 2023 23:45:53 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=SYWEgrhFx1uLWfLCz5p6hlO//oX/hTTJe61soCN41Io=; b=SOA82DIZ/CROL6xa5SawgtKVYMPKoDylXdM8YldIXWmsJJ1MIHSbPWkuUrFjIPezg5XF rTX4Bf1eq+/hMZIAqLmATONDzV7YFAnQrvrHpjtMpLpTjQBFlsmjTWmyn+1K1vge+GiR 5DcD94jfyMHK0rR3mGoqyijMCPVbTNQc3gjgwOWAekzNLItTN9a3XX2s1U13vJ2Hn75r eE03EmB1iUfJ0DZPolZxs42nPKRCjZs18qRixk6yZBZoO2xzzNTA50Z8lxwttZhI9oec v7XUF9DnQe1BHzr4Kfusj5l5vzAZ1InhbapfBseCbY9w2ezcqtIOad1P6RHmMQzRBCWw VQ== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3u11tp4tp5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sun, 29 Oct 2023 23:45:52 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Sun, 29 Oct 2023 23:45:50 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Sun, 29 Oct 2023 23:45:50 -0700 Received: from localhost.localdomain (unknown [10.28.36.158]) by maili.marvell.com (Postfix) with ESMTP id D14EB3F703F; Sun, 29 Oct 2023 23:45:48 -0700 (PDT) From: Rahul Bhansali To: , Akhil Goyal , Fan Zhang , Vidya Sagar Velumuri , "Anoob Joseph" CC: Rahul Bhansali Subject: [PATCH] test/crypto: fix mbuf port in Rx inject Date: Mon, 30 Oct 2023 12:15:42 +0530 Message-ID: <20231030064542.3865749-1-rbhansali@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Proofpoint-GUID: DgqC9pX6Re7ikUsb0lDJUauzYcajhQJJ X-Proofpoint-ORIG-GUID: DgqC9pX6Re7ikUsb0lDJUauzYcajhQJJ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-30_05,2023-10-27_01,2023-05-22_02 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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 Acked-by: Anoob Joseph --- 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);