From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id BA51A41DC3;
	Fri,  3 Mar 2023 09:20:15 +0100 (CET)
Received: from mails.dpdk.org (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 6515A40687;
	Fri,  3 Mar 2023 09:20:15 +0100 (CET)
Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com
 [67.231.156.173])
 by mails.dpdk.org (Postfix) with ESMTP id A474C400D6
 for <dev@dpdk.org>; Fri,  3 Mar 2023 09:20:13 +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
 3236qlFY006688; Fri, 3 Mar 2023 00:20:13 -0800
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=AAWe/SbM01LTlfP/TCKn2KmVtUumkL0YvWWxYfEkpG8=;
 b=hzm8TPqbx9s7oEbA2v7ODlEsQgFlRhsJQDXSrLMfhSxtYcquKYcffPEBUyNaKLlktB8H
 Mr67TMGtLCOep86ge1b3SlkIR+isjlC6MTkxF0HsOBrqfZmw3hlt/dKeRkf+qw1sU9Yv
 rNrYoexKVExcA2hVoyTpfc2bT5trCN9vF6BS5vi4El/gLCgtmH34h/J23VRm9Kq7cb30
 hrcomVbZq4SbAjD0m0lhf8v59srcsFh7rX9GgjkU9KgP6yjDWtJlEf2YobxUe9tvy8wm
 zJ4N2LIhJeRXHI+6SlPCgTwapHBg/dBQ1kTzUnH8KcquhuK9rBqvNkHmqkW3/aco6+mb Qw== 
Received: from dc5-exch02.marvell.com ([199.233.59.182])
 by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3p1wr9xcva-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);
 Fri, 03 Mar 2023 00:20:12 -0800
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.42;
 Fri, 3 Mar 2023 00:20:10 -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.42 via Frontend
 Transport; Fri, 3 Mar 2023 00:20:10 -0800
Received: from hyd1588t430.caveonetworks.com (unknown [10.29.52.204])
 by maili.marvell.com (Postfix) with ESMTP id 9D1BA5B6934;
 Fri,  3 Mar 2023 00:20:08 -0800 (PST)
From: Nithin Dabilpuram <ndabilpuram@marvell.com>
To: Radu Nicolau <radu.nicolau@intel.com>, Akhil Goyal <gakhil@marvell.com>
CC: <jerinj@marvell.com>, <dev@dpdk.org>, Nithin Dabilpuram
 <ndabilpuram@marvell.com>, <rbhansali@marvell.com>
Subject: [PATCH] examples/ipsec-secgw: fix uninitialized offload variable
Date: Fri, 3 Mar 2023 13:50:03 +0530
Message-ID: <20230303082003.591135-1-ndabilpuram@marvell.com>
X-Mailer: git-send-email 2.25.1
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain
X-Proofpoint-ORIG-GUID: UfA0nN_C2rnKOp6cOPLSjhV_GtGK0n_b
X-Proofpoint-GUID: UfA0nN_C2rnKOp6cOPLSjhV_GtGK0n_b
X-Proofpoint-Virus-Version: vendor=baseguard
 engine=ICAP:2.0.219,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22
 definitions=2023-03-03_01,2023-03-02_02,2023-02-09_01
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org

Fix uninitialized hw_reassembly offload variable.

Fixes: d8d51d4f9bf5 ("examples/ipsec-secgw: support per SA HW reassembly")
Cc: rbhansali@marvell.com

Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
---
 examples/ipsec-secgw/sa.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/examples/ipsec-secgw/sa.c b/examples/ipsec-secgw/sa.c
index d23bdd20f3..5f5d2685f6 100644
--- a/examples/ipsec-secgw/sa.c
+++ b/examples/ipsec-secgw/sa.c
@@ -1832,6 +1832,7 @@ sa_check_offloads(uint16_t port_id, uint64_t *rx_offloads,
 
 	*rx_offloads = 0;
 	*tx_offloads = 0;
+	*hw_reassembly = 0;
 
 	ret = rte_eth_dev_info_get(port_id, &dev_info);
 	if (ret != 0)
-- 
2.25.1