From nobody Mon Feb 9 14:15:05 2026 Received: from AS8PR04CU009.outbound.protection.outlook.com (mail-westeuropeazon11011030.outbound.protection.outlook.com [52.101.70.30]) (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 1B2708BEE; Thu, 15 Aug 2024 00:09:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.70.30 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723680576; cv=fail; b=mLNnPsMFxTi/O2J6sF+AK1ISX+uu14fRKcAOjLSJ7AXyU+aKJ4RHfKuO+mdxJxX0OaWoP11USICFptFwq/188H60GyQ18ZQf7aZqewadmx8tArr7wwR4lfDzfYClDI4msqEJ86mmf9qAoGC1PmYy7DrHcZ/NF3oTOwdejv8pJEo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723680576; c=relaxed/simple; bh=7Zsh2xze+PBiVnfngp6e2xCuNcT+TlnxJ7uJHX3tI0k=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=rq4qVIsIzV7/Cc7qfZd1LAu9K6CYal/77Ti/gYG/l2/8IomKFehQG/BGFnV6MK6HvaZ/ZA6jsdn3AMNZowHXBXFeWGh7+X5WFb6OMI7inRQpx/pAYu/e+lm2IUVpk9JgfVf31A3NrGlvAbW64OjuJz/hge1GD2VGL+HOy32tMA8= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=NjoGRNqx; arc=fail smtp.client-ip=52.101.70.30 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="NjoGRNqx" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BHh67d2HQ3qHaAC3zfgLkj0Xjp/IHP96Dhv1p3XTbm+ePt2uC7VWAfWqUWerDuXfzTNCXk3/VxX3GVZ8uIliIelaLllNfP5F1WmvpJQAcYqKGS6eIuMrmAxSJnbSEE60PR8KLgrJdKMymVckJKdXI44dkQE5h14s3U8Vk+Zldu/GcMSmobEtVCpgXTpmUaQgcAML9gIVr6YuXCfKVH0PoxCb2kN6JISJ7s22Bib+Dnf2nY1l+m5IaKMcgBbkC2dQzgMpFArHbfLLN1iZVevvkDsDK+OJbo72TPnyAGFQp5qdCODWHHjyjjUyQ3H6EOFmviMbWY0zTMEWc2LuPYfu1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/T9HoCwDQUtLtIclI7JKLweByU386jJHwAnfPaEDP1I=; b=X6qxX1rwT4fzHSjK3/Zmcyxy8TtluhpLWytBdDXxtFYomE5xGJNVWGlU1dPD6ElVkqg+dcuBsWKFhV65d6sFWv4MRJDaReIqgF1siNNUrf5cI8I0YhPf5Y9LwbUKs95p1/oK3dzqql3OshEFcTQ/rEzAhmhu7wh/E+YsFS30ymkvAO3KGtk86sJG4zSGolfOuxYia6ECBYzx5DvA+SAeqAagHvbQK0253FxV6kUCgBd0JzC62UKEbSHMqi0Eyy6vh0jHT8AR45sklTVzrtskbde5AHuJdu/f7Gdiu4qRolKfpK9FosD92uBGTHrU6wzOCr7klp9oGOjDBm/UlLlS2w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/T9HoCwDQUtLtIclI7JKLweByU386jJHwAnfPaEDP1I=; b=NjoGRNqxyUxjg1wOzkIl1/YLKhaD+BI15k2WHP4JQ5lwYgA7R5ZOy4nlSOTNPsMXOtJtyV3lbQ65NUYydDhx3yTgOJo249Nj6oZeopz3qwzqJy/hlM1qr/mv01OmqioKjt1ZeCQqDlSibYiVWp2jaAEgu0cVs7/Wf7B6CeldNvH1h6NSBWMUOtnU323OeHdpWqecZ29gtVMGjEKdr0Bfl0lK5bymiOzB+Y+Rnkcm3cpDZR8YYZvwdfWbjcM8L1WMQtGX8dVWKQ0R86irgMmT7dUXVvzPPz1T/U8jwbviqUdINydFfrGuItrUvg41xg+1rkbB5AcmznaE/RW/dGYFDQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM8PR04MB7779.eurprd04.prod.outlook.com (2603:10a6:20b:24b::14) by VI2PR04MB10285.eurprd04.prod.outlook.com (2603:10a6:800:21e::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.18; Thu, 15 Aug 2024 00:09:30 +0000 Received: from AM8PR04MB7779.eurprd04.prod.outlook.com ([fe80::7417:d17f:8d97:44d2]) by AM8PR04MB7779.eurprd04.prod.outlook.com ([fe80::7417:d17f:8d97:44d2%4]) with mapi id 15.20.7875.016; Thu, 15 Aug 2024 00:09:29 +0000 From: Vladimir Oltean To: netdev@vger.kernel.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Claudiu Manoil , Alexandre Belloni , Antoine Tenart , UNGLinuxDriver@microchip.com, Hongbo Wang , Xiaoliang Yang , Andrew Lunn , Florian Fainelli , Colin Foster , Horatiu Vultur , Hangbin Liu , Petr Machata , Ido Schimmel , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net 03/14] selftests: net: local_termination: parameterize test name Date: Thu, 15 Aug 2024 03:06:56 +0300 Message-Id: <20240815000707.2006121-4-vladimir.oltean@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240815000707.2006121-1-vladimir.oltean@nxp.com> References: <20240815000707.2006121-1-vladimir.oltean@nxp.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: HE1PR06CA0143.eurprd06.prod.outlook.com (2603:10a6:7:16::30) To AM8PR04MB7779.eurprd04.prod.outlook.com (2603:10a6:20b:24b::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM8PR04MB7779:EE_|VI2PR04MB10285:EE_ X-MS-Office365-Filtering-Correlation-Id: 98e37a3d-8cc4-48d6-7f4f-08dcbcbe885e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014|52116014|7416014|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?1qFdxZzwS6/Y+r68ybq0GG3Vu9uv3R6/8voZhqVvujVINeuxOuyPxzndmeeQ?= =?us-ascii?Q?QRpwR3icpi+CYx5xZrw0BWhXcHW5YmxTVgwFnmERhxud0+HpV5HQmZQ8iKNR?= =?us-ascii?Q?E7K7blvm+mHvU+PwmDcZ7ScxuOroxtM4wDtwPGmHtrB+OzvSoO/pYjbnxvpM?= =?us-ascii?Q?wCGwpQUBYqJedX+3aa/64zF+NVgnFzIVXMVHpML1XE4XmeOFXqowz1klwbx0?= =?us-ascii?Q?fO9vY5PR+RyiUOKfw2JHwn5D4Q83VN04Lp+RpgZ4LmSHtX0A+x2je/UJF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TlF4Hlvw8HNNIueR7sUGSXwjLrSvXWoc56SzVAm?= =?us-ascii?Q?bExheLfsiaDUPw+ZU3fY01bgabaX8Y/grMCGPIgJHRGTlLaCXcA6HGgAjvmQ?= =?us-ascii?Q?RzCQynJsO0BMpb+D74vTeV79zR+h6JOlxDhloJXXAxPXOq2LhiQsGDdfrlcN?= =?us-ascii?Q?oqJC3nIRrkWLOK+l6GlGwlf/2ii4va9UkbKv5UGXNAiwGa/NMuyKpjk28kn2?= =?us-ascii?Q?Y285WtiA7PIZgQQlBXvYpRwFvBsWVBaIMjmHu2TWZAHjahHKAA=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM8PR04MB7779.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(376014)(52116014)(7416014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?OpY5CMSJoGO+20rtkfk6WjcSYCzAeXvRurVvOHwRLu92nD76OlX9xlnRn/kJ?= =?us-ascii?Q?VDzZu4A8rwNwu7wUyd8bzuEeyUyeXHq2VCL9Wl8M1Zo1sI3dWf8jkCOdu4YJ?= =?us-ascii?Q?AlGEkb+DjCyK0DwF7m/H0X5YlmO05tndY/Bs1j+H1hH5FULPCjlxWmqHMD0q?= =?us-ascii?Q?5M/asKdXd16VpztryamuoSkshrCi+JaCpVw2yZsIr9BpPVJx//nxSVqoCtrA?= =?us-ascii?Q?5QSbMDKOpMILc2FOgZUFFrCj4Q4SOsd12scXVay4/HrBKhteKPsSbkeyBLeb?= =?us-ascii?Q?eegcOD/1i6ivw8JTOFDSzkbHfAGZxlkBTtFKr+bTS36pM/pHg2O8DjH0t4xj?= =?us-ascii?Q?inTk8Jvdi3tKuR9QbbLgsYSoWjQpAfnwMYvPORtPuL5C/F3SE5JrH8u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2oDhziooJpRUEvkz1G7Qg7VtfR+iITEK3X5AnDoY/Mesq9EBgqEoR?= =?us-ascii?Q?mcjGR7gyvFQOc29MusqnDarzXPHgUZIJvSAgvMflwgCaDs4U4vCP/20Tx7x5?= =?us-ascii?Q?rq5ARXDTBtax6k7hzw9KBezo0EF+Ehqz+G3sV6swJuggPEriDviewrflSpCh?= =?us-ascii?Q?DeZ1PrArT4f4asgE0oYiWJVjubaftQtPPtNKNvIMuEoJpsBo2yySS1RfWMZS?= =?us-ascii?Q?0u3GMS3JjIg7GhG2lvaYUFtNmDBUFugb4wQ7ilrB3F4PD4JHIRp1z/yHRnkQ?= =?us-ascii?Q?T7ENNRaab2etcLNhBi/xw0M4zFNOB/iU5EZ2PVHp+YnJcrpWxpk7ixYX1PNR?= =?us-ascii?Q?hg=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 98e37a3d-8cc4-48d6-7f4f-08dcbcbe885e X-MS-Exchange-CrossTenant-AuthSource: AM8PR04MB7779.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2024 00:09:29.9052 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: SU7nn/w2BVYxrCtGYz48QFcTESlfRZJAqvld90szbuDwIQTBCADQhVxQr4yEusKkntYunnUCPfHZ/QbGg92Ggw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI2PR04MB10285 Content-Type: text/plain; charset="utf-8" There are upcoming tests which verify the RX filtering of a bridge (or bridge port), but under differing vlan_filtering conditions. Since we currently print $h2 (the DUT) in the log_test() output, it becomes necessary to make a further distinction between tests, to not give the user the impression that the exact same thing is run twice. Signed-off-by: Vladimir Oltean --- .../net/forwarding/local_termination.sh | 38 ++++++++++--------- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/tools/testing/selftests/net/forwarding/local_termination.sh b/= tools/testing/selftests/net/forwarding/local_termination.sh index 92f0e242d119..af284edaf401 100755 --- a/tools/testing/selftests/net/forwarding/local_termination.sh +++ b/tools/testing/selftests/net/forwarding/local_termination.sh @@ -68,10 +68,11 @@ send_uc_ipv4() =20 check_rcv() { - local if_name=3D$1 - local type=3D$2 - local pattern=3D$3 - local should_receive=3D$4 + local if_name=3D$1; shift + local type=3D$1; shift + local pattern=3D$1; shift + local should_receive=3D$1; shift + local test_name=3D"$1"; shift local should_fail=3D =20 [ $should_receive =3D true ] && should_fail=3D0 || should_fail=3D1 @@ -81,7 +82,7 @@ check_rcv() =20 check_err_fail "$should_fail" "$?" "reception" =20 - log_test "$if_name: $type" + log_test "$test_name: $type" } =20 mc_route_prepare() @@ -106,6 +107,7 @@ run_test() { local send_if_name=3D$1; shift local rcv_if_name=3D$1; shift + local test_name=3D"$1"; shift local smac=3D$(mac_get $send_if_name) local rcv_dmac=3D$(mac_get $rcv_if_name) =20 @@ -150,61 +152,61 @@ run_test() =20 check_rcv $rcv_if_name "Unicast IPv4 to primary MAC address" \ "$smac > $rcv_dmac, ethertype IPv4 (0x0800)" \ - true + true "$test_name" =20 check_rcv $rcv_if_name "Unicast IPv4 to macvlan MAC address" \ "$smac > $MACVLAN_ADDR, ethertype IPv4 (0x0800)" \ - true + true "$test_name" =20 xfail_on_veth $h1 \ check_rcv $rcv_if_name "Unicast IPv4 to unknown MAC address" \ "$smac > $UNKNOWN_UC_ADDR1, ethertype IPv4 (0x0800)" \ - false + false "$test_name" =20 check_rcv $rcv_if_name "Unicast IPv4 to unknown MAC address, promisc" \ "$smac > $UNKNOWN_UC_ADDR2, ethertype IPv4 (0x0800)" \ - true + true "$test_name" =20 xfail_on_veth $h1 \ check_rcv $rcv_if_name \ "Unicast IPv4 to unknown MAC address, allmulti" \ "$smac > $UNKNOWN_UC_ADDR3, ethertype IPv4 (0x0800)" \ - false + false "$test_name" =20 check_rcv $rcv_if_name "Multicast IPv4 to joined group" \ "$smac > $JOINED_MACV4_MC_ADDR, ethertype IPv4 (0x0800)" \ - true + true "$test_name" =20 xfail_on_veth $h1 \ check_rcv $rcv_if_name \ "Multicast IPv4 to unknown group" \ "$smac > $UNKNOWN_MACV4_MC_ADDR1, ethertype IPv4 (0x0800)" \ - false + false "$test_name" =20 check_rcv $rcv_if_name "Multicast IPv4 to unknown group, promisc" \ "$smac > $UNKNOWN_MACV4_MC_ADDR2, ethertype IPv4 (0x0800)" \ - true + true "$test_name" =20 check_rcv $rcv_if_name "Multicast IPv4 to unknown group, allmulti" \ "$smac > $UNKNOWN_MACV4_MC_ADDR3, ethertype IPv4 (0x0800)" \ - true + true "$test_name" =20 check_rcv $rcv_if_name "Multicast IPv6 to joined group" \ "$smac > $JOINED_MACV6_MC_ADDR, ethertype IPv6 (0x86dd)" \ - true + true "$test_name" =20 xfail_on_veth $h1 \ check_rcv $rcv_if_name "Multicast IPv6 to unknown group" \ "$smac > $UNKNOWN_MACV6_MC_ADDR1, ethertype IPv6 (0x86dd)" \ - false + false "$test_name" =20 check_rcv $rcv_if_name "Multicast IPv6 to unknown group, promisc" \ "$smac > $UNKNOWN_MACV6_MC_ADDR2, ethertype IPv6 (0x86dd)" \ - true + true "$test_name" =20 check_rcv $rcv_if_name "Multicast IPv6 to unknown group, allmulti" \ "$smac > $UNKNOWN_MACV6_MC_ADDR3, ethertype IPv6 (0x86dd)" \ - true + true "$test_name" =20 tcpdump_cleanup $rcv_if_name } --=20 2.34.1