Message ID | 20240815000707.2006121-2-vladimir.oltean@nxp.com |
---|---|
State | Accepted |
Commit | 8d019b15ddd55d6dc5685b1f51902c4aa8e01939 |
Headers | show
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 80FF4A5F; Thu, 15 Aug 2024 00:09:29 +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=1723680571; cv=fail; b=D48WzjKBiJf3FqVg+98hc0CdP2mTj54gFR6ekMX4Ula1G+oTnMSBeiBYB649C8yeDt3u6YPCrTKApnyNkUO2mQG5B7ERUicPGSgEd833WPc5AUt5vDDkq29IJd7spCBKBlBvWq+68JGR7DL+vW9aBj5eYSqjCQneQEwj1B87YUw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723680571; c=relaxed/simple; bh=XLQqw9qGpbaI+f1SJO9XgCFqe1LzNvVZapeMXJOG6ho=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=vGVogxpOAhbhejVqBEP8D0UFMdOilyPDFo143sXZT5E9hdgakNPUeX9VlgIWiT+4RXJf7llZxm9nwxTLkqQO9VkxY+vHgRFJEc690oz+220Peuk9JjC5AjKJGatMzdmWWv/z5Y1M1qJEpJpWbh61eqjJx8dDS0jk4Kru0SZTaxU= 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=Qxlfva7B; 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="Qxlfva7B" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=IJXhpoe66zeL5v7G+8dgP65gmttTUtMO0ez5XsJCehFZfoSasGOvLQSArqLlUkAVKKROFguYyteJ+Mw4Unt5svZeABxR7OdZmF/qLTAMUx/opoQshAmlZlLtuW4RWV4oO1qUfXD0uhMuQO6sYsPmRGg1f2uWDVUY7HSGbz2W/eRYvn2HT5zsThjtqkjMeSkSq4IZg8xTr4Gx44m72TD7GUelvnm14IopefA4qOLv8q525WPUUdVvuoA6LtXbofP4P/ExKqq7fiDLmV9igvLIaBQzXH5zd+nKjo11FmhUehFU5GJBKCEV5Q8DokhQX+BAqAL4DCymcVVRwVrKnrIBCg== 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=lpQPqjpxvg5cga134G8GkigAdde7bePZD1zsjo13MEE=; b=LV3MNWg1tyGM3F/A8ysTMElyvFdPFHOchbQtjpH3Jltvh6FpVly03IJEslhJ+MboAiqUAH7q3R7Z5O+gq3tnpI1nlwYO3RT8ohU8IrppZOzv0nw3J9bWLVMSQnNYD5JrwpkmSSkG2GujtFcGCX/bglGcy5dRnbS95TNGtPeVlE9vdGrgiO28ChBPjy7/Ub5EwX8C58TxfzKuYcEW/9njQOvOdmeAmE27XlgOBbuHsquvpzXshMfGh6blOoBOP4h8Y2Cey00ojdHJVvOnm/iS+jLUGH4SyfezS5K03aPYRBxqeolzLlmVtoQb0wAA8DpkNPWkGfOi1oj1EXiMhK6HGg== 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=lpQPqjpxvg5cga134G8GkigAdde7bePZD1zsjo13MEE=; b=Qxlfva7BJB7vpMOlAgl/7FNjJK7Z3c5UjGRGpHxt4NujDU20v0/TlPEwU5w351GezmkAuUd7NuMZ3iTGUC9BfhegYazlE2oe4zh7BAGV6k9+exKTKuC5S27ajPO3TajobN5Gp+oOBOJbzPxVcRwKDQNeG337QKiHsX/eqIoxI783PZ2eDcXcVE2ybhhzHFgJLkDPaNWb5V3dhXYpsA3zwYwrMCw/16P79+eAtYTZKt+//Y7wDs4KxDEkmdy22d+qCzqbsmps5fyV+Tz6tVBQLTNYtKyv2ae+QH336mKxuaOm/C0sGxxt/k0X/hG0H0GNDgjiwK2HiIF1ng8kHcAyEA== 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:25 +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:25 +0000 From: Vladimir Oltean <vladimir.oltean@nxp.com> To: netdev@vger.kernel.org Cc: "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Claudiu Manoil <claudiu.manoil@nxp.com>, Alexandre Belloni <alexandre.belloni@bootlin.com>, Antoine Tenart <atenart@kernel.org>, UNGLinuxDriver@microchip.com, Hongbo Wang <hongbo.wang@nxp.com>, Xiaoliang Yang <xiaoliang.yang_1@nxp.com>, Andrew Lunn <andrew@lunn.ch>, Florian Fainelli <f.fainelli@gmail.com>, Colin Foster <colin.foster@in-advantage.com>, Horatiu Vultur <horatiu.vultur@microchip.com>, Hangbin Liu <liuhangbin@gmail.com>, Petr Machata <petrm@nvidia.com>, Ido Schimmel <idosch@nvidia.com>, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net 01/14] selftests: net: local_termination: refactor macvlan creation/deletion Date: Thu, 15 Aug 2024 03:06:54 +0300 Message-Id: <20240815000707.2006121-2-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: 8bit Content-Type: text/plain 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-kselftest@vger.kernel.org List-Id: <linux-kselftest.vger.kernel.org> List-Subscribe: <mailto:linux-kselftest+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kselftest+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM8PR04MB7779:EE_|VI2PR04MB10285:EE_ X-MS-Office365-Filtering-Correlation-Id: f147f40c-f3f7-40b3-e823-08dcbcbe85c4 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-Antisp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Wiypq38tFnje+10tHugNxdYzZOf7lh9rFarly6T34ZewLKtTK/mpuIkG2OEXvPOeBgLI8ZkT9H0BCrsaBRl5HRsGXNGtVdZcV1Cn0xywg96QSGllDR1hjqNwmMEgh7k441NZKZCRW6ggclRuJz5cNl1JfgvD/CNBSNTL907RduB4igbfoB+unV6/4+n65IBcnjU5nSSVpo5c1D/uAjWDHGDiQ8eGexgCzGXjoiQXO3nM+hh1hGjB4CG/pxzVv7NhbWQhHVHDZbkFFvY3bYY7ws6U6SdaPUoe+nQS16NrlB81Dx31D3tGK+lCmnu5gcUQGW+AbstUfveyW07BYIS8BpN+M0uT4UsIubJOk6EXGBWl0eAA== 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: 2NO42McsfASzR8qDifiNA7QUxw7EmTz7xA85OpEcjLAVWUvCtKatPyw9LfUrXfyjz5A428GT0/x8f+PPpA6nxolGEyM3NoiI9wGLevFelWobxpDRRUgiQk5KcSapBVhMO58MiDIRFPXPEbsW0OEOM3SqPTm4yvPMz5uGvfzwZ5Zc65vDpBLGkTz8cQKK9qAsNols8RkpZeqU1P0KWP/GjJMtnjh+/bTxtzkWyiUJmtqOt7WrOPGFlqBAv11dxpxDulpQZdt2FiL1yoPQUEiX6zRlJpf60xuFhsq/4xRp4payVgFHmhS5iLDaNmIR+zXHfNsA6km2Zu6aAMhCeIzKaA0/1ZeLyyWxtgiJcbaD0Ftrl/f9r0yHNGM33E3YyOmUGLWLLl3l7iHST0xiHaK8Rf6djVRhzY6je08/y75HwYdc9VsyjILmn1f/J3w3W88SjeUYscIBB9eL6XSkxzwx2dB5eLlb2uoAqnYheNH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7qkCs52xlOJisJFpU8xj+KLA+tQ7tjkNtQAxABLbffyLJfYdah4JwH1g== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f147f40c-f3f7-40b3-e823-08dcbcbe85c4 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:25.6236 (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: 8e+rVuCfj9w1DAJcSez3oWBgTmcpMkDCJxSufDE5UPqhoVvGU/2V2BtiVpWi3Wrv2GLyXZncdfJFDf8ICpDU4Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI2PR04MB10285 |
Series |
VLAN fixes for Ocelot driver
|
expand
|
diff --git a/tools/testing/selftests/net/forwarding/local_termination.sh b/tools/testing/selftests/net/forwarding/local_termination.sh index 4b364cdf3ef0..36f3d577d0be 100755 --- a/tools/testing/selftests/net/forwarding/local_termination.sh +++ b/tools/testing/selftests/net/forwarding/local_termination.sh @@ -247,19 +247,29 @@ bridge_destroy() ip link del br0 } -standalone() +macvlan_create() { - h1_create - h2_create + local lower=$1 - ip link add link $h2 name macvlan0 type macvlan mode private + ip link add link $lower name macvlan0 type macvlan mode private ip link set macvlan0 address $MACVLAN_ADDR ip link set macvlan0 up +} - run_test $h2 - +macvlan_destroy() +{ ip link del macvlan0 +} + +standalone() +{ + h1_create + h2_create + macvlan_create $h2 + + run_test $h2 + macvlan_destroy h2_destroy h1_destroy } @@ -268,15 +278,11 @@ bridge() { h1_create bridge_create - - ip link add link br0 name macvlan0 type macvlan mode private - ip link set macvlan0 address $MACVLAN_ADDR - ip link set macvlan0 up + macvlan_create br0 run_test br0 - ip link del macvlan0 - + macvlan_destroy bridge_destroy h1_destroy }
This will be used in other subtests as well; make new macvlan_create() and macvlan_destroy() functions. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> --- .../net/forwarding/local_termination.sh | 30 +++++++++++-------- 1 file changed, 18 insertions(+), 12 deletions(-)