From patchwork Sat Feb 8 18:59:09 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harshit Mogalapalli X-Patchwork-Id: 13966485 X-Patchwork-Delegate: kuba@kernel.org Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 088E71F3B94; Sat, 8 Feb 2025 18:59:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.165.32 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739041164; cv=none; b=JePC8Ug3TkNrlfuytnh4QEQdK0xhDagWi2jG4PYAN5ybWV7vapmCBGX87BwHNoRAu7XUGJ3zfO3O1AQL3S7v972Q5VYnPaLIxDmOLbG+VnNZpFPfX8cHfH55e30xu5/k/GnG6XKRJcC5sO7niT8Wu6jxuohhilVqc8xRZTIaMc0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739041164; c=relaxed/simple; bh=4DdvMo09ZfcN/gyu3it3HMlnzdbgvBCN/FCZr7MBruc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DMYZbBFpQWO921GwgjlNJzV6E8tlnC+ZT4rJYGa31RvdkfS1Fp/TcdL9dvdwoMoEnCMjoBesCVWID049B826/PoFsi1OQYLHX1vCOC9+WyRvlSQltyA+yRbHcUpxidVisqagO182flb4AXiDz/XHgfWaAkf6VbbF5T46+NESfZQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=N3NV/cxN; arc=none smtp.client-ip=205.220.165.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="N3NV/cxN" Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 518BjMrD007372; Sat, 8 Feb 2025 18:59:16 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=corp-2023-11-20; bh=dFGiw lLe9uOWUftlIIPdQiv0goS1sC2wKSCTNN24Xtw=; b=N3NV/cxN/+oBQAsfLuggZ p/zLZYD4n/HWbLRHMqPL5dOUr+OdfjiRBJ+2Cvn4ArPSDZXSg2smJskHzlmgYTz0 r468FcI1M6hnE/kDd5rXR+3fdQ4yxfUtBFtvDsrOV27lecHih/yrEhcdmG5v4xiO 2k2AAOWUP7mWxbF+mbNGhU6o1LVx9RD1pCLoN8SRjawyli9ULkyJYm6fF9nPVJcT 50cPPrR26p1SVwUCHCTHKn3lcFUQt2qXiloXvOYFZ35CpSUMG+ocmRUXW2v7rBSr zPvvZC4cBJt5GmL5+F4euXkKI452clkYEbdNhA5ZKxL3kzY8xuRoBXtQPQeIsau1 g== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 44p0s3reu2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 08 Feb 2025 18:59:15 +0000 (GMT) Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 518FIN3r002717; Sat, 8 Feb 2025 18:59:15 GMT Received: from pps.reinject (localhost [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 44nwq5yst3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 08 Feb 2025 18:59:15 +0000 Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 518IxBlX019993; Sat, 8 Feb 2025 18:59:14 GMT Received: from ca-dev112.us.oracle.com (ca-dev112.us.oracle.com [10.129.136.47]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTP id 44nwq5ysry-2; Sat, 08 Feb 2025 18:59:14 +0000 From: Harshit Mogalapalli To: stable@vger.kernel.org Cc: davem@davemloft.net, edumazet@google.com, horms@kernel.org, jiri@resnulli.us, liuhangbin@gmail.com, kuba@kernel.org, netdev@vger.kernel.org, stfomichev@gmail.com, shannon.nelson@amd.com, darren.kenny@oracle.com, Stanislav Fomichev , Harshit Mogalapalli Subject: [PATCH 5.15.y 2/2] selftests: rtnetlink: update netdevsim ipsec output format Date: Sat, 8 Feb 2025 10:59:09 -0800 Message-ID: <20250208185909.2998264-2-harshit.m.mogalapalli@oracle.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20250208185909.2998264-1-harshit.m.mogalapalli@oracle.com> References: <20250208185909.2998264-1-harshit.m.mogalapalli@oracle.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-02-08_08,2025-02-07_03,2024-11-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 malwarescore=0 adultscore=0 mlxscore=0 phishscore=0 suspectscore=0 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2501170000 definitions=main-2502080161 X-Proofpoint-GUID: 4B_Rhvh9kA4BYeR6biAqx4LZyFCAAF1a X-Proofpoint-ORIG-GUID: 4B_Rhvh9kA4BYeR6biAqx4LZyFCAAF1a X-Patchwork-Delegate: kuba@kernel.org From: Hangbin Liu [ Upstream commit 3ec920bb978ccdc68a7dfb304d303d598d038cb1 ] After the netdevsim update to use human-readable IP address formats for IPsec, we can now use the source and destination IPs directly in testing. Here is the result: # ./rtnetlink.sh -t kci_test_ipsec_offload PASS: ipsec_offload Signed-off-by: Hangbin Liu Acked-by: Stanislav Fomichev Link: https://patch.msgid.link/20241010040027.21440-4-liuhangbin@gmail.com Signed-off-by: Jakub Kicinski (cherry picked from commit 3ec920bb978ccdc68a7dfb304d303d598d038cb1) [Harshit: backport to stable kernels] Signed-off-by: Harshit Mogalapalli --- tools/testing/selftests/net/rtnetlink.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/net/rtnetlink.sh b/tools/testing/selftests/net/rtnetlink.sh index cbf166df57da..a3597b3e579f 100755 --- a/tools/testing/selftests/net/rtnetlink.sh +++ b/tools/testing/selftests/net/rtnetlink.sh @@ -813,10 +813,10 @@ kci_test_ipsec_offload() # does driver have correct offload info diff $sysfsf - << EOF SA count=2 tx=3 -sa[0] tx ipaddr=0x00000000 00000000 00000000 00000000 +sa[0] tx ipaddr=$dstip sa[0] spi=0x00000009 proto=0x32 salt=0x61626364 crypt=1 sa[0] key=0x34333231 38373635 32313039 36353433 -sa[1] rx ipaddr=0x00000000 00000000 00000000 037ba8c0 +sa[1] rx ipaddr=$srcip sa[1] spi=0x00000009 proto=0x32 salt=0x61626364 crypt=1 sa[1] key=0x34333231 38373635 32313039 36353433 EOF