From patchwork Tue Jun 20 13:55:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Machata X-Patchwork-Id: 13285918 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7651EB64D8 for ; Tue, 20 Jun 2023 13:56:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232213AbjFTN4r (ORCPT ); Tue, 20 Jun 2023 09:56:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231727AbjFTN4q (ORCPT ); Tue, 20 Jun 2023 09:56:46 -0400 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2051.outbound.protection.outlook.com [40.107.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2702210DA; Tue, 20 Jun 2023 06:56:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=blvtMd8ag6lLFNtqZA416Ehqgh7206C3b+eee6YAIDjkljaiV53ODqNESgzvMOht7OYGFglmv/1oeQzcqzpy5uJtv5QeJsllMKq5rh72TfKFTQc3iUYtHJvb++zPERxaj2MnC6AUVR5Q0dQhQyeIpdDDLQfQQRmxLPunkBHVxnnq0KVjFGowQx6fW5tlxpOyx/0Ja0GnoevLEm1MokZV831/L2qU4XwuqulZTbBEcNoF38Nts/soZLJdbWT4aZhL2hDmtSBlB8khE/JZAp9Qh+Q6wFNU3u0jyEsOObZs1wA9wrG09tBMoMFEDcwipIQpgdyqAVG33gQi1xs2NXBOGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=C0x0VaWpp0PiJFPvFFyOP3MwACgHvSq+EIKu9mh7SDA=; b=FmmUJZ0mMID2D1bIdiVAXr35qmjxOShJO8CNRLSxF3aHDHoC4FEjMm83Mhy5x5JWD043ecbhAqSrqCqDoAm74IhgWuh6lW5UD5xmsrLm40OWDcqwZ1j/MRNphTpfq30fkB29SGr5BzoW7BJrWFHlnQI6GPZV3R+fVeYJ53qvWNnpSSlgKkc8gw04ciuxUJUd8akC2i3rUoasJt/Fc9rvDT2zLoCZAzqDv3WxhRJVLIqljcqWQ5XdljrVnwnOYV9Zan4PcU59o3cSicnE9YmmUGUpjXe74Iv4MPI4SWUJ/2Bz1fitK6I7ApOn9CsT6c94Zhat49WY/4kcsxtX8J8Q5g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=davemloft.net smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=C0x0VaWpp0PiJFPvFFyOP3MwACgHvSq+EIKu9mh7SDA=; b=KzzBBB2zM5uDPMSplNTLJ7lyGWsJL7/ONIvMDgXU6wrxonwzPI5mwI2Qq8DS4cNvLqndO5cQ7wlv0TCOsv4sD+9ENAdYrGbaNGMrDZtF4XY53iITezNMaSBI81B9xrE9x8w0G9mjLnpNaFsHjMeF0Ih93XJYRboIYoCq9bk6RECLgaNSPTILstwSpl6xbEXUmgs7lPZ6c8afqznoL+rR2EqeqcTexNVILk60TDBUalSlnOQwxq88RaQyjFx2+ahLtNtjJlCbZmQQNAoC8dtQ7OwI/KZbZ/UzThdgIdmOcQHfeS3dpSnKXSoKBlQEpiMge2U1fUflefGL6xChAJq70g== Received: from BN9P221CA0002.NAMP221.PROD.OUTLOOK.COM (2603:10b6:408:10a::9) by MW6PR12MB8736.namprd12.prod.outlook.com (2603:10b6:303:244::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.35; Tue, 20 Jun 2023 13:56:38 +0000 Received: from BN8NAM11FT077.eop-nam11.prod.protection.outlook.com (2603:10b6:408:10a:cafe::fb) by BN9P221CA0002.outlook.office365.com (2603:10b6:408:10a::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.21 via Frontend Transport; Tue, 20 Jun 2023 13:56:37 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BN8NAM11FT077.mail.protection.outlook.com (10.13.177.232) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6477.29 via Frontend Transport; Tue, 20 Jun 2023 13:56:36 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Tue, 20 Jun 2023 06:56:26 -0700 Received: from yaviefel.vdiclient.nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Tue, 20 Jun 2023 06:56:21 -0700 From: Petr Machata To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , CC: Petr Machata , Ido Schimmel , Danielle Ratson , Amit Cohen , Shuah Khan , , Subject: [PATCH net-next 01/16] selftests: forwarding: q_in_vni: Disable IPv6 autogen on bridges Date: Tue, 20 Jun 2023 15:55:47 +0200 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT077:EE_|MW6PR12MB8736:EE_ X-MS-Office365-Filtering-Correlation-Id: a0347fcb-a205-49d0-7349-08db71962a37 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zaWbPWL8kiNZApx2UEFgDgAk/IKhDBYJjZZMDPr+tYQvA1+2oIyOAx/tgFe06yQWbDNw+vHpopazy5/yC5OU7jvZp60WNi4BA2MoYda+/7IPYhB7G33Kn2YGXPjwhUyfPZw76DmMhgo18a+ikCc00Io6O175kL5acztffEMJcEDaaGTNO3QrbJ+uK0Q+4RE8+KrSXR4u8CiDFDaD+p/PBAThLbeEfnMm+at0kPs2lcoe7fPrpPBGkWOBPxxpVsDrC79sGg0f+SEEyioYmbfQdOBny+ksiGjqmqkULF10wzNuech7KWKcydM2Uc3MxFFTn5cuoeSrSPWWbBd4nKoVG/D6xmmQJcwhfDrgXQt9BXVdnh1R75CfD2k/I+Tp9r05Xj+4VvXgF3egmg+3B9P+pVCD+coNC3bXCowm6ubpMNFrDrbo6HZG8JS/bSsv/v+FCdyXKeWo/l8tXvIAXknI/Duh0Thm1ITwBOlCus/NiPPnls6i9tjxV1xDF5UrFziAjvKTgYmivoNsP2Bzlx1kz41Klml1MhRGOhu5rdw3X3N9uminCet/HQQZQz9WxEu3x75GVRT1/tm31G3HLMjy+ZT6ZSMDKIbQeifhbcJpiKyR2R8nIZpNfStdMZase369eUtlyTX3gb3up4LAj5rvvbcRklZAPEroltLjJPTc2N9i+XziSQvKxYovj8ZlQkIWM1zgM5F/Q+z3nmqiPG5+tw2RF0Z6zi1rLP+7DJK3Dkv3WM1hBurQ8WSmS8p82WUL X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230028)(4636009)(136003)(376002)(396003)(39860400002)(346002)(451199021)(46966006)(36840700001)(40470700004)(107886003)(356005)(7636003)(82740400003)(40460700003)(36860700001)(478600001)(2906002)(40480700001)(6666004)(7696005)(54906003)(316002)(47076005)(66574015)(82310400005)(41300700001)(426003)(336012)(5660300002)(70206006)(70586007)(110136005)(2616005)(36756003)(26005)(86362001)(8676002)(8936002)(186003)(4326008)(16526019);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2023 13:56:36.8336 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a0347fcb-a205-49d0-7349-08db71962a37 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT077.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW6PR12MB8736 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org In a future patch, mlxsw will start adding RIFs to uppers of front panel port netdevices, if they have an IP address. This will cause this selftest to fail spuriously. The swp enslavement to the 802.1ad bridge is not allowed, because RIFs are not allowed to be created for 802.1ad bridges, but the address indicates one needs to be created. Fix by disabling automatic IPv6 address generation for the HW-offloaded bridge in this selftest, thus exempting it from mlxsw router attention. Signed-off-by: Petr Machata Reviewed-by: Amit Cohen --- tools/testing/selftests/net/forwarding/q_in_vni.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/net/forwarding/q_in_vni.sh b/tools/testing/selftests/net/forwarding/q_in_vni.sh index 4c50c0234bce..798b13525c02 100755 --- a/tools/testing/selftests/net/forwarding/q_in_vni.sh +++ b/tools/testing/selftests/net/forwarding/q_in_vni.sh @@ -137,6 +137,7 @@ switch_create() { ip link add name br1 type bridge vlan_filtering 1 vlan_protocol 802.1ad \ vlan_default_pvid 0 mcast_snooping 0 + ip link set dev br1 addrgenmode none # Make sure the bridge uses the MAC address of the local port and not # that of the VxLAN's device. ip link set dev br1 address $(mac_get $swp1) From patchwork Tue Jun 20 13:55:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Machata X-Patchwork-Id: 13285919 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A0B9EB64D8 for ; Tue, 20 Jun 2023 13:56:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231315AbjFTN4x (ORCPT ); Tue, 20 Jun 2023 09:56:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230490AbjFTN4w (ORCPT ); Tue, 20 Jun 2023 09:56:52 -0400 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2040.outbound.protection.outlook.com [40.107.236.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8732DA2; Tue, 20 Jun 2023 06:56:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XF42j/VjsTkd5jiORnGggVhkv8045kKJckvJLIVex2tjiI6u7I6o0ZKDc92ctGGvNqnkEz0tuXanzHlyyzh6LdaLppKZ+yUzuVdITYU9ETxQsdmTaDDZqg1/TX1aLr8zs5bKYi/C9tmQwN0g5UZg6LGIhdB97b3NAaqjPVH9LZ2XLvkc7fa9w9T6PyWBbr9Xl8B7u2pTTp/hjAc2q1xuxzQLPnNrAbUqcHzEMxpRTq53AeJmrQedeEpItCGuYAoW3Ci+xVj9SV9XzyRIpsLiJgagecaECWDX3f9uDxN+9xgZlhypJmy/lbc3wmVa0l7WGjBPfWT7aRvzS1WBWwW2kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=QbIkZBZ1ilkaoKN/V8acfhsJ7LM1HVj4j4+snS+ul1o=; b=KqLPyKM7t/sYN1Q7fbAj7ZUY1urcVze5XPl45Db6Dd0ShyBpDj3r4XxYjW6Jh1wfmKXOSxyOlBq5l3pBcGAPFVUruipPVEJyLmVDOiMbOEPr0Qy1RZy9yj3l7WJSb0dcQ4Xlbty2iOxHKO1Aq7vQc1nOX0Akr+ZvRMYrnv1l3v6yAlA9C2xxBHpB50anl7RW0mObgh3sZEDlVg4cHMHfpnGXpyoE/3qDCJ3QrCghFy0LgQwzWu3DqMaKe5pS9xO+sAXNvW5N7R7oKZIAL+ouDs3ULSI8TKz3DaOwmgiBflMNaNU84zzekAEDRSUBB3N8ttqpugkZ9ioEkAL/+iIPIw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=davemloft.net smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QbIkZBZ1ilkaoKN/V8acfhsJ7LM1HVj4j4+snS+ul1o=; b=ivq4umzxajZVslQHJ72PRFYAiJ6ybYqU7Ks+PjBKose0vuIfynaYQIn7MMj3RaUR8KAUGVXoP+iIPLT1zybBUPw85GMw8HSXPzPEyRa0jsgpTIGrMAUqRSkrGq7AE8BuMPT7RzuVyIOICbm4GupcqnVc4ZJsFcp5GoYgV4V6nQrzf7A8QBBa9utdKeGOH0bIJRGI55VTq9VFPM04d/GC65tWglVevBS67sdxs4P5K/cKsCojj/l7t1/vwbHlDuWTAhJLSRm66eXRlSX3HZqCmDmYhNRyY75wQLL7vFa8Kqx8EbwgvQ9/baMxvPRg/9h37ZpPFV1vyqau/RlySanAHQ== Received: from BN9P221CA0010.NAMP221.PROD.OUTLOOK.COM (2603:10b6:408:10a::13) by MN2PR12MB4390.namprd12.prod.outlook.com (2603:10b6:208:26e::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37; Tue, 20 Jun 2023 13:56:48 +0000 Received: from BN8NAM11FT077.eop-nam11.prod.protection.outlook.com (2603:10b6:408:10a:cafe::dd) by BN9P221CA0010.outlook.office365.com (2603:10b6:408:10a::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37 via Frontend Transport; Tue, 20 Jun 2023 13:56:48 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BN8NAM11FT077.mail.protection.outlook.com (10.13.177.232) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6477.29 via Frontend Transport; Tue, 20 Jun 2023 13:56:48 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Tue, 20 Jun 2023 06:56:32 -0700 Received: from yaviefel.vdiclient.nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Tue, 20 Jun 2023 06:56:26 -0700 From: Petr Machata To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , CC: Petr Machata , Ido Schimmel , Danielle Ratson , Amit Cohen , Shuah Khan , , Subject: [PATCH net-next 02/16] selftests: forwarding: dual_vxlan_bridge: Disable IPv6 autogen on bridges Date: Tue, 20 Jun 2023 15:55:48 +0200 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT077:EE_|MN2PR12MB4390:EE_ X-MS-Office365-Filtering-Correlation-Id: 3eac0015-12da-4b4f-b392-08db7196311b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WRfmb2IyXkpnVth1s6ZlHVio35VXIR/HiIm9iN3GRSlZUKwiZIOokJtnq62fi2xYCkRRUty2ojE+1HpEo2KduLMD4ABrC1gDDtL3H93J32WGOy1xNM76GisKYkv/3TW+n8vWU+b3lzTXCq22FyzAN4sJdI35pGyqH143y6u+5zW5TLG9xH7Cp9gAiTdJtL8u+AzG/z8NKlXlby1inovVJNW1VeOyPGTxDo4vx34TvBue0cWdnRtIP5uaY+mGdK/L+yd3Ei8JzKRi3n9SKWKjf6GNVsUBdaXcqlnXgKMIDi9trxkkd+gCxn76Hr/RGu0hqrObYd37mYQhNcSfw6XkYwUfpkdvMAS5LX/LdrD4gEnVLAv8xx7PgsXInw0Ss04xSnmER7ghlIRWNiPlZGj0qHmR7E5udKO15mzGe9yxxOXHTDHNj8CTjWM6lMlP7jIrnHRyIS+/DfqVtt9+OEWeE8Hgw+PD+MjV0PHr3SBqepTy+z8hjchqV30DIECYCeDKT+5HNNIWBlaLGSPchGLRHQ3Zez/Pteej5tE6VdFo7kIfOcHCEa8m/N+ApehrV+8+yxFFNXA0zRX2YABf2Aggu23vj4oB5rba3Q37MjkEORuVipLBJIUD88F+Fm/gSSoTUnqWRqP3El0NIUXQdlDcJ5nSNPH/Dq5FHcJ/iacdyGYCyFA86x4WlDE2VNnhQdJ3jEDQHp/I8kbz0vaZcEgyw8/HbiIQ4vigtnv5/gHP89WXiI7xKrmvDS9xJk+RGSnq X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230028)(4636009)(376002)(346002)(39860400002)(136003)(396003)(451199021)(40470700004)(36840700001)(46966006)(40460700003)(7696005)(6666004)(478600001)(66574015)(47076005)(26005)(16526019)(186003)(107886003)(336012)(426003)(2616005)(36756003)(82310400005)(86362001)(82740400003)(356005)(7636003)(40480700001)(36860700001)(8936002)(41300700001)(8676002)(5660300002)(316002)(4326008)(2906002)(70586007)(70206006)(54906003)(110136005);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2023 13:56:48.4114 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3eac0015-12da-4b4f-b392-08db7196311b X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT077.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4390 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org In a future patch, mlxsw will start adding RIFs to uppers of front panel port netdevices, if they have an IP address. This will cause this selftest to fail spuriously. The swp enslavement to the 802.1ad bridge is not allowed, because RIFs are not allowed to be created for 802.1ad bridges, but the address indicates one needs to be created. Fix by disabling automatic IPv6 address generation for the HW-offloaded bridge in this selftest, thus exempting it from mlxsw router attention. Signed-off-by: Petr Machata Reviewed-by: Amit Cohen --- tools/testing/selftests/net/forwarding/dual_vxlan_bridge.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/net/forwarding/dual_vxlan_bridge.sh b/tools/testing/selftests/net/forwarding/dual_vxlan_bridge.sh index 5148d97a5df8..68ee92df3e07 100755 --- a/tools/testing/selftests/net/forwarding/dual_vxlan_bridge.sh +++ b/tools/testing/selftests/net/forwarding/dual_vxlan_bridge.sh @@ -132,6 +132,7 @@ switch_create() #### BR1 #### ip link add name br1 type bridge vlan_filtering 1 \ vlan_protocol 802.1ad vlan_default_pvid 0 mcast_snooping 0 + ip link set dev br1 addrgenmode none # Make sure the bridge uses the MAC address of the local port and not # that of the VxLAN's device. ip link set dev br1 address $(mac_get $swp1) From patchwork Tue Jun 20 13:55:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Machata X-Patchwork-Id: 13285921 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B088BEB64D7 for ; Tue, 20 Jun 2023 13:56:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230490AbjFTN45 (ORCPT ); Tue, 20 Jun 2023 09:56:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232204AbjFTN44 (ORCPT ); Tue, 20 Jun 2023 09:56:56 -0400 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2056.outbound.protection.outlook.com [40.107.93.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A85DAA2; Tue, 20 Jun 2023 06:56:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CvG9X27QwoKQ9uMBwMtjE8CG0RpfaCOOos1yubyoAheqqEiVMjrr7gX46HNXgE/o+SFg861jjf7C2tYfRIXR+IZV2ltKNHnx5osJtE8THDrfXqjoPM7M436lQzSBNkdM5lVrUbNXRCOGaqnfJK/y24jrSUrLnO9fy29zzPhhiCyF42lMVe5OHF60F5IgeoEaTq7hDVSXkrLun+BeLVZKMGvLEXajZugULJ35fG0thNSUMAR7YqayGAc0OgQpqUeK347oXzhwrsTgvFV6J3HxCsJWJxUOKvIqKH1R8M18Kwi1Ao21nTMwMgVKjJsPp8Ne/vPE1lNrAmhkc8laZGjOgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=DOtLzkHKEYIkJimtmtyRMLdi9C3Ing9qiUFXKrWAMvs=; b=bRtN/g8yI7KYKUYxTt6RSXp2DVlypK/g50x68f59NwcD8FNkU9bbDlm1KhQiEbAk/cHltcMEIl3G8jpUxfRM2ew8KercaHEVjvut9RNd/L94sGyCA9+LyFnwBIS6fhgU3QGGm6PV30CznHmVQNw8MHroa0zugLwu57Pb4hQL6rBC84uvISTRtB6lW58tICEMmE6Bd8EGoebQCtE5rnY/g6tGPvc1/MzqfF5JGxTCMbwM0Zn2rVUx+tGfW4Xj3VeqLVldb7kjz2no4IydTyuEnCskTf4iPigN+DPJUNagZzsn1oJQJvhOUjR6ZptZOBmGFMNaPx+CBUg+boM1vGz+HA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=davemloft.net smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DOtLzkHKEYIkJimtmtyRMLdi9C3Ing9qiUFXKrWAMvs=; b=DYCOHGmWnRYmnq8AFWf1r/cPRWd+y5+8Z3kP+1lhVbxXk2CaLXUzgz6Vapl5BIyHA4rs582Q3KIj/oJ0KYCfuVVcw6KWEMvTOQmVFNCghpfXeWzr8euB6TJn6ir2UXsRUzS/VVdDxP17HoZrBeBJilTrVlwnp7kM9jOPhLJ/eoEOQCHQQWL0m7bLlA7IvqfhpmI3CmcPi2q3DsH99Ri67uLKoinayhJL82okwh25Z7zj53PoUYIm01DoQK3QEH3ItcsS+J3tGGCKf9T2a6lWkRvGMlUvELMg8pfxeOBIgtGSELL1OWdglTpmdEo1c9HbIFug3sivyRhrQ1tzNGPgIg== Received: from BN0PR04CA0097.namprd04.prod.outlook.com (2603:10b6:408:ec::12) by CH2PR12MB5514.namprd12.prod.outlook.com (2603:10b6:610:62::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37; Tue, 20 Jun 2023 13:56:53 +0000 Received: from BN8NAM11FT090.eop-nam11.prod.protection.outlook.com (2603:10b6:408:ec:cafe::a1) by BN0PR04CA0097.outlook.office365.com (2603:10b6:408:ec::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37 via Frontend Transport; Tue, 20 Jun 2023 13:56:51 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BN8NAM11FT090.mail.protection.outlook.com (10.13.177.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37 via Frontend Transport; Tue, 20 Jun 2023 13:56:53 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Tue, 20 Jun 2023 06:56:36 -0700 Received: from yaviefel.vdiclient.nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Tue, 20 Jun 2023 06:56:32 -0700 From: Petr Machata To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , CC: Petr Machata , Ido Schimmel , Danielle Ratson , Amit Cohen , Shuah Khan , , Subject: [PATCH net-next 03/16] selftests: forwarding: skbedit_priority: Disable IPv6 autogen on a bridge Date: Tue, 20 Jun 2023 15:55:49 +0200 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT090:EE_|CH2PR12MB5514:EE_ X-MS-Office365-Filtering-Correlation-Id: a4b31586-8979-4898-d067-08db719633eb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: IYIL1XHMSyQjNTUcHls71iwOPL3XOWJX315dz+1o/uTBIj9Vh73tlwM82gGVjJxYn4Of+P6YihQr6zSI+p5GeyEddAAuvSLSFvWb9GJRZjiw1LrtlvZ2GjIySXVEHhp2PPYQIt3F+NWx9FZjWHN4Y51chTC09oIb54r0HcYk45NKoL2NBnvtyImoiAvn+vZY9EtR7aMwRG7J36BO55HKCJKgwLApIi4bQbA9dIUA34uiKZtS/58n7D2r++4VTVTo8w0n37LAfyNA8NtAHUG8NBlXxKHKD5k0q8YRTEwbm44kFlvynbXfX6H/YfNXDXmhAoyWOF0yX+EaqokOuc3M0+MZIz0bp8LC4xKa5yxkcndQCG7Ys2yjsD8H6ElPlPcbh9/hmCE6H4CbpfBvrK49tvVbKQ/XuesBRXFvEreOFo+auLUePiVFSvA2wVvVSgBXXH56Y/mN1c3opoHl6W1yVho5ZdopvC3cjRUBx9Fd0KI4FgZh4lZMNqzyln8MM07rtHqRPAmpJLQ3UkMz/c/DJR4aaJkCWveNKW0MwQ6T/VflCtriFg3fS6VzkvUwQWFNGBrwkx6AMHUy4M0xH6+DPbdYz8MEKsuhNPB2JbVMt1FxX4P3RXRu25lPzxdJhVL0w+YtC1Oy8tfRFUufUXWyNCPsn7B/M9tfnmKWyxD0aKoc+zsh9WN/zrYlQFxxg1sj0KwwoqkjgBrvAYLCojTncBAcDhhXK7LCYsMazRM03sVUzPbzfQGgY2kZJfrVNLd5 X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230028)(4636009)(346002)(396003)(136003)(376002)(39860400002)(451199021)(46966006)(36840700001)(40470700004)(5660300002)(8676002)(8936002)(82310400005)(70206006)(70586007)(4326008)(316002)(41300700001)(40480700001)(86362001)(40460700003)(2906002)(36756003)(7696005)(6666004)(336012)(426003)(16526019)(186003)(26005)(2616005)(107886003)(356005)(36860700001)(7636003)(83380400001)(478600001)(54906003)(110136005)(82740400003)(47076005)(66574015);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2023 13:56:53.1151 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a4b31586-8979-4898-d067-08db719633eb X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT090.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB5514 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org In a future patch, mlxsw will start adding RIFs to uppers of front panel port netdevices, if they have an IP address. At the time that the front panel port is enslaved to the bridge, the bridge MAC address does not have the same prefix as other interfaces in the system. On Nvidia Spectrum-1 machines all the RIFs have to have the same 38-bit MAC address prefix. Since the bridge does not obey this limitation, the RIF cannot be created, and the enslavement attempt is vetoed on the grounds of the configuration not being offloadable. The selftest itself however checks operation of pedit on IPv4 and IPv6 dsfield and its parts. The bridge thus does not need to participate in routing traffic and the IP address or the RIF are irrelevant. Fix by disabling automatic IPv6 address generation for the HW-offloaded bridge in this selftest, thus exempting it from mlxsw router attention. Since the bridge is only used for L2 forwarding, this change should not hinder usefulness of this selftest for testing SW datapath or HW datapaths in other devices. Signed-off-by: Petr Machata Reviewed-by: Danielle Ratson --- tools/testing/selftests/net/forwarding/pedit_dsfield.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/forwarding/pedit_dsfield.sh b/tools/testing/selftests/net/forwarding/pedit_dsfield.sh index 64fbd211d907..af008fbf2725 100755 --- a/tools/testing/selftests/net/forwarding/pedit_dsfield.sh +++ b/tools/testing/selftests/net/forwarding/pedit_dsfield.sh @@ -60,7 +60,9 @@ h2_destroy() switch_create() { - ip link add name br1 up type bridge vlan_filtering 1 + ip link add name br1 type bridge vlan_filtering 1 + ip link set dev br1 addrgenmode none + ip link set dev br1 up ip link set dev $swp1 master br1 ip link set dev $swp1 up ip link set dev $swp2 master br1 From patchwork Tue Jun 20 13:55:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Machata X-Patchwork-Id: 13285920 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AE30CEB64D8 for ; Tue, 20 Jun 2023 13:56:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232191AbjFTN44 (ORCPT ); Tue, 20 Jun 2023 09:56:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230490AbjFTN4z (ORCPT ); Tue, 20 Jun 2023 09:56:55 -0400 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2081.outbound.protection.outlook.com [40.107.101.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 875A1CF; Tue, 20 Jun 2023 06:56:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FQe4iEHqfFIJZYYKykows3EwcRySV5qo27vxTchP/mdf0HtYOwM2qLTb/KbyHGZsk3MYwAR3dTE41JZtTeMWU2Gw3CSyCs0sAooCf9CdlOZ5IVPNnogN5FgeODyyg8JmZ4sm6AqgisMUoq/rljny7e9eWBmtqYMs/R+Z1pme1mQ7Cwyh+DBMVH75ekytIHgS3h0KVcjM3EGklwwVDk+i795RW4cvNA8L62MUsp5RFP7+dlcLmKuCebfquIj71RUrY7Xw8+ofLA3t4FFtJ4F7T5ZQDnELz9z8vJIwXUEjeGdw2k5viyfEBV3Vi2UIRD1LfmUIib4TE43hfdZId20DTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=qV5UJXrBf2eZAVglW/rxhIEfxoZDb/BHlLBWQjREYXU=; b=iSfvA0LDZWsLbTo1Fd52nfnVIj3J/AJ8X7fBGICQBmslg7PlIM3FdllDJe5FQBAKtyZ04+qwTWU25DefhoLCyzu7rTu/0nl0AtuRsPb3DY0VtDK2XrJ7iu1lP/BtqZgmlGZI+GIunkPHGpin3EOAq+3sdmGPCaWvM4iRG5EwknGZ9CmoDKkqHGOSAqv3fVZ33S/LRtWeifHDIrDa14LSWQGNiUlWlUpyr656n+L4tIsKYR/HL0pKVjkCmenmeiDnAgGQM5JPeiHJdyBPaoqeIZM9Puzg0x594cKVkUgm0LCaGQatx4dVApToRFfOttG5KOKbYK02AZIsoryuMV0mmw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=davemloft.net smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qV5UJXrBf2eZAVglW/rxhIEfxoZDb/BHlLBWQjREYXU=; b=MVXYOEOa5nLFMPQnUYd91opaou0+aTN1h6FwVmgkpccXbtIYznzbyBg/DzVVFr2/baO6mIg1d1n/A5YrNP+muMHY+b9jBuhfZcWYjkIpkYsd/kwGb2IVjbN1mzPn5wEwjUvgd177iPqrM7j+rjW+or/CAD2kvsvWWwxX64rUIPgWQucmpD/8pVMRuNJVI9558IFOT5KH9QYMuv+dMBKBJUu3zyLlpUUjsz+octOaGW760exQQEPdtPQkpyO5nfSYuxxJQh5/5wOvfKayAQbg8Yg53OLb2Em8LINdI9sedPT2dP4gRXOflSsgb5XsV2kwwh9VzPwjcOWxi6OPEAQmSQ== Received: from BN8PR16CA0014.namprd16.prod.outlook.com (2603:10b6:408:4c::27) by MN0PR12MB5955.namprd12.prod.outlook.com (2603:10b6:208:37e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.21; Tue, 20 Jun 2023 13:56:51 +0000 Received: from BN8NAM11FT048.eop-nam11.prod.protection.outlook.com (2603:10b6:408:4c:cafe::33) by BN8PR16CA0014.outlook.office365.com (2603:10b6:408:4c::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37 via Frontend Transport; Tue, 20 Jun 2023 13:56:51 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by BN8NAM11FT048.mail.protection.outlook.com (10.13.177.117) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37 via Frontend Transport; Tue, 20 Jun 2023 13:56:50 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Tue, 20 Jun 2023 06:56:40 -0700 Received: from yaviefel.vdiclient.nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Tue, 20 Jun 2023 06:56:36 -0700 From: Petr Machata To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , CC: Petr Machata , Ido Schimmel , Danielle Ratson , Amit Cohen , Shuah Khan , , Subject: [PATCH net-next 04/16] selftests: forwarding: pedit_dsfield: Disable IPv6 autogen on a bridge Date: Tue, 20 Jun 2023 15:55:50 +0200 Message-ID: <23dcd3264f6f93356e3ee1aa12287ba8ece9f2a3.1687265905.git.petrm@nvidia.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT048:EE_|MN0PR12MB5955:EE_ X-MS-Office365-Filtering-Correlation-Id: 6c9f7e67-b52f-4bcf-87a5-08db71963285 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Y4Zn3aIWlfeqR9K1ftCGRs1jvHBYAV3LLuW5HlH7Zx3oUKDJgzVVN5oVFkBBcwm7qCQquT9UTJb/tXxGYLEOC3lGXt91hALVCxWezWmWRKEgyQnqmsjBS6buEYmFmu+/6g84crbHEwFguq4/FOlb48kW/MLuFKn0lU0ncbJPRV9KklJua3HdIbTTP55i0EZhckrW1aVTb+rUt3A89HeABp5gVaPkL2YT3PkDSUdu7+6y+WfrQtFRIiEt5/MDFwcNSgUtdw5pIX2/nXhhGTWR8Zwx1DqJVg/QZJHXe/j04912DhSU9hwlqCzluSWyOqZi1j8bJUVTn5rfUndGqlr8aGUcP64nvif8ALDAFF+xdelsPZ+q4wDaeh1KAawcP1vbwQRFq5FfX61sF+p8Du+lk9bSNy1s6hyFL0ROgI3S9DROeo9L9sjj78flQRqHrhdITn8eBI37Cg8T6M9vScrBxPWo41OzVEnmLdijUWSBN0yQvQq3m7NXo+YLrtw9cMJPLHc/zzkyg55nFGJKmP2YOKkIgxwZpTeZ58tzvmE69qEzJ48klnCTu2ooN5/GBb/cyq645kMZH9n8UAl61S4psrXkSVUIO0BMb+2xJEYX38yoLL99hUmaphueEL2KbS9V5rq9rJETHbFoNjfKUOfaJvhad/TkTRfXj/pYS0S2dug8SvBjU/j6YZUNNS5ST88H83FeGWWqPbIFNtCE/DRduJxFsJntTngTU0YV8q7wZZSwJNsCBUmFOy+AlYb5L/kP X-Forefront-Antispam-Report: CIP:216.228.117.161;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge2.nvidia.com;CAT:NONE;SFS:(13230028)(4636009)(376002)(346002)(396003)(136003)(39860400002)(451199021)(40470700004)(46966006)(36840700001)(5660300002)(8936002)(8676002)(4326008)(70586007)(70206006)(316002)(110136005)(41300700001)(2906002)(54906003)(36860700001)(6666004)(7696005)(40460700003)(478600001)(82740400003)(107886003)(40480700001)(26005)(186003)(16526019)(83380400001)(36756003)(426003)(336012)(66574015)(47076005)(7636003)(356005)(82310400005)(2616005)(86362001);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2023 13:56:50.7827 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6c9f7e67-b52f-4bcf-87a5-08db71963285 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.161];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT048.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB5955 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org In a future patch, mlxsw will start adding RIFs to uppers of front panel port netdevices, if they have an IP address. At the time that the front panel port is enslaved to the bridge, the bridge MAC address does not have the same prefix as other interfaces in the system. On Nvidia Spectrum-1 machines all the RIFs have to have the same 38-bit MAC address prefix. Since the bridge does not obey this limitation, the RIF cannot be created, and the enslavement attempt is vetoed on the grounds of the configuration not being offloadable. The selftest itself however checks whether skbedit changes packet priority as appropriate. The bridge thus does not need to participate in routing traffic and the IP address or the RIF are irrelevant. Fix by disabling automatic IPv6 address generation for the HW-offloaded bridge in this selftest, thus exempting it from mlxsw router attention. Since the bridge is only used for L2 forwarding, this change should not hinder usefulness of this selftest for testing SW datapath or HW datapaths in other devices. Signed-off-by: Petr Machata Reviewed-by: Danielle Ratson --- tools/testing/selftests/net/forwarding/skbedit_priority.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/forwarding/skbedit_priority.sh b/tools/testing/selftests/net/forwarding/skbedit_priority.sh index bde11dc27873..3dd5fcbd3eaa 100755 --- a/tools/testing/selftests/net/forwarding/skbedit_priority.sh +++ b/tools/testing/selftests/net/forwarding/skbedit_priority.sh @@ -54,7 +54,9 @@ h2_destroy() switch_create() { - ip link add name br1 up type bridge vlan_filtering 1 + ip link add name br1 type bridge vlan_filtering 1 + ip link set dev br1 addrgenmode none + ip link set dev br1 up ip link set dev $swp1 master br1 ip link set dev $swp1 up ip link set dev $swp2 master br1 From patchwork Tue Jun 20 13:55:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Machata X-Patchwork-Id: 13285922 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 777FBEB64D7 for ; Tue, 20 Jun 2023 13:57:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232269AbjFTN5C (ORCPT ); Tue, 20 Jun 2023 09:57:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232214AbjFTN5B (ORCPT ); Tue, 20 Jun 2023 09:57:01 -0400 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on2067.outbound.protection.outlook.com [40.107.96.67]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E326A4; Tue, 20 Jun 2023 06:57:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A4bkY3jAP6IQCGZaGouWLeVCEkdr1woK4hDaEdn4os3U4NSppZgU03v26UG3Tr3Porx7rHQ7V7pyJyuxWVATliylvsNjDqHXGohq5KOY24MmwJqFrl7e6rkmckwpc0SKhlVAT/l4NEXgJoTFpA8SYPqsuioetPpLxIaeBKeR8a5TjBcPfdxeJrGqKZ3Py9ooeLMlK9PysNFUxkGBY9LjuZk/AW7Bq+OB6UFkYjpw7JfX65YkkUsUhzuOVPlYXC4HkosCYYh8SQmvDgzXzq4ytVOB7jbM6wpOgUG0OUKkNbro2enDwZ1SEU9uQCTn+mmw2R79NQsCxTf++yhPDboKEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=aRoiKkxgxEmWFne9y0QScbldsXc6MBYAX9tu5Od4mU8=; b=H0p1a2PbLS/zT3SEa7kLbAVxKjtYD9m59aZv0Xff1ANe+JsY+Y891ZyJ3HcCsBVsm8oC1fOBDx99pezkPNEWSP0+06fh3SoYtPTVDImuxgPWaPYlkmcDDMakdy3E0R8vYrmgl+4rH9KClE+dc9fr/X3D2faN02jl/y1dfAkL5sffzzlfucJoVrx/zNq0na06ctzShaKoOr7eOZW/XHIG2dPxmYCitRQMxOR+qO3WAsq8v8WzhcnT+u6z308eRuW7cXWHdJrYH4269HmsRCOrRoTpkqTbYqyPmS/u4AUPq2fhwiN71oqK3Y/wcsLHKktnoxyIvqrLGFWiZR+1gXNHHg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=davemloft.net smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aRoiKkxgxEmWFne9y0QScbldsXc6MBYAX9tu5Od4mU8=; b=GF4Ct7xtPQOh+hpCkuMn5Xtsw5WmZEXvPcaLCSfmJPR7Y5QEjwu5LG7YcX4hiIXvwxv3F5lOeLxmZgCOrETCp45kBevPl7HRp84sg173Nc88vYKe5Ufn/cFU7FqMRlh//3FZvyx8nAUlM5tWdp5pdsQ3EjKLWGm0rKj36S/vLS53LXsSi/KxDwskMjxvPGty1dP9un6TW4FW+Aa9u/WzInk4jqgulsky2r98wJJlmTl2tkSGWvpVr77+JYQx/yTbvGqE7Eqpna0b8BXl3cSt4kMoO7mrg+c+JtsXuXriAzpgDasz2i3mQX0l0uoR2cHayU2e3ngV8aJTJFrAJYmpaQ== Received: from BN0PR04CA0117.namprd04.prod.outlook.com (2603:10b6:408:ec::32) by CH3PR12MB8209.namprd12.prod.outlook.com (2603:10b6:610:123::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37; Tue, 20 Jun 2023 13:56:57 +0000 Received: from BN8NAM11FT090.eop-nam11.prod.protection.outlook.com (2603:10b6:408:ec:cafe::73) by BN0PR04CA0117.outlook.office365.com (2603:10b6:408:ec::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.21 via Frontend Transport; Tue, 20 Jun 2023 13:56:56 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BN8NAM11FT090.mail.protection.outlook.com (10.13.177.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37 via Frontend Transport; Tue, 20 Jun 2023 13:56:57 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Tue, 20 Jun 2023 06:56:45 -0700 Received: from yaviefel.vdiclient.nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Tue, 20 Jun 2023 06:56:41 -0700 From: Petr Machata To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , CC: Petr Machata , Ido Schimmel , Danielle Ratson , Amit Cohen , Shuah Khan , , Subject: [PATCH net-next 05/16] selftests: forwarding: mirror_gre_*: Disable IPv6 autogen on bridges Date: Tue, 20 Jun 2023 15:55:51 +0200 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT090:EE_|CH3PR12MB8209:EE_ X-MS-Office365-Filtering-Correlation-Id: 760a602e-bc40-41ef-95fe-08db719636a1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5Zw1uLRQEhIxIAgoJn/yL5vEu51WHCC1Dk8u7JEaY79OU+L2zncj4nNTQ+ptwLqRc2svgoYF4Q8A0BB4kHdabc9Q2JBRzBr+EHgqtLvurUUIbleZ7nO11NW0GnoZP9qg5boHaZ12eOU1HR7dSMEee9Nn0JlUjz1sCxYN/erX10JQ09OIfbFtnhlLhU7FsKOvX5djVNZryZIhAn/LkiIeNEF2u5nC4LA9iSPVxW2dmwBzXtcYBSU0UYUQfyFzA81DukAoLK/kBgfy+o2Iu9Yt5IMoL0SA+n+/cE/0NLj5JQFSnHIxyvTLaCmqt4oqs6ukU+UFVQKrwGE8mZgi9F65fidVDnOMLWUyK2S52HRVpGBPpLtK1/yNeTlxR9FbhaR5IHnOWKomhtsfg34JP2w9Viq7ayouwUMDCMFZ+oCPtEqJHyPGOXtrwfJm+wijiOwt/iqTTUM0RWRrB1wwu8okazRFNsLv/wQGwQOFHwheu9zzzdXhp70WbjcfpW+5ebVDz0bPtM1gcD6zIFMCoCejgM4Umb8GXrPxBkeiwnfZrXg54JLukCwf0REKRxk3HnnK9hHcdUnLyC4FmLQKnesdqk0oZ3QtwHIYSUVAlu4Bj97+Ge8bJHhJxn/KogiqE4BSMwRpFzk151yyZ8t/jimUOE3FWOtSOS/MZ3pciAp2YuVJyxnXxI4sy7Pz5IUJBIeeoUZgp37QI/Dxc+S19JCW0kDTFkSFDOSzZN0l+4c0RSSmpNsTWQrIm+buoeWLV34Q X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(396003)(346002)(136003)(376002)(451199021)(40470700004)(46966006)(36840700001)(7636003)(54906003)(47076005)(16526019)(110136005)(356005)(107886003)(83380400001)(70206006)(186003)(26005)(70586007)(2616005)(36756003)(426003)(66574015)(6666004)(7696005)(478600001)(336012)(41300700001)(5660300002)(86362001)(40460700003)(82740400003)(40480700001)(316002)(4326008)(2906002)(36860700001)(8676002)(8936002)(82310400005);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2023 13:56:57.6618 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 760a602e-bc40-41ef-95fe-08db719636a1 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT090.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB8209 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org In a future patch, mlxsw will start adding RIFs to uppers of front panel port netdevices, if they have an IP address. At the time that the front panel port is enslaved to the bridge, the bridge MAC address does not have the same prefix as other interfaces in the system. On Nvidia Spectrum-1 machines all the RIFs have to have the same 38-bit MAC address prefix. Since the bridge does not obey this limitation, the RIF cannot be created, and the enslavement attempt is vetoed on the grounds of the configuration not being offloadable. These two selftests however check mirroring traffic to a gretap netdevice. The bridge here does not participate in routing traffic and the IP address or the RIF are irrelevant. Fix by disabling automatic IPv6 address generation for the HW-offloaded bridges in these selftests, thus exempting them from mlxsw router attention. Since the bridges are only used for L2 forwarding, this change should not hinder usefulness of this selftest for testing SW datapath or HW datapaths in other devices. Signed-off-by: Petr Machata Reviewed-by: Danielle Ratson --- tools/testing/selftests/net/forwarding/mirror_gre_bound.sh | 1 + tools/testing/selftests/net/forwarding/mirror_topo_lib.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/tools/testing/selftests/net/forwarding/mirror_gre_bound.sh b/tools/testing/selftests/net/forwarding/mirror_gre_bound.sh index 360ca133bead..6c257ec03756 100755 --- a/tools/testing/selftests/net/forwarding/mirror_gre_bound.sh +++ b/tools/testing/selftests/net/forwarding/mirror_gre_bound.sh @@ -98,6 +98,7 @@ switch_create() # Bridge between H1 and H2. ip link add name br1 type bridge vlan_filtering 1 + ip link set dev br1 addrgenmode none ip link set dev br1 up ip link set dev $swp1 master br1 diff --git a/tools/testing/selftests/net/forwarding/mirror_topo_lib.sh b/tools/testing/selftests/net/forwarding/mirror_topo_lib.sh index 04979e5962e7..bb1adbb7b98a 100644 --- a/tools/testing/selftests/net/forwarding/mirror_topo_lib.sh +++ b/tools/testing/selftests/net/forwarding/mirror_topo_lib.sh @@ -60,6 +60,7 @@ mirror_topo_switch_create() ip link set dev $swp3 up ip link add name br1 type bridge vlan_filtering 1 + ip link set dev br1 addrgenmode none ip link set dev br1 up ip link set dev $swp1 master br1 From patchwork Tue Jun 20 13:55:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Machata X-Patchwork-Id: 13285923 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8900AEB64DB for ; Tue, 20 Jun 2023 13:57:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232214AbjFTN5D (ORCPT ); Tue, 20 Jun 2023 09:57:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232204AbjFTN5B (ORCPT ); Tue, 20 Jun 2023 09:57:01 -0400 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2067.outbound.protection.outlook.com [40.107.223.67]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66CDDD3; Tue, 20 Jun 2023 06:57:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OJrAmLPfpm7bXTkFBjRbWWdNIr27wc9BZNr7pZIfeQtngulm71lIJlAHrK1g7gZ6QV0JduQgUS0rcNlZlBfRkK3D2xpTkIBiBHJQpvPBpb25oRYuVSnXFcgDgjyWUdEX+uf0ZJQM/0Iw7aHUDl6nZTDsQ5DkeKKt5YtFHHIwHjLAAkVQXmR262sieZmMC4CIykBZhG6hlqql1Swp8hBImi9w2n+j2k2RBGTC5x6t9JKkJyoKJR/2QOi9qjWNnO0BUugFo8wtS3jSZ7OrCHbQ2fqHdcgZo+JQzoWwtso1eDrJQ5hPs306+ap/9Or5bxJSgRLfewh3zyRWXqkVq3dboA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=GVD+Himn3jxE+9Z5FakfaoQYgmgYX+OPfhpual5AgZw=; b=OBfl35wLrYcPGAChVdBE7eZn1QwRI0gY0AdL4f5q6gRs/hmYaTpu1nrgvEw13wNIEhBlIEJxgV/lpjkIlLGetmbMDB3J0jxvFBa0aNairLR7FPc0t6hmV+2D9O+cyaMQsyFOjT5gXOq2IhNP/C3CuqbxbVO25OgL92qkv/nD2urBQeCz2fxbenG0lZLh4wvhCMWaH1ciNFYA6fYTJdQdmcV3W8A5zoSiCXt/FHNYtPrCu3zZTadUObynUTOcNBLrgqFXTxeDqwhq99DNTpnaTvKOwS+8DSsEQiKeWdsVJHYa78K7j/u5WPSJqaWwJC3zxqibazxyGQw/4SwZ2+Uj5A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=davemloft.net smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GVD+Himn3jxE+9Z5FakfaoQYgmgYX+OPfhpual5AgZw=; b=BX21g3917lIcuo1HJjgABCPjRKn50XXYPLBhw8FZRgaBG6yHq1UVr8AmnSXbNITLxEoFNkxCOY302fSBl42CpLS3bcTezq/tiHgkWfGCoHpdkg9jWyQ6TKKBltMCd7a+4cpbYlYaYml9hjIvAkeQNyJ/oWGfR9T7JN43fJyQUf5pstZmUVjhybP7Sm0u7/UrAJaXjIPq3OGN0w4SxT5M/ZnbcXDqj/bPYimkFFWlpWORVBRQmRxFeZKMzTL6gemG/Eba6hESxkiRbJQTnrtG+Q51bVN3IVOOezrwMSj33QsWukIE9KUe9Fu2JBqLVMY+YHYTPtcbM/zpDfRnWm2DmQ== Received: from BN8PR16CA0014.namprd16.prod.outlook.com (2603:10b6:408:4c::27) by PH7PR12MB6420.namprd12.prod.outlook.com (2603:10b6:510:1fc::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37; Tue, 20 Jun 2023 13:56:57 +0000 Received: from BN8NAM11FT048.eop-nam11.prod.protection.outlook.com (2603:10b6:408:4c:cafe::63) by BN8PR16CA0014.outlook.office365.com (2603:10b6:408:4c::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37 via Frontend Transport; Tue, 20 Jun 2023 13:56:57 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by BN8NAM11FT048.mail.protection.outlook.com (10.13.177.117) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37 via Frontend Transport; Tue, 20 Jun 2023 13:56:57 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Tue, 20 Jun 2023 06:56:49 -0700 Received: from yaviefel.vdiclient.nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Tue, 20 Jun 2023 06:56:45 -0700 From: Petr Machata To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , CC: Petr Machata , Ido Schimmel , Danielle Ratson , Amit Cohen , Shuah Khan , , Subject: [PATCH net-next 06/16] selftests: forwarding: mirror_gre_*: Use port MAC for bridge address Date: Tue, 20 Jun 2023 15:55:52 +0200 Message-ID: <9f76a2fd0f89db7ee6e857c2c072db577acc98a9.1687265905.git.petrm@nvidia.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT048:EE_|PH7PR12MB6420:EE_ X-MS-Office365-Filtering-Correlation-Id: 08549f67-f05c-4cf0-83ed-08db71963660 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HhSWb+fRp7/bYYcFJ3x3G+Bc94Z7hzj+36nS2YQ2pPqM09CH9eEwnvJGz8Mi8tatPIHfEWsW6iJXWi1qS4OsPHv3X/syXVzteopfg3W4qdKXBn75M3TGkdhsQl8rmOeAMb1busVvnUxjHDbZu7lAO5o8bDNVJcOi6BcbBKS+4hPo2SDEDHMArOIFUmdkIaREsjnC7sXqOXugcgtIpnBeMpXb8xL1koqyU9gf5ioX0CvCRw3GYjmqb0GJYv1FnyU0rVg7pJh2NTfFs/U5w8/ubWCpbCc6afv+5QUChxg2zdds0AXaaRupHfrAOBergOWlwd/63frCe+kAbtyItInEi7nXTelHy1yaZI1gsgKeDX/y5FIUb4V3eWuB7/VtVXJfnPIcugsrcZqpDR7O5MQRZnHdlOEFkiNiRnGZr+BWbS1Yz6S40X82+6vrVylkD7tbtyhAv8qo31rs1QyPiT0v2T3o4DIovrB5XyU70AyqS45pYJB+QW2djgVUCMiDpH9RmqrIDom7lcgudJmXrvFTkfMclHPYRVrynjnsKXRKQdYYS4cshLQeDJM0HoBfLtWAqEVFGSS1mXJJ6t2CCFxUJKgoEPRt4SMxiZVEAoRhCyzG6rEcsjKm4H0T/N736fdM1IePUfGEOUAoRNc3Av/1PMoP/S5TTBzUJ1XMRIzn5twW/Fvq2Ddd3y4bYLXzjtBuWYiJNGC4OzbMVD9Nwv0ID1oq/jMg85/VbUXo25erDlY= X-Forefront-Antispam-Report: CIP:216.228.117.161;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge2.nvidia.com;CAT:NONE;SFS:(13230028)(4636009)(346002)(39860400002)(396003)(136003)(376002)(451199021)(46966006)(40470700004)(36840700001)(70206006)(70586007)(40460700003)(426003)(83380400001)(47076005)(6666004)(336012)(86362001)(36860700001)(82310400005)(4326008)(7696005)(186003)(16526019)(316002)(107886003)(26005)(8936002)(41300700001)(2616005)(36756003)(8676002)(40480700001)(356005)(110136005)(5660300002)(7636003)(54906003)(82740400003)(2906002)(478600001);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2023 13:56:57.2354 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 08549f67-f05c-4cf0-83ed-08db71963660 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.161];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT048.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB6420 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org In a future patch, mlxsw will start adding RIFs to uppers of front panel port netdevices, if they have an IP address. At the time that the front panel port is enslaved to the bridge, the bridge MAC address does not have the same prefix as other interfaces in the system. On Nvidia Spectrum-1 machines all the RIFs have to have the same 38-bit MAC address prefix. Since the bridge does not obey this limitation, the RIF cannot be created, and the enslavement attempt is vetoed on the grounds of the configuration not being offloadable. The bridge eventually inherits MAC address from its first member, after the enslavement is acked. A number of (mainly VXLAN) selftests already work around the problem by setting the MAC address to whatever it will eventually be anyway. Do the same for several mirror_gre selftests. Signed-off-by: Petr Machata Reviewed-by: Danielle Ratson --- tools/testing/selftests/net/forwarding/mirror_gre_bridge_1d.sh | 3 ++- .../selftests/net/forwarding/mirror_gre_bridge_1d_vlan.sh | 3 ++- .../selftests/net/forwarding/mirror_gre_bridge_1q_lag.sh | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/net/forwarding/mirror_gre_bridge_1d.sh b/tools/testing/selftests/net/forwarding/mirror_gre_bridge_1d.sh index aec752a22e9e..04fd14b0a9b7 100755 --- a/tools/testing/selftests/net/forwarding/mirror_gre_bridge_1d.sh +++ b/tools/testing/selftests/net/forwarding/mirror_gre_bridge_1d.sh @@ -65,7 +65,8 @@ setup_prepare() vrf_prepare mirror_gre_topo_create - ip link add name br2 type bridge vlan_filtering 0 + ip link add name br2 address $(mac_get $swp3) \ + type bridge vlan_filtering 0 ip link set dev br2 up ip link set dev $swp3 master br2 diff --git a/tools/testing/selftests/net/forwarding/mirror_gre_bridge_1d_vlan.sh b/tools/testing/selftests/net/forwarding/mirror_gre_bridge_1d_vlan.sh index 1b27f2b0f196..f35313c76fac 100755 --- a/tools/testing/selftests/net/forwarding/mirror_gre_bridge_1d_vlan.sh +++ b/tools/testing/selftests/net/forwarding/mirror_gre_bridge_1d_vlan.sh @@ -35,7 +35,8 @@ setup_prepare() vrf_prepare mirror_gre_topo_create - ip link add name br2 type bridge vlan_filtering 0 + ip link add name br2 address $(mac_get $swp3) \ + type bridge vlan_filtering 0 ip link set dev br2 up vlan_create $swp3 555 diff --git a/tools/testing/selftests/net/forwarding/mirror_gre_bridge_1q_lag.sh b/tools/testing/selftests/net/forwarding/mirror_gre_bridge_1q_lag.sh index 91e431cd919e..c53148b1dc63 100755 --- a/tools/testing/selftests/net/forwarding/mirror_gre_bridge_1q_lag.sh +++ b/tools/testing/selftests/net/forwarding/mirror_gre_bridge_1q_lag.sh @@ -140,7 +140,8 @@ switch_create() ip link set dev $swp3 up ip link set dev $swp4 up - ip link add name br1 type bridge vlan_filtering 1 + ip link add name br1 address $(mac_get $swp3) \ + type bridge vlan_filtering 1 team_create lag loadbalance $swp3 $swp4 ip link set dev lag master br1 From patchwork Tue Jun 20 13:55:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Machata X-Patchwork-Id: 13285924 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8AACDEB64D7 for ; Tue, 20 Jun 2023 13:57:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231991AbjFTN5O (ORCPT ); Tue, 20 Jun 2023 09:57:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231272AbjFTN5N (ORCPT ); Tue, 20 Jun 2023 09:57:13 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2071.outbound.protection.outlook.com [40.107.220.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B75939D; Tue, 20 Jun 2023 06:57:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=he7XYta6kgb5n6VvIfLOtGxzlv62V/MLpSFTDD4djJk6AdIn3inIfcANOdr2O8s1XC8RIZI0iOZxqN2PiUhA6jHeJqbxrjuslyxGrc4c4vO07asNYCPNCh0Xt7lOZyDhXFsXupOG9yg5HugdAOrcvMaVcrDZ/sr+WxPYrI/eIKmrQfC65NqD57gDFDMUflskdwwPkmzs7Hkvxbj0pl57HUVujF98KzS5EWqd04bSDsFNyhY6JaXzhCbtAwM0UX48XNdV2fj0Qpa3qsJWPLXTM3qv9WcI8lSLRg3X0L1s7Q5ZRnKtgw0fmxhgHOPbIFRvxdtsZBjOW5qTW78iutrb7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=sQHo8Xc16Y3bI+peSWn6wZV7cZvT1PE48GGYarOPQ+Y=; b=izgE5q0UlKNEDkt2sBO/m8VoXwOG7GWDqP+BEM4cojxUKYLivABLE9VhfiyyvUbN09k2rcBSxQhPzx5Okg6qSbcXO06GDpG8OE47vFLR1sq8VT4NUyiZ1Du7wWSPkGdf9DWWYBHC+RLplpjs/Al2RlQQGvCDLPfmt5ZpRkXgl3G+gf0hcQUN8LSkSR9UN3ZliX87fJCbp//k4VoWW1Dzc+kSb4XQm3whN0n5G1/iG9Us+Wmfr3GitxpJghvWgsi2S2Y4X05RvB5WEdLve6yp7ldcloQd7zn0xQXgVR+kOhCekQoPya/UyTWl8F2wZvAs3qqkfVH3rpeT2q3fLdnqTg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=davemloft.net smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sQHo8Xc16Y3bI+peSWn6wZV7cZvT1PE48GGYarOPQ+Y=; b=LvBGlXpNhTuKuWbWI/tscn9aGYPxL5SkATtVTbJ3oLQmPP9kU0dC3ionbdJcoGC7ln6J7+ybq+vZ6ly5oXqJQw5qJ0I26pmqG4oeogTM11+PAFp8PbRk9++wGR/mVLLzgMg+88/WBiz9xgh9AShstTnv9kTRaVljpBRLIgfGWilpyrP/u6JGQIJdmIRVD/8gnWMxdl+25f2awiJpiHpS/NSyjWQ4RMWUEqnuDAmQbjHn5ozmzy0u4XxoC5CTtOzsobkDTNR/BT4n4B1qT/TsFzAKdcKNUd+lC63TorjqC8iS8tt2soIZTh/G/Br285tAPBeGn98YVw8Hj61/0HhIRw== Received: from BN9PR03CA0844.namprd03.prod.outlook.com (2603:10b6:408:13d::9) by BN9PR12MB5178.namprd12.prod.outlook.com (2603:10b6:408:11b::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37; Tue, 20 Jun 2023 13:57:10 +0000 Received: from BN8NAM11FT035.eop-nam11.prod.protection.outlook.com (2603:10b6:408:13d:cafe::ed) by BN9PR03CA0844.outlook.office365.com (2603:10b6:408:13d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.21 via Frontend Transport; Tue, 20 Jun 2023 13:57:10 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BN8NAM11FT035.mail.protection.outlook.com (10.13.177.116) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37 via Frontend Transport; Tue, 20 Jun 2023 13:57:09 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Tue, 20 Jun 2023 06:56:53 -0700 Received: from yaviefel.vdiclient.nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Tue, 20 Jun 2023 06:56:49 -0700 From: Petr Machata To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , CC: Petr Machata , Ido Schimmel , Danielle Ratson , Amit Cohen , Shuah Khan , , Subject: [PATCH net-next 07/16] selftests: forwarding: router_bridge: Use port MAC for bridge address Date: Tue, 20 Jun 2023 15:55:53 +0200 Message-ID: <74b370bdbb884b37836d2789474879d75aa978c1.1687265905.git.petrm@nvidia.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT035:EE_|BN9PR12MB5178:EE_ X-MS-Office365-Filtering-Correlation-Id: 0acf1bab-9cab-42a7-55af-08db71963dc6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pBbpRCDQT9pDDUIyYyBOr6DwZOueRvYX1HpbfS0mt5YdwB8fYcMKlwOE8lUSN0bb5TDXA2H7jYIPC9siWwCU+bjfFa+AxHG2XkNQYDstkJAJD8MXxKP5Zf/Fd4qsZEeEE2Rcn4yNBm2H7KWZxezHYNYLkt2BffizrvOHPKOsGURrQZ0+ocRv73ugFEI/nFTomtX3i/xVTaQbO64wIHz76A2VLcIQgwuC1d8w95vYeKPKJA8uko5QieS+B53gPbxVsRYu9d+9wDtyMI6L+hc/1lN7YJlohtITTS/66oidvYGZcBuvZojKuTtBzSq8rCxUc1oUJhxSJ3GGRfNRw0NHGuzu7s1SD7qiQ+hOfOl70VhQBUZj80xff3d88tX10kFrYh7wqBFEZ3eKTghgbDv4oSsINCrg77kLLoyuT57ULGoZQNLIG4q3+SW9RA+mChYIcK8/HU1NjAlfqfiEZgalNLYqfnBmC0qvFW5Y9ecGxXv4alCEkZY+a1ie0cR982/CfK3irWrX+ADdGAAxSWjtnGJ6QR6zgDyLR2V3TytlXFO2Vn1agBOtJeC+BdfJOJLVsXBZCofUMg63dPzjq9/GhzH6vw2oopLq/iuKAsJUJz+1Fv8vmsxoD1DCzCi2miUPHZZY0CGq4wsoleulSUnX7u5hpkzQ6iDd8m99H0h4qyzqwSZcUeZQcFNgcbmwDApViGWPis+PNgzw7cj7gr8uJztWMc2C39pnc0cs6ZIgdVo= X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230028)(4636009)(376002)(136003)(346002)(39860400002)(396003)(451199021)(36840700001)(40470700004)(46966006)(478600001)(40480700001)(2906002)(40460700003)(54906003)(6666004)(7696005)(2616005)(356005)(7636003)(110136005)(336012)(86362001)(66574015)(426003)(47076005)(107886003)(36756003)(186003)(26005)(16526019)(8936002)(8676002)(70206006)(70586007)(82310400005)(5660300002)(4326008)(36860700001)(316002)(82740400003)(83380400001)(41300700001);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2023 13:57:09.6467 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0acf1bab-9cab-42a7-55af-08db71963dc6 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT035.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR12MB5178 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org In a future patch, mlxsw will start adding RIFs to uppers of front panel port netdevices, if they have an IP address. At the time that the front panel port is enslaved to the bridge, the bridge MAC address does not have the same prefix as other interfaces in the system. On Nvidia Spectrum-1 machines all the RIFs have to have the same 38-bit MAC address prefix. Since the bridge does not obey this limitation, the RIF cannot be created, and the enslavement attempt is vetoed on the grounds of the configuration not being offloadable. The bridge eventually inherits MAC address from its first member, after the enslavement is acked. A number of (mainly VXLAN) selftests already work around the problem by setting the MAC address to whatever it will eventually be anyway. Do the same here. Signed-off-by: Petr Machata Reviewed-by: Danielle Ratson --- tools/testing/selftests/net/forwarding/router_bridge.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/forwarding/router_bridge.sh b/tools/testing/selftests/net/forwarding/router_bridge.sh index ebc596a272f7..8ce0aed54ece 100755 --- a/tools/testing/selftests/net/forwarding/router_bridge.sh +++ b/tools/testing/selftests/net/forwarding/router_bridge.sh @@ -38,7 +38,8 @@ h2_destroy() router_create() { - ip link add name br1 type bridge vlan_filtering 1 + ip link add name br1 address $(mac_get $swp1) \ + type bridge vlan_filtering 1 ip link set dev br1 up ip link set dev $swp1 master br1 From patchwork Tue Jun 20 13:55:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Machata X-Patchwork-Id: 13285925 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C9B8EB64D8 for ; Tue, 20 Jun 2023 13:57:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232225AbjFTN5R (ORCPT ); Tue, 20 Jun 2023 09:57:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231272AbjFTN5P (ORCPT ); Tue, 20 Jun 2023 09:57:15 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2062d.outbound.protection.outlook.com [IPv6:2a01:111:f400:7eab::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AA52A2; Tue, 20 Jun 2023 06:57:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GElS7jY+XFkE7mn5FDtM00W2BBDhjZbju2EcqnnGGTLObVZYVTkDuS1NUePOW7eM0EkTHRzfBAatYBGNryE44FuhfTcYiuw59zw1kCE+keZA5AIsHsYXnE0884JzadnVp1aDG8SajdFv4Kk7w7YEb0SdQaTVy3HTlJBwN5xwyXGLD2RCWV4mNhIM6xB1lm0hymJhVBUwpC2vBPoiSG6/GRAToMoRnFP6SstSCREZv/pecVK36a/Jr3oF9MCmeTehNRydXY+OcRXj3iEBkGkkD0YT1cZ0ULGyR1kwDN5a0n9bs0n2Jlh3BK48g6xjlH9XTBKqJK0m63UlZ3nXhE829w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=77kIKvy+UbrIOpvL33Kv7RIfoeIFrzBQkzWjZsF26L0=; b=OHjVuGQC2BOIemdNB37NTAAv7SQhsQrlF51LGGcrh4VCK7ufx/e3Ivtu7PZuadHyupVp9UB/NiIlcnB2U8CZED+2L6oANEPQH+B0pappIbqg89Ssom+nyzx5wBRBywTxi+KFB1QktzcV4c4+XZqGufeLltd+vCzVWunKYqqoBIoWjOAEmFdpBbtW6fY4PZHhrBJU8SdEycX6CHGS1PrQrSRm7xO1L2h94JlblbuRxS6+Ep/MJSh3CpL7eZnGVIve/eJ1I2/s2BM8lY0hsBPKhVTRGgVeDV+J1P28YIRVJdLjH8Tvm3E8sPzmva+UD3SMJmvU3Y9g67BYj0p0bGQUgQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=davemloft.net smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=77kIKvy+UbrIOpvL33Kv7RIfoeIFrzBQkzWjZsF26L0=; b=PMn6ibgKsFcVZ2CxuUoF3cw8pmI9fYyAvraagHe2SbBmna3QmzCLpCcR4ctSCBnszj21L2w7Pf4pg2s7dSotQ/uelG7rT/LHNaXRdteRNttnr7nZkw+zWTNQC1Rxa44CSsydh5/OaO4XgvLQBihqxP4Qnyi2otWrYH1nu8gVL6pkjAipP1UoEipZ8efaQO6FaLsgpVCskslliZkxQwfBWF9awmnyjKOR18wiYkStQxW6Qefxdg0fsK6WWALCbjwn9j7guzVBks8f6xmonG3uBurFIdjOywePKWyExXylY6HT8kT3JM0lfgpfeT01+oerjkCpRRnNb5Pujr5qPE4ASg== Received: from BN0PR04CA0045.namprd04.prod.outlook.com (2603:10b6:408:e8::20) by SA1PR12MB6970.namprd12.prod.outlook.com (2603:10b6:806:24d::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.35; Tue, 20 Jun 2023 13:57:10 +0000 Received: from BN8NAM11FT004.eop-nam11.prod.protection.outlook.com (2603:10b6:408:e8:cafe::5a) by BN0PR04CA0045.outlook.office365.com (2603:10b6:408:e8::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.21 via Frontend Transport; Tue, 20 Jun 2023 13:57:08 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by BN8NAM11FT004.mail.protection.outlook.com (10.13.176.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.38 via Frontend Transport; Tue, 20 Jun 2023 13:57:09 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Tue, 20 Jun 2023 06:56:58 -0700 Received: from yaviefel.vdiclient.nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Tue, 20 Jun 2023 06:56:54 -0700 From: Petr Machata To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , CC: Petr Machata , Ido Schimmel , Danielle Ratson , Amit Cohen , Shuah Khan , , Subject: [PATCH net-next 08/16] selftests: mlxsw: q_in_q_veto: Disable IPv6 autogen on bridges Date: Tue, 20 Jun 2023 15:55:54 +0200 Message-ID: <7ff597df6c315e4cc6cfb50f9cc399f173475239.1687265905.git.petrm@nvidia.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT004:EE_|SA1PR12MB6970:EE_ X-MS-Office365-Filtering-Correlation-Id: 9b80b091-0c1c-4a89-537f-08db71963dcb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GSHEGdbwIXJpPJGL2cL/k9LGwixOE7TzCJa0ksfvTPK+XdEaDqwemAh0CdtslIckN0biTd9RP5ytjb+IvI2/HYm+NXxNDqQgdXkH27qaFaw7+JCEU/r9v2UKNQfJq0BrHO4U7QCb0FR+7i1m1dnE0IMFNkLXO3Bl1+Py3whjZD6nln3kgv+NHtG3W1ZQmuVmWd52zo+7xkJX0DdVgCE4ODY0vAvFK6T+CV0uUMzjPqxfMH0PXrMiQ9d659uqDRJKulz60OkfXVoxBF3EYwlq41BMyBGRLjawfzE/6i1m3rBp5fu6JC1MrsJWVne0YmsSD/GWWDttV//37OuABDhPao+ddue+pZ239b+CpgeOOeCjEyQTzUmrbDmK+13T5m88EBX2pJKZ4N9euSGIDfV6EgCpy5l8WDmtNTBSApi+xCIylZHTn0/zIcM6klAjRzhaPALQBw5UFB5aNXVQMn8N/keDSdNeD5J46CdVIL2pNsSWkMw+0GEfzt9SUCQ3GJukWSk54W4iYisPccsn3VIobJnhDJ8fKE3GlK1e2orn/LaEEUFepuhYtI4v+Kt0uh0mH7Rsv0J7mTfXro55vAlYLJdiK9DNQjACQ/Sq4NG0yq2tX7/St+mlGz1aWPF82329bNLbiclFKePX66o6RAHZJVR+kCiaJZRIk0q2FiAyMegtYBH4J0DaJQPWq0ggIE9hF3jHPULHdOS0smF5ILupndvTPVy/OXu6eBGfF+YtWEE3mz1oeA1tuoku5h8VPNlh X-Forefront-Antispam-Report: CIP:216.228.117.161;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge2.nvidia.com;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(136003)(376002)(346002)(396003)(451199021)(36840700001)(46966006)(40470700004)(2906002)(40460700003)(5660300002)(8936002)(82310400005)(36756003)(40480700001)(8676002)(41300700001)(86362001)(107886003)(478600001)(26005)(54906003)(186003)(110136005)(16526019)(7696005)(70586007)(70206006)(36860700001)(66574015)(47076005)(7636003)(356005)(4326008)(316002)(426003)(336012)(2616005)(82740400003);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2023 13:57:09.6794 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9b80b091-0c1c-4a89-537f-08db71963dcb X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.161];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT004.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB6970 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org In a future patch, mlxsw will start adding RIFs to uppers of front panel port netdevices, if they have an IP address. The swp enslavement to the 802.1ad bridge is not allowed, because RIFs are not allowed to be created for 802.1ad bridges, but the address indicates one needs to be created. Thus the veto selftests fail already during the port enslavement. Then the attempt to create a VLAN on top of the same bridge is not vetoed, because the bridge is not related to mlxsw, and the selftest fails. Fix by disabling automatic IPv6 address generation for the bridges in this selftest, thus exempting them from the mlxsw router attention. Signed-off-by: Petr Machata Reviewed-by: Amit Cohen --- tools/testing/selftests/drivers/net/mlxsw/q_in_q_veto.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/testing/selftests/drivers/net/mlxsw/q_in_q_veto.sh b/tools/testing/selftests/drivers/net/mlxsw/q_in_q_veto.sh index 7edaed8eb86a..00d55b0e98c1 100755 --- a/tools/testing/selftests/drivers/net/mlxsw/q_in_q_veto.sh +++ b/tools/testing/selftests/drivers/net/mlxsw/q_in_q_veto.sh @@ -48,6 +48,7 @@ create_vlan_upper_on_top_of_bridge() ip link add dev br0 type bridge vlan_filtering 1 \ vlan_protocol $bridge_proto vlan_default_pvid 0 mcast_snooping 0 + ip link set dev br0 addrgenmode none ip link set dev br0 up ip link set dev $swp1 master br0 @@ -88,6 +89,7 @@ create_8021ad_vlan_upper_on_top_bridge_port() ip link add dev br0 type bridge vlan_filtering 1 \ vlan_default_pvid 0 mcast_snooping 0 + ip link set dev br0 addrgenmode none ip link set dev $swp1 master br0 ip link set dev br0 up @@ -155,6 +157,7 @@ create_vlan_upper_on_top_front_panel_enslaved_to_8021ad_bridge() ip link add dev br0 type bridge vlan_filtering 1 \ vlan_protocol 802.1ad vlan_default_pvid 0 mcast_snooping 0 + ip link set dev br0 addrgenmode none ip link set dev br0 up ip link set dev $swp1 master br0 @@ -177,6 +180,7 @@ create_vlan_upper_on_top_lag_enslaved_to_8021ad_bridge() ip link add dev br0 type bridge vlan_filtering 1 \ vlan_protocol 802.1ad vlan_default_pvid 0 mcast_snooping 0 + ip link set dev br0 addrgenmode none ip link set dev br0 up ip link add name bond1 type bond mode 802.3ad @@ -203,6 +207,7 @@ enslave_front_panel_with_vlan_upper_to_8021ad_bridge() ip link add dev br0 type bridge vlan_filtering 1 \ vlan_protocol 802.1ad vlan_default_pvid 0 mcast_snooping 0 + ip link set dev br0 addrgenmode none ip link set dev br0 up ip link add name $swp1.100 link $swp1 type vlan id 100 @@ -225,6 +230,7 @@ enslave_lag_with_vlan_upper_to_8021ad_bridge() ip link add dev br0 type bridge vlan_filtering 1 \ vlan_protocol 802.1ad vlan_default_pvid 0 mcast_snooping 0 + ip link set dev br0 addrgenmode none ip link set dev br0 up ip link add name bond1 type bond mode 802.3ad @@ -252,6 +258,7 @@ add_ip_address_to_8021ad_bridge() ip link add dev br0 type bridge vlan_filtering 1 \ vlan_protocol 802.1ad vlan_default_pvid 0 mcast_snooping 0 + ip link set dev br0 addrgenmode none ip link set dev br0 up ip link set dev $swp1 master br0 @@ -273,6 +280,7 @@ switch_bridge_protocol_from_8021q_to_8021ad() ip link add dev br0 type bridge vlan_filtering 1 \ vlan_protocol 802.1ad vlan_default_pvid 0 mcast_snooping 0 + ip link set dev br0 addrgenmode none ip link set dev br0 up ip link set dev $swp1 master br0 From patchwork Tue Jun 20 13:55:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Machata X-Patchwork-Id: 13285926 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 10D2BEB64D7 for ; Tue, 20 Jun 2023 13:57:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232292AbjFTN5U (ORCPT ); Tue, 20 Jun 2023 09:57:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231272AbjFTN5T (ORCPT ); Tue, 20 Jun 2023 09:57:19 -0400 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2055.outbound.protection.outlook.com [40.107.92.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C8DFA4; Tue, 20 Jun 2023 06:57:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MUWLNVMznOoNkFZm77+196hXScJFzUoEDPWR3mACNdaDLV64piZHJ7revdjjRH1fz/ZPkZF1BEkD0PDXKA7rrkTumvZnplVMuE5c1hvbYet6Sg4g1g0+Mmmd0tqVv99a6laq8NN8p4wL0jHZ5MZGBAUJihVUGQzGY7xaug5eHcE1una4h/FloQ0IS8k+dCGDDVGTUNQ9D41PxBvuPk4QSMGQkHg7ZuUitlPbXIL9gF/5Lb7Ya9koojQFhc6NILqPdNXJLn/ZAPlhSQiegbHFWAKlSjbzAfEfwWTZm2oX+1SqkbJ1UUn7iAOJCGuewYpel3r7vs1ebg9XLarwgi2XEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=hqY6FtefmJZsl1SSfKzYex4+g15uyN8t+rljVhvbGyU=; b=WPytzFM1amlb7yCZhzxZQEPaewGgZ7f2SXr4lnOstjMU0WXayfMsfjHK1LOpNN+cwvLLXnvBUkYT64FcQ9dqbZhe5cXAoiGhfiDuVo0X2D8aT1PAraB89zM4Mt0ygV/jtluFmWDtqY80+WIO/QVR9oMUQeO+jCaGIV+Bul7i90h4bv4Py9vESALVIs7ehcyn/T3/5Jt+1tUWuN9yfpLfenUC0GmwkNyuDY1jRgSYwzuRMAbKBPbbB16CdyvJrXt4WBtpySTNqgJw5DVeJvnLRLSNPwGUte+I4IQDK6x7vLdlwP4OLA2GuS8l/wzxite0rrvsR3RdJfJlkz3m60KQyg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=davemloft.net smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hqY6FtefmJZsl1SSfKzYex4+g15uyN8t+rljVhvbGyU=; b=T70txCMS/b+UaGR2uc7R/7tJi19bP7eloNSSYYLjxbZmo0egw8vWpTCdehFePMs8RhSdIxe6o/umxzTMxGGT7quVuMNUWSTvp62/TPeH5Ru5GuKJ/J+Xmsjb7HYZxhJtRVySM5x9W4eqxzJgBFKEVCRoryAhnlZLlo5rhLyquoB/Qmm+I+tVjJGLkRt7w8msBA6dgmihukrQ+t5CnT0VfDfLUYidGInq23xA1pS7iQBku65zaD1K8W5LySBxTOzoXZKakyZYwQ8lBvKDUo8pEcLN4df40E7PZqgPdRpNDi2nrebSMIhEwSssY41M4838IDrt00RlSKBWibrfcvY0CA== Received: from BN6PR17CA0032.namprd17.prod.outlook.com (2603:10b6:405:75::21) by SN7PR12MB7252.namprd12.prod.outlook.com (2603:10b6:806:2ac::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.36; Tue, 20 Jun 2023 13:57:15 +0000 Received: from BN8NAM11FT014.eop-nam11.prod.protection.outlook.com (2603:10b6:405:75:cafe::e8) by BN6PR17CA0032.outlook.office365.com (2603:10b6:405:75::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.21 via Frontend Transport; Tue, 20 Jun 2023 13:57:14 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BN8NAM11FT014.mail.protection.outlook.com (10.13.177.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37 via Frontend Transport; Tue, 20 Jun 2023 13:57:14 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Tue, 20 Jun 2023 06:57:01 -0700 Received: from yaviefel.vdiclient.nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Tue, 20 Jun 2023 06:56:58 -0700 From: Petr Machata To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , CC: Petr Machata , Ido Schimmel , Danielle Ratson , Amit Cohen , Shuah Khan , , Subject: [PATCH net-next 09/16] selftests: mlxsw: extack: Disable IPv6 autogen on bridges Date: Tue, 20 Jun 2023 15:55:55 +0200 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT014:EE_|SN7PR12MB7252:EE_ X-MS-Office365-Filtering-Correlation-Id: 28299693-da52-44e1-5073-08db71964061 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: c6zdAsGB1zNJWc/Ev3MWW7wU7dq9cFcAFMnPLe0/X4eFx8LmENCkb2DCFigr9PDSu55hDhDf1G2QCxFrfd+v2sT5MVHTNNvwcZpAp7jHE05frqdzA3xGx5JZWrLhhs+6ltZJYRcuf7ejXXiw14tI+4AXWwqqk3S0ASSXOWbt9Q17FeIPCjPnoaTZwuq3zchyGcsLf1V1vURVMzqicuateZB92aQDZyQwSnzXGCL5cMErDQQ+FwR+hQkE5nfVrU3XAixe7wbW4+LHk+wDfMPas7NNlioYo7F+c5G1nc0Guf3DNYT4gpW/LTHIl5UhyK7eUEkoDegyaBwRiAcd94jF3wwNTzUTugCiHUYaC8EeQvYbK33AsUn+JFhfGQWPcZApHkFRaZl253ysMH6z/d9Sb/JXXQ6hLvRK03U0YJx3m2F1VWkduZ8juow1gsKXGT8n1jQgJonxPy44x/O6KcwNbxnT5jK2A4y3XmFIWkUTrrDmli7/cwIHnzjYryeKE0TATZlBSsGzsKKl5xXyLP8p3d+Wq0c1Xh1nWpJidQpId3zv7arX0Gifwed5dPxCW87PgqCgADl0YeF42oAGYb2u/U0UYIf6PpgkXWFJHu3hV6oB6ZCAex3ZKtLIoMvcDw5u+WY6TEWxoeFMt6t+YaWy5CQCTnGxvj0gE4hGbl9673HQHDg4ePa4DCmX6m0+T00Pu3vjAVG7ytiBRPuMjYs6oHI7rK4VVoHzTvnm4ofb7NkFHRqBez11e0/eejmJ3YIw X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230028)(4636009)(376002)(396003)(136003)(39860400002)(346002)(451199021)(46966006)(36840700001)(40470700004)(4326008)(478600001)(54906003)(110136005)(7696005)(26005)(40460700003)(107886003)(16526019)(186003)(40480700001)(6666004)(2906002)(36756003)(8676002)(41300700001)(8936002)(70586007)(70206006)(316002)(5660300002)(82310400005)(83380400001)(426003)(47076005)(86362001)(336012)(66574015)(356005)(7636003)(36860700001)(2616005)(82740400003);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2023 13:57:14.0178 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 28299693-da52-44e1-5073-08db71964061 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT014.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB7252 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org In a future patch, mlxsw will start adding RIFs to uppers of front panel port netdevices, if they have an IP address. At the time that the front panel port is enslaved to the bridge (this holds for all bridges used here), the bridge MAC address does not have the same prefix as other interfaces in the system. On Nvidia Spectrum-1 machines all the RIFs have to have the same 38-bit MAC address prefix. Since the bridge does not obey this limitation, the RIF cannot be created, and the enslavement attempt is vetoed on the grounds of the configuration not being offloadable. The selftest itself however checks whether a different vetoed aspect of the configuration provides an extack. The IP address or the RIF are irrelevant. Fix by disabling automatic IPv6 address generation for the HW-offloaded bridges in this selftest, thus exempting them from mlxsw router attention. Signed-off-by: Petr Machata Reviewed-by: Danielle Ratson --- .../selftests/drivers/net/mlxsw/extack.sh | 24 ++++++++++++++----- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/tools/testing/selftests/drivers/net/mlxsw/extack.sh b/tools/testing/selftests/drivers/net/mlxsw/extack.sh index 7a0a99c1d22f..6fd422d38fe8 100755 --- a/tools/testing/selftests/drivers/net/mlxsw/extack.sh +++ b/tools/testing/selftests/drivers/net/mlxsw/extack.sh @@ -35,7 +35,9 @@ netdev_pre_up_test() { RET=0 - ip link add name br1 up type bridge vlan_filtering 0 mcast_snooping 0 + ip link add name br1 type bridge vlan_filtering 0 mcast_snooping 0 + ip link set dev br1 addrgenmode none + ip link set dev br1 up ip link add name vx1 up type vxlan id 1000 \ local 192.0.2.17 remote 192.0.2.18 \ dstport 4789 nolearning noudpcsum tos inherit ttl 100 @@ -46,7 +48,9 @@ netdev_pre_up_test() ip link set dev $swp1 master br1 check_err $? - ip link add name br2 up type bridge vlan_filtering 0 mcast_snooping 0 + ip link add name br2 type bridge vlan_filtering 0 mcast_snooping 0 + ip link set dev br2 addrgenmode none + ip link set dev br2 up ip link add name vx2 up type vxlan id 2000 \ local 192.0.2.17 remote 192.0.2.18 \ dstport 4789 nolearning noudpcsum tos inherit ttl 100 @@ -81,7 +85,9 @@ vxlan_vlan_add_test() { RET=0 - ip link add name br1 up type bridge vlan_filtering 1 mcast_snooping 0 + ip link add name br1 type bridge vlan_filtering 1 mcast_snooping 0 + ip link set dev br1 addrgenmode none + ip link set dev br1 up # Unsupported configuration: mlxsw demands VXLAN with "noudpcsum". ip link add name vx1 up type vxlan id 1000 \ @@ -117,7 +123,9 @@ vxlan_bridge_create_test() dstport 4789 tos inherit ttl 100 # Test with VLAN-aware bridge. - ip link add name br1 up type bridge vlan_filtering 1 mcast_snooping 0 + ip link add name br1 type bridge vlan_filtering 1 mcast_snooping 0 + ip link set dev br1 addrgenmode none + ip link set dev br1 up ip link set dev vx1 master br1 @@ -142,8 +150,12 @@ bridge_create_test() { RET=0 - ip link add name br1 up type bridge vlan_filtering 1 - ip link add name br2 up type bridge vlan_filtering 1 + ip link add name br1 type bridge vlan_filtering 1 + ip link set dev br1 addrgenmode none + ip link set dev br1 up + ip link add name br2 type bridge vlan_filtering 1 + ip link set dev br2 addrgenmode none + ip link set dev br2 up ip link set dev $swp1 master br1 check_err $? From patchwork Tue Jun 20 13:55:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Machata X-Patchwork-Id: 13285927 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B7C2BEB64D7 for ; Tue, 20 Jun 2023 13:57:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232204AbjFTN5X (ORCPT ); Tue, 20 Jun 2023 09:57:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231272AbjFTN5V (ORCPT ); Tue, 20 Jun 2023 09:57:21 -0400 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2083.outbound.protection.outlook.com [40.107.93.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDE32D3; Tue, 20 Jun 2023 06:57:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BI7RnhZ3ghYZCjrABTy/xXI+vsvH9oOJX+9MDjLEj3AXrgD/Z9YVNfpnumwDGgjhzpFQoCH7o8/s7EPc78sXZCdC60Ry4OCHpbHlIjZssdeBnB8VRt2/GtZq4LpXlHXph0Du6m8NbFMsw+AIS2zAq78KBf0NTKq6BnsyF9yqdU9058nyndEgygB/OwjjYjyjJj/sS/F7hCZaF5ARV4+slJofMD6sv+cIxR5HLvAuC7qcZjexx6Rvda+4Hsx8mFxQxQ8rdFj48/hF0AEIyrrdJeXL0TlBXBD+ojHv72k/H5SQZdQaU+wf2PwDlyj1ruiYYgPu7jws0H62zAXTHqAyzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=oNKSLNR+laZ6F2+Kc3jaKGaBStDoRaJj5CTLMD951IA=; b=Zu6cOsZITzeGAjRzp6jUhLeMwxMeORGZea82p/EfVuVmFKADiXDfdZ+KQKJWLNbUVqcikF2T8RSdBL7mSdBxNoDswkClDOGR5nqy57O8Cn71iyHousuBBNv5DbtsQXYN3GP/64DLpwCrGw9gcHYgTPLto3P51zIFemjBBpgUPxaf2JxV7O/dypnvw8O5puPU2bPNt8fBpcdj9YQRj7jqIt+r1Lk2/a+PUf4eHmaIgxinLfy5hkCtJjPkWGg3VUT0iCebqQsdJWCsxRtb1ii6o72xuVGDdmNTa47+KV/BGOoAIQUJ92hudDA5LGYGcAi4isbQrlCVKgCRfbKH3gSfjA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=davemloft.net smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oNKSLNR+laZ6F2+Kc3jaKGaBStDoRaJj5CTLMD951IA=; b=iW+FUeLyf2Q1BUboIeFjOotSb5Mnp7lnck05djqsGTZaKxhfrlZLxcMHozT70mpLFnbpHsniqzHLLjw4SYNvUD4d0hWA4Exhm129Pdxc6pexuMEbb+z7nfSodL71jDpyN7xPEWfVnSdV8bJPkLes3yeeD/zckXqDjdyGJDnz0/KZaeOtUPcZisesk4rgDKfDzizFx+udWqIwfJD1Ypmc1ilHYImHkPdCjtVLhedpku6Ew9p+lUxFbUxuNLAFxTuuVJR3e2BaChgerGmYNK37yj6Zhm86wPsC+Y0NJqZV2j5uNcUKe9xO3ME2BilfG68zCxzmGKWjwd+8mzNEhhFTLA== Received: from BN0PR08CA0003.namprd08.prod.outlook.com (2603:10b6:408:142::19) by MN0PR12MB6080.namprd12.prod.outlook.com (2603:10b6:208:3c8::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.21; Tue, 20 Jun 2023 13:57:17 +0000 Received: from BN8NAM11FT043.eop-nam11.prod.protection.outlook.com (2603:10b6:408:142:cafe::92) by BN0PR08CA0003.outlook.office365.com (2603:10b6:408:142::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37 via Frontend Transport; Tue, 20 Jun 2023 13:57:17 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by BN8NAM11FT043.mail.protection.outlook.com (10.13.177.218) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37 via Frontend Transport; Tue, 20 Jun 2023 13:57:17 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Tue, 20 Jun 2023 06:57:05 -0700 Received: from yaviefel.vdiclient.nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Tue, 20 Jun 2023 06:57:01 -0700 From: Petr Machata To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , CC: Petr Machata , Ido Schimmel , Danielle Ratson , Amit Cohen , Shuah Khan , , Subject: [PATCH net-next 10/16] selftests: mlxsw: mirror_gre_scale: Disable IPv6 autogen on a bridge Date: Tue, 20 Jun 2023 15:55:56 +0200 Message-ID: <37694704013f9640c27c3cb7d9296f4bd213473f.1687265905.git.petrm@nvidia.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT043:EE_|MN0PR12MB6080:EE_ X-MS-Office365-Filtering-Correlation-Id: 4316381b-3a04-4274-beaa-08db7196423e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 053UANxsOw+rYprq40yV/Fvta4vKCmBdB5sRSuDBm8cVplfvaqXyjPZBlJvEEsH0TzC+QFQnS2P4l8IsO2swqw8uMXFG1Xe1PhZDoWP0HpH0KT1xt+nZ57ALqsQVKye1vz2/gk6cK/T9gx7r8ZZU0dj7bSalHGpRgFgGRZd0ySjz0BKyLRBeBjZ6Nnlbq1zA+2fqxG70E41McNKIwZuoF8neoShN3j/72qZBroHQCb/tdg2WXjWy8wTSVessmxqx90IGJ6sPc32L0tJiSKt3+gKFXImnXbTveKJnEn8e3Bhq7DthMnnfv/dLtbXtSw4yJTZ3cm/Stpohvu99RyXZNEyxZhCr2IeiEYgKUKZEJGQPaNMN+DIEuH4PPeGY3PTcDcgaq5MZeMzE1RuZWfB3C/wsrmQQ8/uxQpVyumQzOjtyPYRcSMiV2JStRWf1gVCr45PF6jUXKYprdhe9OIBOjh1AwqJboUJs12tH5+5wDVwvKnrJ24p/v7n/b4KXQMoPyRajGp5dRJ2VeGyb4X/4v6I7CuPFky2t9kLyHVyBnJPRwqTJSNjlgUhwXvHUrnveYceRfLZmNdxQ+ZLLIA2yUn4IKgL+oUVjHCAm6W2M9lQNHcXJOkoDyjFNUVvUuWshCSwGbSVWtVFQGfxFMj7s6XPF0KBEYBhg9APEnKKLoYDCIkm2ZRTRykZJfQ8qfp9by91zgvNpB5haJ7npVPxo4KJoB4MMc+iQjyuL7RxXiL2fbHGxmiA6CofFJmQdqs2t X-Forefront-Antispam-Report: CIP:216.228.117.161;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge2.nvidia.com;CAT:NONE;SFS:(13230028)(4636009)(396003)(39860400002)(376002)(136003)(346002)(451199021)(36840700001)(46966006)(40470700004)(82310400005)(36860700001)(36756003)(40460700003)(70206006)(356005)(5660300002)(8936002)(8676002)(41300700001)(86362001)(4326008)(40480700001)(316002)(82740400003)(70586007)(7636003)(107886003)(426003)(47076005)(66574015)(26005)(186003)(16526019)(2906002)(2616005)(7696005)(478600001)(6666004)(83380400001)(336012)(54906003)(110136005);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2023 13:57:17.1467 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4316381b-3a04-4274-beaa-08db7196423e X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.161];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT043.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB6080 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org In a future patch, mlxsw will start adding RIFs to uppers of front panel port netdevices, if they have an IP address. At the time that the front panel port is enslaved to the bridge, the bridge MAC address does not have the same prefix as other interfaces in the system. On Nvidia Spectrum-1 machines all the RIFs have to have the same 38-bit MAC address prefix. Since the bridge does not obey this limitation, the RIF cannot be created, and the enslavement attempt is vetoed on the grounds of the configuration not being offloadable. The selftest itself however checks how many mirroring sessions a machine is capable of offloading. The IP address or the RIF are irrelevant. Fix by disabling automatic IPv6 address generation for the HW-offloaded bridge in this selftest, thus exempting it from mlxsw router attention. Signed-off-by: Petr Machata Reviewed-by: Danielle Ratson --- tools/testing/selftests/drivers/net/mlxsw/mirror_gre_scale.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/drivers/net/mlxsw/mirror_gre_scale.sh b/tools/testing/selftests/drivers/net/mlxsw/mirror_gre_scale.sh index e00435753008..e5589e2fca85 100644 --- a/tools/testing/selftests/drivers/net/mlxsw/mirror_gre_scale.sh +++ b/tools/testing/selftests/drivers/net/mlxsw/mirror_gre_scale.sh @@ -165,6 +165,7 @@ mirror_gre_setup_prepare() simple_if_init $h3 ip link add name br1 type bridge vlan_filtering 1 + ip link set dev br1 addrgenmode none ip link set dev br1 up ip link set dev $swp1 master br1 From patchwork Tue Jun 20 13:55:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Machata X-Patchwork-Id: 13285928 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 06DE0EB64D7 for ; Tue, 20 Jun 2023 13:57:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232296AbjFTN5Z (ORCPT ); Tue, 20 Jun 2023 09:57:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231272AbjFTN5Y (ORCPT ); Tue, 20 Jun 2023 09:57:24 -0400 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2048.outbound.protection.outlook.com [40.107.100.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46D851A1; Tue, 20 Jun 2023 06:57:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BHC2lQcCPPolW/D2q+FjtDlZ93K4zhRV2+A+Kdi8NGYW7/je3UwQ1X1U7PvKxWJoQRjb3s27U/FPoCeIKNMHOgF8EiQKP4qmLjjKhpOLxDs+rM8MaTHwAUByvJIrFJtKVGSPb5u0myTMVoKxWWefzKpSH1IstOzs2Yc9CaPqJp9/4wK7exnZA7V84CoqhhuGMj6KvjLTC0mXIPuDbPeRIf1uaZcnIwxw9t5fuC5wRqvAUEiXmvHyAhMTwFsNlPeQ32ChnF0a0bs+7X2ryAP29i5x4srYGHwUvFOskrq4MMZ7TAdBdECfHPCDKXW8bpqWhTmPSXt4/uORfMweFKHblA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=pUPKEybirnewesInpl4Sl4fRvxDcu+CIvibkXh7BBkw=; b=O755ReesmBYdSHQXWNgLlg8rw0nW4LNUTxPhHxU5h8U+y12xiogRD3qzt7kIbLTt/4dFdx6vsr9rTIzvNLvmxRxLvjNTCArCNYIyyuFtUtOQEcdBJchsKTNP09aszxeHMV9mpzeCF9QEfRyKWLzSmu6F0cllJirxK5acPCAGOcPM6mCfW754j+i4Bx6qfER46wAk/RGBPqmtTkdsncCrMjYU33+yggsZvAj7UL5C3dx0iHAcXKFzpygV6F8N/20TEb9HDywsNq+tzpiAVgy7bSfakJ1N/f2kPIw/uWHmF0FxD5ma5LfRjfwhGCGwJw4lvNYWrxCfdy7BmjSGSjfU7w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=davemloft.net smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pUPKEybirnewesInpl4Sl4fRvxDcu+CIvibkXh7BBkw=; b=YV+WwXKkStD3CKG52D+7HjR2Fn7aFmy5O8H62ILBsz1iRT+3WAQ+3sG7nzVb3pFTY5CvC9BoB+n5sK++/6pFLpXmXCDGFATuHOQ+8mcT3NauqeE6rQR2s9OS8CA8uhdGFZuv+xelZbHRAbK9g4Jd/Tm6PUAqukrN1hcPcLpq+k09CcgKYeh15fMAMvOsWJNPB5Afj9J4W7CSS39npjSkRfp8+Ww5NWrpLqOhARGHtQeRvR2p8QgJrYuFsDQrrzTBhW9fSH3GbQKsjFoE5kw1DwKI0ds112i6b1IIiI7JI+kWscYf3rlkwybaqOm7blyEiHoI9wyO0J4iHUNxZDR9xg== Received: from BN6PR17CA0054.namprd17.prod.outlook.com (2603:10b6:405:75::43) by PH7PR12MB6668.namprd12.prod.outlook.com (2603:10b6:510:1aa::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37; Tue, 20 Jun 2023 13:57:20 +0000 Received: from BN8NAM11FT014.eop-nam11.prod.protection.outlook.com (2603:10b6:405:75:cafe::d5) by BN6PR17CA0054.outlook.office365.com (2603:10b6:405:75::43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.21 via Frontend Transport; Tue, 20 Jun 2023 13:57:20 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BN8NAM11FT014.mail.protection.outlook.com (10.13.177.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37 via Frontend Transport; Tue, 20 Jun 2023 13:57:20 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Tue, 20 Jun 2023 06:57:09 -0700 Received: from yaviefel.vdiclient.nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Tue, 20 Jun 2023 06:57:05 -0700 From: Petr Machata To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , CC: Petr Machata , Ido Schimmel , Danielle Ratson , Amit Cohen , Shuah Khan , , Subject: [PATCH net-next 11/16] selftests: mlxsw: qos_dscp_bridge: Disable IPv6 autogen on a bridge Date: Tue, 20 Jun 2023 15:55:57 +0200 Message-ID: <0bb38b64a0e95bbd62f3cea0305491fe72d931c5.1687265905.git.petrm@nvidia.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT014:EE_|PH7PR12MB6668:EE_ X-MS-Office365-Filtering-Correlation-Id: f01dbb64-b399-4263-4f27-08db71964429 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ak6JGv7z1PIqUx/P2GsFoR+FJ7Aak0BbysTrjqICwMMntqOuDwejVxKRlY0fTNxkwzGPKUroVJfDF8KFC/LhDcYw2WwY5aRQWW+UW52GtoNAykYULJ3rsjFUc+ObQ8l2+G5XKKWbV7NRHWMEHBb1/QN/rafyh977MJU7IE0h/Zs5qZCa8xwS7dR+YCziImpuO/oF+ymFDsai6EhYJoLf4wsfe31ufvf1olJ1kACdpCF+rjyV+ihhnofWfaZmerC21bHpDl3qlkqHZzwxJhPdgwZeAiMj3VnR4CmdhmPNhCdNj4x3Vg2L7IkwrnZbUgT5cRp4tg8yls1sI4P42H1vRaBCk9yaT5WpH4VBk7G01jdCwBYrojVcYOrYJgfwISM5NwdyF+1X+0+flrnYICQ2ouXvxMmxVDnNNHNBRa/I8bb+iHxkGBJoZTPCXs2argalyr7YTQ0++sLAO9Hy4WYr7RSIOMu76h1RxBvB9UvqDCUFzmDilg9jtrbqu07W+1FZHwG11OR3KnmsmJWaTkyzGlG5yaanAOCriQWazWvILvwxVrq5fJ6rEB2NSTIZb97OgSxteVJHpzhwNqqfGUVJqRaehOXPtX93w6U4lgNu7SAiNfTUTuMEk+r9ztYL8AdpGIuWRbhlFo0ekr+qId2Fl0DIyChKP5PePz/d4kbigIVpL8kquGe3HPgK1WU3v0mQDPfGvpwF8k+NuVwJ/nVT/1fVxAARog6OXGRFCbsqNW0= X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230028)(4636009)(396003)(136003)(39860400002)(376002)(346002)(451199021)(46966006)(36840700001)(40470700004)(41300700001)(8936002)(8676002)(2906002)(40460700003)(5660300002)(82310400005)(36756003)(40480700001)(86362001)(107886003)(26005)(54906003)(16526019)(186003)(110136005)(478600001)(7696005)(6666004)(70586007)(66574015)(47076005)(36860700001)(356005)(7636003)(4326008)(70206006)(316002)(336012)(426003)(2616005)(82740400003)(83380400001);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2023 13:57:20.3617 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f01dbb64-b399-4263-4f27-08db71964429 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT014.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB6668 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org In a future patch, mlxsw will start adding RIFs to uppers of front panel port netdevices, if they have an IP address. At the time that the front panel port is enslaved to the bridge, the bridge MAC address does not have the same prefix as other interfaces in the system. On Nvidia Spectrum-1 machines all the RIFs have to have the same 38-bit MAC address prefix. Since the bridge does not obey this limitation, the RIF cannot be created, and the enslavement attempt is vetoed on the grounds of the configuration not being offloadable. The selftest itself however checks DCB DSCP-based prioritization, and the bridge serves for its L2 forwarding capabilities, and does not need to participate in routing traffic. The IP address or the RIF are irrelevant. Fix by disabling automatic IPv6 address generation for the HW-offloaded bridge in this selftest, thus exempting it from mlxsw router attention. Signed-off-by: Petr Machata Reviewed-by: Danielle Ratson --- tools/testing/selftests/drivers/net/mlxsw/qos_dscp_bridge.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/drivers/net/mlxsw/qos_dscp_bridge.sh b/tools/testing/selftests/drivers/net/mlxsw/qos_dscp_bridge.sh index 87c41f5727c9..914c63d6318a 100755 --- a/tools/testing/selftests/drivers/net/mlxsw/qos_dscp_bridge.sh +++ b/tools/testing/selftests/drivers/net/mlxsw/qos_dscp_bridge.sh @@ -65,6 +65,7 @@ h2_destroy() switch_create() { ip link add name br1 type bridge vlan_filtering 1 + ip link set dev br1 addrgenmode none ip link set dev br1 up ip link set dev $swp1 master br1 ip link set dev $swp1 up From patchwork Tue Jun 20 13:55:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Machata X-Patchwork-Id: 13285929 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 91C04EB64D8 for ; Tue, 20 Jun 2023 13:57:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231272AbjFTN5c (ORCPT ); Tue, 20 Jun 2023 09:57:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230148AbjFTN5b (ORCPT ); Tue, 20 Jun 2023 09:57:31 -0400 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2066.outbound.protection.outlook.com [40.107.102.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E119DA4; Tue, 20 Jun 2023 06:57:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NBFmrsfIECsJDfM113wB7yzewUkRcHBxPrS1iqsPal+bjPTssqhhXz8MBolD1GSPod8hTFGS7QAlpgmJ34t4kx7bP9cyNr3hJoobCj264VBV1yUiM+cQsUQeQjxOL388kmylKnWiUM6MjC6n6kjb/CWgGcB7ro96OqJ5WGKd22i2U/YufwgGDNTdm5F5wRm25Sybrivm/6tUTAU7xb/W5cioSKXuuDstkVubib82kme/A37L7K+hys2v0WuUyNpSOiiz9ku6hss4y/1a6Kr3y4kCNA7uLwnCaELFvRPsWQRxQD+GoSXVlEbJW/EcOhX4dyLNqT/UJnqWUSBs+s0q7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=PrLXOLIa21/7LSYoBEbpTQBTJbebgsyHlK5SWfURaiw=; b=A5wZrl/fqcmgXj4MfvdCxsAwKpOKgWEDUQ8nSJY8sYLTcNc6A/XsI1LqU9ljhooOBtHxM4Aqrcz8EVP9dWh0Ul3+/7CXNxEZvcnBmbCis5TzAymwTs9m5ZHvpHv06MUbq9akbioD3HrZ0H6IaclVqIs9DYh610HuPK+mBKc4I1n7GMFYRMrJtdk7+lG/i/Qj+2nG1xqL1GcFNEhDNILv3oe6G6139Q8OkBVOO2f9Kz9cgY1X2JYQU61kOHb4awLCnPcp/7QF+XyXQjPDPOy/1D7zKwENuOUnwtGBQqn2mOYVdwMDVXDa8ZNc1pIYlUjcvHGZ7EAP1R9EjozkTaqOMg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=davemloft.net smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PrLXOLIa21/7LSYoBEbpTQBTJbebgsyHlK5SWfURaiw=; b=pnF52Xwcvk7aCugw5u9WgCFtx+0OGS4z1THwAkd7HkZYVfr75KaU2KJ+ngr34du/17tFfEoM7UgBhK21IWsMALR8pyMEhYQJZmD/pCLM260emshcM7BhqAEbv52nx3ugJ4XqfDlW7KjjN5K01hmqbEcNxE/UwFmzMYt5DpTqvDMiQZRd1q1iVgoYRQS27CtukGlduGMeW2uBRK/sn3pP/6o+fhBHtK7tGh3RkF3Zw0uN9pIg2ETM6vBJ8YNMmmuX/0s2imgUOKLIt/eTPR1zAO7Gxxg/y11bGhJBaT6AOoEsZTtm+EgzImz2ojiF+XO7cZJ6ARuN8K6pPvmVXzR5VQ== Received: from BN6PR17CA0059.namprd17.prod.outlook.com (2603:10b6:405:75::48) by SA1PR12MB8142.namprd12.prod.outlook.com (2603:10b6:806:334::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37; Tue, 20 Jun 2023 13:57:26 +0000 Received: from BN8NAM11FT014.eop-nam11.prod.protection.outlook.com (2603:10b6:405:75:cafe::d7) by BN6PR17CA0059.outlook.office365.com (2603:10b6:405:75::48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37 via Frontend Transport; Tue, 20 Jun 2023 13:57:26 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BN8NAM11FT014.mail.protection.outlook.com (10.13.177.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37 via Frontend Transport; Tue, 20 Jun 2023 13:57:26 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Tue, 20 Jun 2023 06:57:14 -0700 Received: from yaviefel.vdiclient.nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Tue, 20 Jun 2023 06:57:09 -0700 From: Petr Machata To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , CC: Petr Machata , Ido Schimmel , Danielle Ratson , Amit Cohen , Shuah Khan , , Subject: [PATCH net-next 12/16] selftests: mlxsw: qos_ets_strict: Disable IPv6 autogen on bridges Date: Tue, 20 Jun 2023 15:55:58 +0200 Message-ID: <4d3ff23c988dbeb9c8eda27bcd71e776b35f2b16.1687265905.git.petrm@nvidia.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT014:EE_|SA1PR12MB8142:EE_ X-MS-Office365-Filtering-Correlation-Id: f479c0b5-4dd1-4e99-6922-08db719647d9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fscQVTOimRDDTkZMgCNMVKmKT37VsH87PBKIwNYPkqLlNWpVh9FyWz9q8b73zJ3TRq7/BWwZO1HrAFe9VrwNCGevYUdLJP7X6OJNBv7843oqdqG5nyLyx4+7kt+djOUkiaaGuMKgFZFlfjS6d9w7GsLvXWR4nvZcqDjkzhdgklQW55J0qi5VqS/BzWw6Yz08Q/ibr02Lmad4lJkgWqlrw7psCweulcsiLX9QFsrbVUFoALe41MIm/jH4tmmoJIbXIP81U+cmcm3H3x3QvibSpXCHMWRRhjAp46dJu/peDNTwPERRp2LnzWsxya3kWcEbk2aF/+1LArc50ftGzOA3j8HPBsy4xItoJAzSX3pxRhaGHhw7OtdosMP7HxN/+ampqJEwcuVV0k7zGAsWCkY5YQWFhZNJ3qs5rlXrOyDyx87R9JtGO02e0bx3NtNyeKmJg/DOr5C21h4kYHkx8AiiZrRAI03f7o8C6lD2z2qbaewG0r8le+DJitjP27uexnHw60W1ULzJ76hABA05TbXjSn+3cNY6ExifBvbzZSJriSAMXJdanIjmy9mNKo6UNAlt0nxB0bQSYVm/eYfDzeDY296ugQ6IH3JldaCzahVYiiKe3lS57lVLxzlzVUqORdi4yNVG77m0yZ4JVkDfNFyiUjl0yDaGco5vBM7uGFHcdnB8CXDyyRRY2SInRvOchDbLGIK3ugtmTB7XS5th+Hrn4E/BQEvtgjKyotUOKPXajIQ= X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230028)(4636009)(136003)(39860400002)(396003)(346002)(376002)(451199021)(36840700001)(40470700004)(46966006)(82310400005)(36860700001)(36756003)(70206006)(356005)(40460700003)(5660300002)(8936002)(8676002)(41300700001)(86362001)(7636003)(4326008)(40480700001)(316002)(70586007)(82740400003)(107886003)(426003)(47076005)(66574015)(186003)(16526019)(2906002)(7696005)(478600001)(2616005)(26005)(83380400001)(336012)(54906003)(110136005)(6666004);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2023 13:57:26.5489 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f479c0b5-4dd1-4e99-6922-08db719647d9 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT014.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB8142 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org In a future patch, mlxsw will start adding RIFs to uppers of front panel port netdevices, if they have an IP address. At the time that the front panel port is enslaved to the bridge (this holds for both bridges used here), the bridge MAC address does not have the same prefix as other interfaces in the system. On Nvidia Spectrum-1 machines all the RIFs have to have the same 38-bit MAC address prefix. Since the bridge does not obey this limitation, the RIF cannot be created, and the enslavement attempt is vetoed on the grounds of the configuration not being offloadable. The selftest itself however checks traffic prioritization and scheduling, and the bridges serve for their L2 forwarding capabilities, and do not need to participate in routing traffic. The IP addresses or the RIFs are irrelevant. Fix by disabling automatic IPv6 address generation for the HW-offloaded bridges in this selftest, thus exempting them from mlxsw router attention. Signed-off-by: Petr Machata Reviewed-by: Danielle Ratson --- .../testing/selftests/drivers/net/mlxsw/qos_ets_strict.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/drivers/net/mlxsw/qos_ets_strict.sh b/tools/testing/selftests/drivers/net/mlxsw/qos_ets_strict.sh index 690d8daa71b4..fee74f215cec 100755 --- a/tools/testing/selftests/drivers/net/mlxsw/qos_ets_strict.sh +++ b/tools/testing/selftests/drivers/net/mlxsw/qos_ets_strict.sh @@ -138,11 +138,15 @@ switch_create() vlan_create $swp3 111 vlan_create $swp3 222 - ip link add name br111 up type bridge vlan_filtering 0 + ip link add name br111 type bridge vlan_filtering 0 + ip link set dev br111 addrgenmode none + ip link set dev br111 up ip link set dev $swp1.111 master br111 ip link set dev $swp3.111 master br111 - ip link add name br222 up type bridge vlan_filtering 0 + ip link add name br222 type bridge vlan_filtering 0 + ip link set dev br222 addrgenmode none + ip link set dev br222 up ip link set dev $swp2.222 master br222 ip link set dev $swp3.222 master br222 From patchwork Tue Jun 20 13:55:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Machata X-Patchwork-Id: 13285930 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D5820EB64D8 for ; Tue, 20 Jun 2023 13:57:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230148AbjFTN5j (ORCPT ); Tue, 20 Jun 2023 09:57:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230346AbjFTN5i (ORCPT ); Tue, 20 Jun 2023 09:57:38 -0400 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2045.outbound.protection.outlook.com [40.107.92.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3B5D1A1; Tue, 20 Jun 2023 06:57:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hU1cX4/sT4mjZj1E4pHYhtuX8rcVO2lnVG09R0v6D18jZg8EHr/5dRDDd7Wd3FLMxgROMhePpua5dhdlTtTKePeHwGZiB2u8Vopnr9REGebPF/iqvoCin1+8fGiLbY/9GybLCalxgjCeCGGyVrlSt114SqCwkOK+oBNsL0iqzUnNu5fegb+oZZpFAOgWHowqHq0vPXwdpCEvoeYhxxd3dcrn3GMaPADTe4gKGpKFeYfuM9Ec7mvl6PA7s5t2yeKWzkXgty1NqVcVSLqfr0/M/VNWoKxKlg2A73rXJMeJLHaokoqPuiR3c263K7T4GMfyTJWYZXLawzaYANE3H0tHkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=c92p6tBb/yNkE6UKCCllA52Ca4V6GpP1NGcN8uAPo+s=; b=M/deJ3JFpQrbrzU4XvimaJCW9K3TObVeT6ed/+PqK99NbCEFFO9pkr5Aku4RuT1PHwZ0Mgk835xZ7I9wxkCP2O9V90pj1fqY1lomTcr9zH6YBaYcLj+vEnvcryEH20BDxrOH6LVfFSCcXV/9LrwwRdOfIoBs1twaRKuT94FBbgbJC+8rbHQ5dvEgfnLdtYDG/geWTqbFS9vr74Ex9ki028BY1EgBkOP/JSYl0mFSJ1kS90ddZTkjarVyzn8Nn9Io82jzqcNKbzubGyJ6ozHxkrJpVFQY602BNy9IoqEIwTPrRP1Pw86mON0ylN+UQjyPPFvdZhj6xteyKz+rbu0wwA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=davemloft.net smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=c92p6tBb/yNkE6UKCCllA52Ca4V6GpP1NGcN8uAPo+s=; b=hQHovYWtfcyr64MfApbWlQpTgknpeC0ZvI4HsVNFL2t5nryULPZeiifByiPLDN350APpmZ4WNZvwzCdVCANU1JMupsGTeTqST7x8ChWWObLzNT4mw8Y5icp4G9lWw5QD3CBICIUkSUJTCvG2HUHOkHQ5UAw1QBNddjrloks6BXHAPR2Fe+Lvn3WaKWIJVOngA8zlFj9aXSUzzqP4sAYUP9kwO0UXepgcwGGe50tMI5cd70rIYB7CrC1BR3JvW5Sns7kEcIu8A8drL0ud2b2eTSEmjr6zYcDoa2EU81rcGPlLPP/D8vjxYmKoNul0/U1jLT1PLDG9IFdTag4gD32BFg== Received: from BN0PR08CA0016.namprd08.prod.outlook.com (2603:10b6:408:142::35) by DS0PR12MB8444.namprd12.prod.outlook.com (2603:10b6:8:128::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6477.37; Tue, 20 Jun 2023 13:57:34 +0000 Received: from BN8NAM11FT043.eop-nam11.prod.protection.outlook.com (2603:10b6:408:142:cafe::66) by BN0PR08CA0016.outlook.office365.com (2603:10b6:408:142::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.21 via Frontend Transport; Tue, 20 Jun 2023 13:57:34 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BN8NAM11FT043.mail.protection.outlook.com (10.13.177.218) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37 via Frontend Transport; Tue, 20 Jun 2023 13:57:34 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Tue, 20 Jun 2023 06:57:18 -0700 Received: from yaviefel.vdiclient.nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Tue, 20 Jun 2023 06:57:14 -0700 From: Petr Machata To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , CC: Petr Machata , Ido Schimmel , Danielle Ratson , Amit Cohen , Shuah Khan , , Subject: [PATCH net-next 13/16] selftests: mlxsw: qos_mc_aware: Disable IPv6 autogen on bridges Date: Tue, 20 Jun 2023 15:55:59 +0200 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT043:EE_|DS0PR12MB8444:EE_ X-MS-Office365-Filtering-Correlation-Id: b845cf94-76d8-4e66-672d-08db71964c59 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /cZw1Zou+lI54KNHxirk5pN5pUZJrF1P1dYVQXvj2o6ybgfhVTxvdk824c+MmvM0ovvzYoDtF64CJtcaN2Eo33vjowxyiLosPg9PkWeoE0TCXYIBozSJk5unXibLyifHu/R8pfel3Hema4dpphAg1arsgfO2WVIaR0pUTCG0NGDMuMXfnVBW0VzYsA1zRdSFwsbF/I8Z/cmvty8Noumc88qwMi40xbmQq5+H5vp/3NxPfA8wuAlvQ/47ZURoqZeH6Gl6UxsxjmulU0qsrZYbIaOWcBbiNOLVgPc0M6esWGZCWk9PuFhmcyXtGNLnOVPnx4+cWK4BTkgJYiAJFmQqR5sQzY8lTT/9aEEH6aJSQ9CaSjHU2xW0DRWNac94dBPvEs2D+vZdHh4R5QqK3pMo48lM2PwnF2xKer5RjMT2D9+3GWa/pti5nISxgz2kJVcnEDRafguGNw+3LQt90KP0WYe3xvMgskTTfuHJ9mb984E/nMU2vUM0gtG51Yd3v4H/1nb1lJa+HOKMoj4Kj/PV++Irb6h8BeLCNyKnOAQxH4Vl4aN+VXRE0lmDJEdsGBuGRMQZlZLvkGP7sc/O3bno6otSVU9kl6OUYsnbx+B7iE/GBSL0Oze9VZnd6S6/tM4/9VSc7zqG/b6D+iDC5PPL4rbaAAsSv7YmVxSCTuAOm7NvIj2KSWbKOfiNtrqldphvO9DeknnRcg1k9mrXUOCtQM/Wg7i/LvRWL7K69I1UvJA= X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230028)(4636009)(346002)(136003)(396003)(39860400002)(376002)(451199021)(40470700004)(46966006)(36840700001)(36860700001)(7636003)(82310400005)(86362001)(8676002)(356005)(8936002)(5660300002)(82740400003)(316002)(336012)(41300700001)(83380400001)(70586007)(70206006)(426003)(110136005)(4326008)(66574015)(47076005)(54906003)(2616005)(478600001)(186003)(36756003)(26005)(16526019)(107886003)(40460700003)(2906002)(7696005)(40480700001)(6666004);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2023 13:57:34.0986 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b845cf94-76d8-4e66-672d-08db71964c59 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT043.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB8444 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org In a future patch, mlxsw will start adding RIFs to uppers of front panel port netdevices, if they have an IP address. At the time that the front panel port is enslaved to the bridge (this holds for both bridges used here), the bridge MAC address does not have the same prefix as other interfaces in the system. On Nvidia Spectrum-1 machines all the RIFs have to have the same 38-bit MAC address prefix. Since the bridge does not obey this limitation, the RIF cannot be created, and the enslavement attempt is vetoed on the grounds of the configuration not being offloadable. The selftest itself however checks traffic prioritization and scheduling, and the bridges serve for their L2 forwarding capabilities, and do not need to participate in routing traffic. The IP addresses or the RIFs are irrelevant. Fix by disabling automatic IPv6 address generation for the HW-offloaded bridges in this selftest, thus exempting them from mlxsw router attention. Signed-off-by: Petr Machata Reviewed-by: Danielle Ratson --- tools/testing/selftests/drivers/net/mlxsw/qos_mc_aware.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/drivers/net/mlxsw/qos_mc_aware.sh b/tools/testing/selftests/drivers/net/mlxsw/qos_mc_aware.sh index c8e55fa91660..6d892de43fa8 100755 --- a/tools/testing/selftests/drivers/net/mlxsw/qos_mc_aware.sh +++ b/tools/testing/selftests/drivers/net/mlxsw/qos_mc_aware.sh @@ -135,11 +135,13 @@ switch_create() prio bands 8 priomap 7 7 7 7 7 7 7 7 ip link add name br1 type bridge vlan_filtering 0 + ip link set dev br1 addrgenmode none ip link set dev br1 up ip link set dev $swp1 master br1 ip link set dev $swp3 master br1 ip link add name br111 type bridge vlan_filtering 0 + ip link set dev br111 addrgenmode none ip link set dev br111 up ip link set dev $swp2.111 master br111 ip link set dev $swp3.111 master br111 From patchwork Tue Jun 20 13:56:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Machata X-Patchwork-Id: 13285931 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E66D9EB64DB for ; Tue, 20 Jun 2023 13:57:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231314AbjFTN5l (ORCPT ); Tue, 20 Jun 2023 09:57:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230346AbjFTN5k (ORCPT ); Tue, 20 Jun 2023 09:57:40 -0400 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2043.outbound.protection.outlook.com [40.107.223.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EF311B0; Tue, 20 Jun 2023 06:57:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ANU/xQK7n5LQeril7RSFkXwMuaVIhyMYChPtrr9BkD9mhjyGtGJ73R6Notf5RRC5pyG4+xVvzty3QLRd4ZEY+8goOWV0Ju6Z1V9Ex2TyNWOJzGrJ7x9Wy/2d6jDcLcdo8az3AhmG7mtKHOoCZyA6QSKfmimNkfIqI1PfqXfCYv0/W7ibbMx0f5qgOV249XS80rzpUij03Uss03I3CaoRjqr9Jtw76wzMVjDGgZJdZmYm2m25guNX/wRqutSEBiUW5J/C1p6GNXVBHeUjJwU8NULSUhwwfHaw/9bFNy1ws8zsVGeE0tnjOwNfEuyyLH4E84TlSeddQ9ybDuQwgqk2hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=BunjBm0ZMEXE8evgBFdZVV8cTV1Mzmmze6LgCbfZ8yg=; b=GQZLHr3ut3meLlUf0Ew9o2qRSJN7sRA+eU0/YzWnUg2iglWquDacpHJQCGkYTeL0LKD8z+eroQ7IxYF9ZwitkUBXtzbaLufQ/kBbGMAUad5LueNjKTqUsLxLELo904PaM7b/KUsxRIgIWomaMvbXMDTAlNpnVNe1jKgRyTkzlOuSE1BATK6LkhuzuAnbkwTeUqO7YWPeMovmjkCoBBokev7+d5cMY1EZ1unbVMO/Y/ligUT0Up4UoEf/x7+d1cWlb7iDOjZjuR/j5x7a7poU8FWsASBLZ3tBkICZBF66DrBQVgyQ04pWcnKeKxOENGceALJHUHJmT846Hk8YQnGz5g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=davemloft.net smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BunjBm0ZMEXE8evgBFdZVV8cTV1Mzmmze6LgCbfZ8yg=; b=lZ6uDJ1QfJ4K1xnyQchhQvEbr9hHUzlMvFecYzYd/JVyjeYFPEYCgGfptzlFaUbyxdSlSxwVZZ1O5kVnqg6c1jznx8wGjeMEDV28qJvmB2J8LPtMn3r5qW8WJ6CFrDasqONsH9waHfTzFNjCA5dLdDj06UneWnXez1ILPqg2cpqwJ5xX1Pqtk90zYtGWj0nNvJoIULOJwowNl+Cl5+xg/9T94aO3I9rb1L78CR/ZqajtL9xbJ94YY335X1j+vfR626JSqY9dYyj7qXnXwSxcBtC7Yle/q/hToZmyor+dCMRHvUe2TMD2WmxYsMqq5+KpxCTr7nTtYAx5ldHPBKvSjw== Received: from BN8PR15CA0025.namprd15.prod.outlook.com (2603:10b6:408:c0::38) by CH2PR12MB5002.namprd12.prod.outlook.com (2603:10b6:610:6d::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37; Tue, 20 Jun 2023 13:57:36 +0000 Received: from BN8NAM11FT086.eop-nam11.prod.protection.outlook.com (2603:10b6:408:c0:cafe::1) by BN8PR15CA0025.outlook.office365.com (2603:10b6:408:c0::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37 via Frontend Transport; Tue, 20 Jun 2023 13:57:36 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by BN8NAM11FT086.mail.protection.outlook.com (10.13.176.220) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37 via Frontend Transport; Tue, 20 Jun 2023 13:57:35 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Tue, 20 Jun 2023 06:57:21 -0700 Received: from yaviefel.vdiclient.nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Tue, 20 Jun 2023 06:57:18 -0700 From: Petr Machata To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , CC: Petr Machata , Ido Schimmel , Danielle Ratson , Amit Cohen , Shuah Khan , , Subject: [PATCH net-next 14/16] selftests: mlxsw: spectrum: q_in_vni_veto: Disable IPv6 autogen on a bridge Date: Tue, 20 Jun 2023 15:56:00 +0200 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT086:EE_|CH2PR12MB5002:EE_ X-MS-Office365-Filtering-Correlation-Id: 995b2bb9-84a2-4659-2353-08db71964d5b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0PPbY8lwoV9LMEAYtFbnz6b9Ceczwu7LLPDJZaZx3aBVRGyazCZ5EJth8iayPm6IaLO3X7dMgrurS1N+czLBaFDCcLLqt2GnZy/QmBNBIvpt+xaqEbdVTUZk8QCBFjw35klLYx2Z0BfG12+DYaKfWIrWyvtdYj1JG6rPfCKtFxyx/qgH3mr7HUXPY57lGqVRefL/duhSLQo1j9ntCRcxtKV/RjtosgPW7H/ZQmz9ncvuFCZtGqf0KIA5wQqmD05rMQzFJ/H79YWTjSqMj0u9UlTU/ck31hUJi+dCkikkHi6+2UTzOWzSi5XxZnwOuOUS+lVkZqy9+AIrn14+r6nlrLJMJp+GRiRJNUycjZT563UjiPwF3L8HztN4cKPfFFUmEumgK9X/GqaV6HWeca8YSgs2XZu9GWoTz3KMcPCgp/7wQsvs2MKTkKtmGllT6mryl2jM6cphwNTVWDvY5h26N77RMQaHqo218NIrQ8OMa4p3AbcXFu5xb/TbChvhdIQ64qqLJ1i646CBbLjbNuebpbxQnRqmHJGM3oCT9A3T7/yT+G9PN0lVoVYS4gYYTBoUUSjyZRFkncNpapBDVJ1zr2k9Uu7GuIgJJSu1/d0QBDCFC3CfBVFbrvY+yqbniCirkLXi3VyLvc0FrpIwBal9UUYT5o8omz3nP05SE8SOk2KVBFjA46c4162A71SoA7hevgIWJpoUN3Bbinogmat3HR/rLNChJbZAdOAuJKyKoR4= X-Forefront-Antispam-Report: CIP:216.228.117.161;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge2.nvidia.com;CAT:NONE;SFS:(13230028)(4636009)(396003)(39860400002)(376002)(346002)(136003)(451199021)(36840700001)(46966006)(40470700004)(5660300002)(316002)(2906002)(4326008)(8936002)(8676002)(54906003)(41300700001)(110136005)(70586007)(70206006)(478600001)(7696005)(40460700003)(6666004)(356005)(7636003)(40480700001)(107886003)(16526019)(186003)(47076005)(2616005)(26005)(336012)(426003)(83380400001)(36860700001)(66574015)(82740400003)(36756003)(86362001)(82310400005);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2023 13:57:35.7877 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 995b2bb9-84a2-4659-2353-08db71964d5b X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.161];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT086.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB5002 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org In a future patch, mlxsw will start adding RIFs to uppers of front panel port netdevices, if they have an IP address. At the time that the front panel port is enslaved to the bridge, the bridge MAC address does not have the same prefix as other interfaces in the system. On Nvidia Spectrum-1 machines all the RIFs have to have the same 38-bit MAC address prefix. Since the bridge does not obey this limitation, the RIF cannot be created, and the enslavement attempt is vetoed on the grounds of the configuration not being offloadable. The selftest itself however checks vetoing of a different aspect of the configuration and the bridge does not need to participate in routing traffic. The IP address or the RIF are irrelevant. Fix by disabling automatic IPv6 address generation for the HW-offloaded bridge in this selftest, thus exempting it from mlxsw router attention. Signed-off-by: Petr Machata Reviewed-by: Danielle Ratson --- .../selftests/drivers/net/mlxsw/spectrum/q_in_vni_veto.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/drivers/net/mlxsw/spectrum/q_in_vni_veto.sh b/tools/testing/selftests/drivers/net/mlxsw/spectrum/q_in_vni_veto.sh index f0443b1b05b9..60753d46a2d4 100755 --- a/tools/testing/selftests/drivers/net/mlxsw/spectrum/q_in_vni_veto.sh +++ b/tools/testing/selftests/drivers/net/mlxsw/spectrum/q_in_vni_veto.sh @@ -34,6 +34,7 @@ create_vxlan_on_top_of_8021ad_bridge() ip link add dev br0 type bridge vlan_filtering 1 vlan_protocol 802.1ad \ vlan_default_pvid 0 mcast_snooping 0 + ip link set dev br0 addrgenmode none ip link set dev br0 up ip link add name vx100 type vxlan id 1000 local 192.0.2.17 dstport \ From patchwork Tue Jun 20 13:56:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Machata X-Patchwork-Id: 13285933 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F0E5EEB64DB for ; Tue, 20 Jun 2023 13:57:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230346AbjFTN5s (ORCPT ); Tue, 20 Jun 2023 09:57:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232381AbjFTN5r (ORCPT ); Tue, 20 Jun 2023 09:57:47 -0400 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2084.outbound.protection.outlook.com [40.107.237.84]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CB0DD3; Tue, 20 Jun 2023 06:57:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PIAzKJG/1W6WfUXFpQ6u1CBbAlbX197zfNd8LQ2I4VeZEgAMLvuyupE2MqBe9T+QjVcp+zC9iPHD3IU4KaCoZ7r6UA/odedKovke5pNhtakWQqYbNMBgj1qpT73DMAxd6AtiY1eEpKzIFueHVzIBufwXQdcTdHR4Sr/77IzGmmVlgBEbzZoH9k+RxvucsRfVz5gpR+yddU8apw8DR1hxZ8YnXOSE7suSk+9wOSAbqTL25AFmHJ9vqO54eY/D1xmaBAnyBRLrCMalwKt4OAU+dTqexWq3zEKDSp/q4GePRY475eVRCEhTKmJxXY+Cbypv/rAgV8HWmVm46AkQtGBUzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=Ek9e5xpA2I8s9r2TQOCr/DLkOs0t5tBCc+WtP5jYTnU=; b=b/zCe8KivxzELNpRhQmb7vjgDAyXRDYDYD/843E82qxU8cuZp699CIzsKn5I07U2lzi7VKKRvj3E6gik6tcCbYddkgEGH8uQOPGlGw9q4GclBSOLGLezFSc8l6c5Ln8bivndMwgKzdM7xuJgZR/sjDB5at323Hp+33VsYM6O2v3OXjSX4l5yFIqgvgAA2mqUgMox9lMxuNmVvzwV60H7C6v5ycFqCtmM6f6VYnfnjGcradS0mPlagd3hrgxOiENNwgX1zImPVW4WlXKhnlVJySpaIm27sdCdCHEmjpeE2FQxXHPVuGYUBYkUvadcmYvFfBgs2/Vg4+1YF1ikeIn+BA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=davemloft.net smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ek9e5xpA2I8s9r2TQOCr/DLkOs0t5tBCc+WtP5jYTnU=; b=acVNwG6h5WauXVimQzWF37NZGLkyCt2uMnLGHYrxfWTcmKgSVYCLVm+MtB4oorp2hFAa+60LKCm8+QNq/AE0W4rrEkjSkhxal9ntJq+JO4xXoctTveJf5uaRvmPTD2uXgFBdebTcp8h3D3Y4LL2HYt8hAWlCDIr3y/APmm2cLWSr+8JYC5tZekXfWg+uTnpE3Tq69Qr9FcRtH9h/cZqeuF9oS0yegb6PSIFrvIM/U/N21zLQmKwJZqLZT9PSNDySn+Q5z79w/6SUVF8QrYN9ogrv+I/kXiia4T2hIFdMHBBGarAPlapATArmtHErAAswYLhUYC8U7hzuy3hfv+T2hA== Received: from BN0PR03CA0040.namprd03.prod.outlook.com (2603:10b6:408:e7::15) by SJ0PR12MB7459.namprd12.prod.outlook.com (2603:10b6:a03:48d::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37; Tue, 20 Jun 2023 13:57:42 +0000 Received: from BN8NAM11FT045.eop-nam11.prod.protection.outlook.com (2603:10b6:408:e7:cafe::93) by BN0PR03CA0040.outlook.office365.com (2603:10b6:408:e7::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.21 via Frontend Transport; Tue, 20 Jun 2023 13:57:41 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BN8NAM11FT045.mail.protection.outlook.com (10.13.177.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.38 via Frontend Transport; Tue, 20 Jun 2023 13:57:40 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Tue, 20 Jun 2023 06:57:25 -0700 Received: from yaviefel.vdiclient.nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Tue, 20 Jun 2023 06:57:21 -0700 From: Petr Machata To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , CC: Petr Machata , Ido Schimmel , Danielle Ratson , Amit Cohen , Shuah Khan , , Subject: [PATCH net-next 15/16] selftests: mlxsw: vxlan: Disable IPv6 autogen on bridges Date: Tue, 20 Jun 2023 15:56:01 +0200 Message-ID: <640c9cb55a0f2eaa0054e4a86e2615c64d9909c8.1687265905.git.petrm@nvidia.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT045:EE_|SJ0PR12MB7459:EE_ X-MS-Office365-Filtering-Correlation-Id: 76c09f5f-87f7-410b-a163-08db71965050 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dPp9HlZmPaWB/svvLldk/UuOVBNW+qRmaNOZcRDxA3vPtey2Hy2o3Dtn21jryKdippG+hartr7FFGoKgqKn4EqCXLLP9sYmAU1gHlVelkKoO5CZ10hWQGiQgANed543CW3wNSsm5lPvyK7VdWsJ1d7AP79YFgmk0ivtvavpozwLVultR5IL63Fyy1uO266n9vEaULIl3BNYS+FsgmO43IV0C54j+pfzpsbMbo4vCu0U/PNoJrN4XTUjryhT+dwY+Q8FSWHGdJPEtznrvO48wxjY7BEQEajfp5mrG30YeDObtJXzUUZWIVqyGs1Ro3XhnXGGcSy3clAe0NlEYZaeNeQMVoq6YOHDtZtgzU+nXjvq6ImFlS3ih0bCG4Ri7ZGYH9S+qI0ogfEHm0gi8UDfzj4aKuM2pDV+q5Qjjm1/+l6bdoK9VABB3R4IXF8u9T5xliFcRWrlijcMKvUB0mzwoK+2dqSaBAEI+TSI0HunvjJ3/c1NxE1VWvsQp2O9m0OxWY3FiXkRdKihWXflXuDm+TbLGfnjiKasXie9lzFJWJ2auwJO8hIJU4CJrhx4foDTaGqhZr2qDAvjilt3fT2l4VWJKMJf+Q+uy08jDlyVMORC5EjQH8H3l7aNsZr57K+WR0FlHrON5vRwUB4XQ5mRg9h6ZTqFTb9Tv+wxMcDLsZD/v0zOXJ0b93WX6rq70BbQj/k7KBAk4xFtejZBHWAmebWBYcnpMKvFpjy/1D4dIj2VjeT050k5ZSjmrC8/WlAi1 X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230028)(4636009)(136003)(346002)(376002)(39860400002)(396003)(451199021)(36840700001)(46966006)(40470700004)(54906003)(110136005)(16526019)(186003)(26005)(6666004)(7696005)(41300700001)(478600001)(70206006)(70586007)(40460700003)(4326008)(316002)(40480700001)(36756003)(36860700001)(8936002)(5660300002)(107886003)(8676002)(66574015)(47076005)(2616005)(426003)(336012)(86362001)(2906002)(83380400001)(82310400005)(82740400003)(7636003)(356005);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2023 13:57:40.7676 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 76c09f5f-87f7-410b-a163-08db71965050 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT045.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB7459 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org In a future patch, mlxsw will start adding RIFs to uppers of front panel port netdevices, if they have an IP address. At the time that the front panel port is enslaved to the bridge (this holds for all bridges used here), the bridge MAC address does not have the same prefix as other interfaces in the system. On Nvidia Spectrum-1 machines all the RIFs have to have the same 38-bit MAC address prefix. Since the bridge does not obey this limitation, the RIF cannot be created, and the enslavement attempt is vetoed on the grounds of the configuration not being offloadable. The selftest itself however checks various aspects of VXLAN offloading and the bridges do not need to participate in routing traffic. The IP addresses or the RIFs are irrelevant. Fix by disabling automatic IPv6 address generation for the HW-offloaded bridges in this selftest, thus exempting them from mlxsw router attention. Signed-off-by: Petr Machata Reviewed-by: Danielle Ratson --- .../selftests/drivers/net/mlxsw/vxlan.sh | 41 ++++++++++++++----- 1 file changed, 31 insertions(+), 10 deletions(-) diff --git a/tools/testing/selftests/drivers/net/mlxsw/vxlan.sh b/tools/testing/selftests/drivers/net/mlxsw/vxlan.sh index 99a332b712f0..4687b0a7dffb 100755 --- a/tools/testing/selftests/drivers/net/mlxsw/vxlan.sh +++ b/tools/testing/selftests/drivers/net/mlxsw/vxlan.sh @@ -444,8 +444,12 @@ offload_indication_setup_create() { # Create a simple setup with two bridges, each with a VxLAN device # and one local port - ip link add name br0 up type bridge mcast_snooping 0 - ip link add name br1 up type bridge mcast_snooping 0 + ip link add name br0 type bridge mcast_snooping 0 + ip link set dev br0 addrgenmode none + ip link set dev br0 up + ip link add name br1 type bridge mcast_snooping 0 + ip link set dev br1 addrgenmode none + ip link set dev br1 up ip link set dev $swp1 master br0 ip link set dev $swp2 master br1 @@ -646,8 +650,12 @@ offload_indication_decap_route_test() RET=0 - ip link add name br0 up type bridge mcast_snooping 0 - ip link add name br1 up type bridge mcast_snooping 0 + ip link add name br0 type bridge mcast_snooping 0 + ip link set dev br0 addrgenmode none + ip link set dev br0 up + ip link add name br1 type bridge mcast_snooping 0 + ip link set dev br1 addrgenmode none + ip link set dev br1 up ip link set dev $swp1 master br0 ip link set dev $swp2 master br1 ip link set dev vxlan0 master br0 @@ -780,7 +788,9 @@ __offload_indication_join_vxlan_first() offload_indication_join_vxlan_first() { - ip link add dev br0 up type bridge mcast_snooping 0 + ip link add dev br0 type bridge mcast_snooping 0 + ip link set dev br0 addrgenmode none + ip link set dev br0 up ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \ ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789 @@ -815,7 +825,9 @@ __offload_indication_join_vxlan_last() offload_indication_join_vxlan_last() { - ip link add dev br0 up type bridge mcast_snooping 0 + ip link add dev br0 type bridge mcast_snooping 0 + ip link set dev br0 addrgenmode none + ip link set dev br0 up ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \ ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789 @@ -842,6 +854,7 @@ sanitization_vlan_aware_test() RET=0 ip link add dev br0 type bridge mcast_snooping 0 vlan_filtering 1 + ip link set dev br0 addrgenmode none ip link add name vxlan10 up master br0 type vxlan id 10 nolearning \ $UDPCSUM_FLAFS ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789 @@ -915,8 +928,10 @@ offload_indication_vlan_aware_setup_create() { # Create a simple setup with two VxLAN devices and a single VLAN-aware # bridge - ip link add name br0 up type bridge mcast_snooping 0 vlan_filtering 1 \ + ip link add name br0 type bridge mcast_snooping 0 vlan_filtering 1 \ vlan_default_pvid 0 + ip link set dev br0 addrgenmode none + ip link set dev br0 up ip link set dev $swp1 master br0 @@ -1060,8 +1075,10 @@ offload_indication_vlan_aware_decap_route_test() offload_indication_vlan_aware_join_vxlan_first() { - ip link add dev br0 up type bridge mcast_snooping 0 \ + ip link add dev br0 type bridge mcast_snooping 0 \ vlan_filtering 1 vlan_default_pvid 1 + ip link set dev br0 addrgenmode none + ip link set dev br0 up ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \ ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789 @@ -1073,8 +1090,10 @@ offload_indication_vlan_aware_join_vxlan_first() offload_indication_vlan_aware_join_vxlan_last() { - ip link add dev br0 up type bridge mcast_snooping 0 \ + ip link add dev br0 type bridge mcast_snooping 0 \ vlan_filtering 1 vlan_default_pvid 1 + ip link set dev br0 addrgenmode none + ip link set dev br0 up ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \ ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789 @@ -1091,8 +1110,10 @@ offload_indication_vlan_aware_l3vni_test() RET=0 sysctl_set net.ipv6.conf.default.disable_ipv6 1 - ip link add dev br0 up type bridge mcast_snooping 0 \ + ip link add dev br0 type bridge mcast_snooping 0 \ vlan_filtering 1 vlan_default_pvid 0 + ip link set dev br0 addrgenmode none + ip link set dev br0 up ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \ ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789 From patchwork Tue Jun 20 13:56:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Machata X-Patchwork-Id: 13285932 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D2B9EB64D7 for ; Tue, 20 Jun 2023 13:57:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232345AbjFTN5r (ORCPT ); Tue, 20 Jun 2023 09:57:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230346AbjFTN5p (ORCPT ); Tue, 20 Jun 2023 09:57:45 -0400 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2079.outbound.protection.outlook.com [40.107.243.79]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B26B6A4; Tue, 20 Jun 2023 06:57:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a1EXqWTMu16683wt9hJ/Po557LF+sm0GiSJUqFdTj9JUJ3pcMWFbR9rKsUwE81240llnPaa32hF1g+yxDkxCrZSgfP8i1UPIvls2iRH8m9RmcIv5VORm6+b3wXKceFodaZK4PnSTIm9Ur8/yDc2JGKL0GK6cPl8N6Y56Gs7fpIMliCo7A8XgQWF1pLrBGOC2dO3B1QNusmsyXIzdED3sNoKfCZBLpHyTGdxoaK/YwAbq/kKevoqhcwkDUguOPg2GbGg5YsuLcHfs8Nl23vICcxgmv2nKIRxkAdTn67mrAwFMgWDjamHuoteO+JAJ6FbeFuYd2P2Eb2ojWdRHF5UvSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=IoV+rrUiiDRQxqrN9fGt+4zr+9BT/rWi1cU8DKw1l4M=; b=A6CCeLAWq80iZJ8Q1G9VVIq4ut9A1wejZ9SmPFZzM7YFWFbP/q/xkqTUKJQ9uToQjIWDdt81++J7ZU1jk18rnpvaY3IFQrS0Ihc2X/5KleKat9t4CUOIG+4oSUEpaBsu8GlbBjJsZv5sAVs4hWPVKpLj1XU1F27WQb4NVRlGzoGw+y/JEPjd3thz8q8CgwdGdTAI63hclYH5Isxm9DKGejV4Ws5ZpaeGkRJKnyeYjplUme6CZGNpwBQFi+3Plg3fiFzeXfwZdGXNxWRx7DbJJBblRB+fPe8yQUkNQ7WXq0ZK3Z2foFShSDECU3Cyc2rEksalCUiZ19toZFbmTVj6xw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=davemloft.net smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IoV+rrUiiDRQxqrN9fGt+4zr+9BT/rWi1cU8DKw1l4M=; b=gw9Q+hLL7WQHzjEv9PAdAGaBtQ7Ivgt9ZsyPj3NDV+4vQGUN4mX0+Tq0KcPuEvwGeNRGFbGysgcHUXBQxaDk6D3k2k6ZwyRPxKY1jcL81Xro5m4fKUT89iQ6j6fGMB+jqHs9ORnNhgqug47tTbqeCjej+I54WAlhu2NuxFETFMrnuz/0rtjlwERACiwo1ybQG1lsdwi7HkcemYVf22QquD/A4+OWILxuWSOI0LX3EqWSaN5YmjypqrAlbVnuC2tu1pDlPl1owApswOt4p9H1SZMoOYLqWP1RuLs7/15yUDXpYSO1HcTbhlvE2F0kxuPcCQDG4s8gp+Jf+DR4pxgbwQ== Received: from BN8PR15CA0010.namprd15.prod.outlook.com (2603:10b6:408:c0::23) by DM6PR12MB4925.namprd12.prod.outlook.com (2603:10b6:5:1b7::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37; Tue, 20 Jun 2023 13:57:42 +0000 Received: from BN8NAM11FT086.eop-nam11.prod.protection.outlook.com (2603:10b6:408:c0:cafe::5b) by BN8PR15CA0010.outlook.office365.com (2603:10b6:408:c0::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37 via Frontend Transport; Tue, 20 Jun 2023 13:57:42 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by BN8NAM11FT086.mail.protection.outlook.com (10.13.176.220) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37 via Frontend Transport; Tue, 20 Jun 2023 13:57:41 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Tue, 20 Jun 2023 06:57:29 -0700 Received: from yaviefel.vdiclient.nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Tue, 20 Jun 2023 06:57:26 -0700 From: Petr Machata To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , CC: Petr Machata , Ido Schimmel , Danielle Ratson , Amit Cohen , Shuah Khan , , Subject: [PATCH net-next 16/16] selftests: mlxsw: one_armed_router: Use port MAC for bridge address Date: Tue, 20 Jun 2023 15:56:02 +0200 Message-ID: <8c17b7a1855a639e97e4dedd3534b2c32b3f69ae.1687265905.git.petrm@nvidia.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT086:EE_|DM6PR12MB4925:EE_ X-MS-Office365-Filtering-Correlation-Id: e4da7754-5d99-414c-da43-08db71965108 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AZcYSfwSiyIjYduAM00c8qtfB8rmPoQz+Hawx0K+u2cw015pwaTMWcJDzEZB6N6Ux1OPGIIIsyi8HcELEt4MSxG7XyoAxQkA4vJ0dc4MSTHOmC5s3e3GXq1Xb/vvwYSejN1gor2ABVO6panqh2RHNO0N2dzSWUnDom7knLSZYhHLKp5OQ4EChpRrfrYMGwgTEAe0G8BCVY5H3NtWcinf1ag3heVWK8zAS5KxYk1n8Gy4rUFn+nCy9sDd4KxQXDTRecV3+moFtk7zsJSiMCX/JCQCMG/LC0YcH42RtzUT3uD94w1nngUU+LetRdtz9yAhLnTcMFUutOf27Q+j46sv4wYGYjEUMcC1BAK8e4N3LasgeOpg4or4tJuR43bfFoeyAx8WNjqPCPrsTRig1IhagZFkx1ybL78aCLvxc6gZMBif93OkP7kOrculQYymc5rFXW9XzEdk4Rw1Bbhbc7X+71d2RioHFMuvNOUJZh6J8VEZxn0uKnqxuSJN4AN/uEmO+OuHe+jIbbaEhY/Aq8G00ulLM+jLgTTi+50yEV7rXoperUrsjdkK5GmMQ9OqRWBSCgJoLGu7K2qT9/R0MC4xLN6MOao7QT9omFqbQCF/nSKmNmu1DAVrBhF3ZLIrhFAbmRQ3ppmxQaDmmygakIscxqQP4GSUtfpTJ0YGpEgogBt72AZx41TP58r+w8fi5iOCop77/m4vmlt63wYG+7ucqnwLd2GtUur1D4wseANg8Fo= X-Forefront-Antispam-Report: CIP:216.228.117.161;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge2.nvidia.com;CAT:NONE;SFS:(13230028)(4636009)(136003)(346002)(39860400002)(376002)(396003)(451199021)(46966006)(40470700004)(36840700001)(186003)(16526019)(107886003)(40460700003)(26005)(82740400003)(36860700001)(47076005)(2616005)(40480700001)(7636003)(356005)(336012)(83380400001)(426003)(82310400005)(66574015)(478600001)(6666004)(41300700001)(4326008)(70206006)(70586007)(36756003)(8676002)(316002)(54906003)(110136005)(8936002)(7696005)(86362001)(2906002)(5660300002);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2023 13:57:41.9593 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e4da7754-5d99-414c-da43-08db71965108 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.161];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT086.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4925 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org In a future patch, mlxsw will start adding RIFs to uppers of front panel port netdevices, if they have an IP address. At the time that the front panel port is enslaved to the bridge, the bridge MAC address does not have the same prefix as other interfaces in the system. On Nvidia Spectrum-1 machines all the RIFs have to have the same 38-bit MAC address prefix. Since the bridge does not obey this limitation, the RIF cannot be created, and the enslavement attempt is vetoed on the grounds of the configuration not being offloadable. The bridge eventually inherits MAC address from its first member, after the enslavement is acked. A number of (mainly VXLAN) selftests already work around the problem by setting the MAC address to whatever it will eventually be anyway. Do the same for this selftest. Signed-off-by: Petr Machata Reviewed-by: Danielle Ratson --- tools/testing/selftests/drivers/net/mlxsw/one_armed_router.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/drivers/net/mlxsw/one_armed_router.sh b/tools/testing/selftests/drivers/net/mlxsw/one_armed_router.sh index f02d83e94576..fca0e1e642c6 100755 --- a/tools/testing/selftests/drivers/net/mlxsw/one_armed_router.sh +++ b/tools/testing/selftests/drivers/net/mlxsw/one_armed_router.sh @@ -83,7 +83,8 @@ h2_destroy() switch_create() { - ip link add name br0 type bridge mcast_snooping 0 + ip link add name br0 address $(mac_get $swp1) \ + type bridge mcast_snooping 0 ip link set dev br0 up ip link set dev $swp1 master br0