From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6F6E743741; Tue, 19 Dec 2023 06:29:37 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9588F42DEF; Tue, 19 Dec 2023 06:29:33 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 27E7F402D8 for ; Tue, 19 Dec 2023 06:29:32 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 3BILKWYB029878; Mon, 18 Dec 2023 21:29:31 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= pfpt0220; bh=kAM1RLU2PCg+ujX5K8fdy5+6tufwD5gm3FiZjT7DjRU=; b=OUh fGkAkSO7CY/sectcsQi1ZOuse+6OS+i7wo8yRYzL3OxRdro37hWmb82cBe+SAUtH OT6ihjYbHap5AxQ4BtZ9fZ5C5JZQeu5SYusvZ+QeC9YwoQ2QYmSCx+sQ6ShNyQLT Zs+kaKKsLSiQ0t5nTB5x8tMsLXzlUkf+ccexdwR4DDO88doxacJGklfic+DmBAYf swl+WCl5cj/yT+wIW5DdWsZu6J34LYa+ZVtanPgT0Hfg8Q2QGXQzyavI+5IZ3myT 2llpF/bdGHyj3G+wKma0yyeyQAQOh7wGvrmgd9vec0lYJrpOIOmWgRKSMbASWucv 9/g9PICLqwEZbrCMoqg== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3v1c9ks5qw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 18 Dec 2023 21:29:31 -0800 (PST) Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Mon, 18 Dec 2023 21:29:29 -0800 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; Mon, 18 Dec 2023 21:29:29 -0800 Received: from BG-LT92004.corp.innovium.com (unknown [10.28.163.189]) by maili.marvell.com (Postfix) with ESMTP id 03FDA3F708D; Mon, 18 Dec 2023 21:29:26 -0800 (PST) From: Anoob Joseph To: Radu Nicolau , Akhil Goyal CC: Konstantin Ananyev , Jerin Jacob , Subject: [PATCH 2/2] examples/ipsec-secgw: update stats when freeing packets Date: Tue, 19 Dec 2023 10:59:23 +0530 Message-ID: <20231219052923.196-2-anoobj@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231219052923.196-1-anoobj@marvell.com> References: <20231219052923.196-1-anoobj@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: jH4Qnxpo6fDXzKiyhfvR24QPyPE1aHxx X-Proofpoint-GUID: jH4Qnxpo6fDXzKiyhfvR24QPyPE1aHxx X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_02,2023-12-07_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 Instead of freeing directly, use commonly used function which also updates stats. Signed-off-by: Anoob Joseph --- examples/ipsec-secgw/ipsec_process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ipsec-secgw/ipsec_process.c b/examples/ipsec-secgw/ipsec_process.c index b0cece3ad1..ddbe30745b 100644 --- a/examples/ipsec-secgw/ipsec_process.c +++ b/examples/ipsec-secgw/ipsec_process.c @@ -22,7 +22,7 @@ free_cops(struct rte_crypto_op *cop[], uint32_t n) uint32_t i; for (i = 0; i != n; i++) - rte_pktmbuf_free(cop[i]->sym->m_src); + free_pkts(&cop[i]->sym->m_src, 1); } /* helper routine to enqueue bulk of crypto ops */ -- 2.25.1