From patchwork Mon Mar 21 17:51:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ido Schimmel X-Patchwork-Id: 12787610 X-Patchwork-Delegate: kuba@kernel.org 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 41B36C433F5 for ; Mon, 21 Mar 2022 17:51:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351416AbiCURw5 (ORCPT ); Mon, 21 Mar 2022 13:52:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351624AbiCURwu (ORCPT ); Mon, 21 Mar 2022 13:52:50 -0400 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2045.outbound.protection.outlook.com [40.107.243.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 563C554BEF for ; Mon, 21 Mar 2022 10:51:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TsI6hFvx4DNmClr6HYg82QGN1mr4k/worlCf1J3+P69rYjA3tx4mLjjzNF0Im8eOq7uZNs1wNrvl0ppMOqFWzvW+x3+UAGGJDxh8luHZnsXjmoEklA2wUbmL6+lmXeGno1uBtbyPH6ybgDyKw+GKoCqVpYZaKUDQdGHKVxK0CTWatu8Z/i5VHF0C8nphMrw0kEcL9MdLOsu/H7EWvn74dDgRuxHOq9XxbyVos9bRPhIAcC+gN6uTOIsfYgveU+Xcc4i74jHmqpZ3KR3I57fxCr34DcSG1WTA2pUjaoHn0qA5+IeUKrjMpURZz+5UXBzsLWldLCodC+/NWHq6+S8WEQ== 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=cFG287t5Ves6v5P2/3X6gJH4pAG+Pm46e7utiKeZ2mA=; b=ITgIbcr5EpQsIRHOlJZe4MvAfcOfbRj7WGe5oHeqQ+G5ce8dJGnE+3bZy3/l03o+DXjHOXOnWhbif7v7vyMUFzn4OS4cexTypuoQhO0CLerTqTiZyR+PWucBSqU9XXalXD4nKeJUllw7yn4Sl5C1lljqfLwo6E19ercdku3I00yV9Jl+dA4Ers/QvR0DvCxHCLn99A5h5tkZa3CqSjDJKGtFYlD5lHBPpyIGVAABU37XJeiM/m0gbbl+JD63h/zc1tq9xDD1RQQY8hasrkOU/kEFjOxiKe8lTLY2N1zvEQ/Wv2IbjWV/eII8B5hXz6eOGO0cEqUfG/y1Mz+Fe+PIbA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; 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=cFG287t5Ves6v5P2/3X6gJH4pAG+Pm46e7utiKeZ2mA=; b=IaiF036bjmJwOHLk9yW2WTfC0Ujkn482Jv3O7EX7kW/WePfZHRsh+SI6TMefopMpl2PumB0foqmRvhzoZPDLUUD5Ih8D+vb6TRLJHxGQUFWyVXBoqJeXb0ZdzdeNMwpk0nI4XW+S8gCGl196Jv/T536cK4IMorUreOaI4gTgzzcoJ6quWw2qMVH74Jv2fucGvVvX7a0ljR1Pvl5s054grKfE935+PXTl+ep48sN8Vk9zHMZO2qKGuboOnW1HKcHsr9+XUxi3fyUIfV6Kl5/fJdHB63XHN/LuuUBeRcaKyv8+H7uV4Cmf7w/75GqQnuvRysue8d/99pu6pD2c8yMsgw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from DM6PR12MB4337.namprd12.prod.outlook.com (2603:10b6:5:2a9::12) by MN2PR12MB2864.namprd12.prod.outlook.com (2603:10b6:208:ac::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5081.15; Mon, 21 Mar 2022 17:51:20 +0000 Received: from DM6PR12MB4337.namprd12.prod.outlook.com ([fe80::151f:fa37:1edb:fad1]) by DM6PR12MB4337.namprd12.prod.outlook.com ([fe80::151f:fa37:1edb:fad1%6]) with mapi id 15.20.5081.023; Mon, 21 Mar 2022 17:51:20 +0000 From: Ido Schimmel To: netdev@vger.kernel.org Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, schultz.hans@gmail.com, razor@blackwall.org, mlxsw@nvidia.com, Ido Schimmel Subject: [PATCH net-next 1/2] selftests: forwarding: Disable learning before link up Date: Mon, 21 Mar 2022 19:51:01 +0200 Message-Id: <20220321175102.978020-2-idosch@nvidia.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220321175102.978020-1-idosch@nvidia.com> References: <20220321175102.978020-1-idosch@nvidia.com> X-ClientProxiedBy: LO4P123CA0502.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1ab::21) To DM6PR12MB4337.namprd12.prod.outlook.com (2603:10b6:5:2a9::12) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b10edae0-a35c-4504-5ef3-08da0b6367ea X-MS-TrafficTypeDiagnostic: MN2PR12MB2864:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eUc9AVeqUe8D8J/x1qC+QHolE04ZOL/pV5cRoagL+G0vnVpKCdacufcp37WQbwCLKNeyDvbOCrdZYbIxMgsQf9rqTAts+BwzR466IjEgQ0Kw+OhshVT/6N8sN9zabPDOJTtt8kvLSRAxJ4Yf/BFPQivoWa/M3Lo3wiUqyYePqW4yXKxR2sOK2Orpq4LC9SmNdHjEDGOhwbJ400F4piB6sCDjvQUCJR/7KJKGpM9v/MzQxN+zBzxUtRGNpzak8gH2y0uL5DAh1AuEG4dQudkS+N7lUdmxwOzlP5ckDLs9lNYjwGOM/L4ildxeSXfyR2gDKCudKuHJkFFFqy1ct9B1ISYoKP33yXeg4FnemqZ0Xj8c42hCC4cDNvj1R6db/FKAs6L7HaaBwKreBxCiSP5mnT+gxHSuEtKcal+p2W7QYlPlGdTMYwZUywJskN+7uTi4HKcg2ivD6vRyGZ+OxcT28InX6fb5/ixq0MvakCtipTG/KMcIXOj46BbgYjjvqYNZwaLfD0u6L6w+uvawYF1R30EegTrDazbqDA0vd833QAV6F/3nNIrvC7cRcb5OUNq3LsbQ3qWJN4F/yby99plaTskzZ9k8OVBM3cNPGfdOJ/UKxW4prcPN9/ULLQDw5FWqZ3tWAY8kCjDVp7ZtcBQM0w== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR12MB4337.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(38100700002)(8936002)(186003)(86362001)(6916009)(2906002)(316002)(5660300002)(6666004)(107886003)(36756003)(6506007)(1076003)(508600001)(83380400001)(6512007)(6486002)(66556008)(66476007)(8676002)(4326008)(66946007)(26005)(2616005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 777LAfQ9yDrB0nwS7+Lyh9P/ZseB5XybQS66WK17YzJ5ON39hXEDSMlcR7pjCGaZVR+B1zHp9AmEknQZK0nFYsOrj/VAj0NkrA/vbrZLee0+06Wmxi71DJNTLapBvgei2/DDkRRid+Hoh6iszWKLy1c5HC2VsvXN+g1r06eG6TsbC9N0WFeGh5HQRvrp//IuUi/C3aM5G9oDSoBeXdS+qhwuRs/g+BJNZATdjmgFEFFJtSVMnoBcesgWr6FOYvF95BOKbPuySD8Oy4dcNrV/+VVy+1a9JRO5PADdXZhVACSlHb4CUkMRX3ASdHjHRK61Aad+TrUfcHQyN0lic2D2nwke5Cg+7TD/Sh8ro0FvOV85CQf4rZ+6Or5g/puygyHKA0UpgsDzT6ngheASaTGCaCO1kMdjvFcLVMpNG4trQB00w0CvM1xJNTUBuWccUVIVj4eUGnrh/4i6qixsMDjKxTBsjR4qlLjzASdiXaBDe2y4Ath04HsKrl+Y9m7BpHTcQ9VuIsMrsdy3PHPJRgVQ3CAB1L+SmtzbQLFy+5mVIbljYdJsQXc0j9hzRzkGPA7QZcNu/MEpxVHE6qsG/RLkTk5mMAA+Kwf7zILMicKIZ3syEucJZ5ZSWZRzYRxSy1cDmgwzwpQjc2PogjaxBoHFv9oEtYkBV+o4VXawu70Q/lItTRhcNT1hLX8txd1CLVTMn/IUMXnUiUEFr95HHc2wYQdlwQDUFGjGFdliYbXaRR9IsnqvedCVs9EePeciWKznbG5G3NFbsOYZG3iyTWeO0XFOeK0hJu2wtLWiQHkzby5wO2bnzzAw6RLLFxv1qBq6Wo6zDbeYoaZTMOlr+ZNRAj8PShNYXWmyB2q1gskyk88k+8o+ee6KEtiia/6p77H8H4WnCCG20Gj6NTHFcAiCg2xwl1d32/Aj0iNse5AySgS8dmE1sVw06H2mdlLeeGHCXMiW1dztXV/Irm8DBYjzz4uSfuBeGh5viCCfjYtIYYRlv+MOb1bMBzwbqraGIl+9ucoL1qi5qEWYo1bQ6pMZoGvLeEQS2W+BooVAh7FyJTyq+a+H2Sipa2P/G6scstAMs31ujW2yLsc4MYjyynsPrb7HnRt3ZkEaNRcJA6jIL0EQb4P+bzwKwD/pDpUvDNiqRuh6zqrg6Ddq4ZVIGxOCW2g743Z2sFVX+sImvEluqGSOz7pl0MPyb7YVd5ynj/WqKT8SePuHMM4rMUo3LKrFvp+qfUuwiBf18fo1jDgLw7AJDtuY/R6Xib/x3UADgH8WS7hScY7KiybO/hEzrbd2eCwX25LWArHQ4fbIjH8mnol6/5Gp4yYrXiBB3nOZRECL/RRZuko+NMrHXp5lsPnN0TbakYipKSo72FuLoJJQc0rQgf/eA4qkbCQHxiSQS7bfk7Mj8UjZfa4uXRvP19c5/toEx0FsnU+vlUKdAAMNgcLuZpVq7bllTzSR1d5FCyuZ X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: b10edae0-a35c-4504-5ef3-08da0b6367ea X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB4337.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2022 17:51:20.0052 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: hNVnoiTqVAyeAYvDtEervm/jLxzWcG/M57D82WhRfZe6a75XnNljZawOdz9PscUwbA0UIFITFnQO45qZFBEkxg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB2864 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Disable learning before bringing the bridge port up in order to avoid the FDB being populated and the test failing. Before: # ./bridge_locked_port.sh RTNETLINK answers: File exists TEST: Locked port ipv4 [FAIL] Ping worked after locking port, but before adding FDB entry TEST: Locked port ipv6 [ OK ] TEST: Locked port vlan [ OK ] After: # ./bridge_locked_port.sh TEST: Locked port ipv4 [ OK ] TEST: Locked port ipv6 [ OK ] TEST: Locked port vlan [ OK ] Fixes: b2b681a41251 ("selftests: forwarding: tests of locked port feature") Signed-off-by: Ido Schimmel --- tools/testing/selftests/net/forwarding/bridge_locked_port.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/net/forwarding/bridge_locked_port.sh b/tools/testing/selftests/net/forwarding/bridge_locked_port.sh index 6e98efa6d371..67ce59bb3555 100755 --- a/tools/testing/selftests/net/forwarding/bridge_locked_port.sh +++ b/tools/testing/selftests/net/forwarding/bridge_locked_port.sh @@ -41,11 +41,11 @@ switch_create() ip link set dev $swp1 master br0 ip link set dev $swp2 master br0 + bridge link set dev $swp1 learning off + ip link set dev br0 up ip link set dev $swp1 up ip link set dev $swp2 up - - bridge link set dev $swp1 learning off } switch_destroy() From patchwork Mon Mar 21 17:51:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ido Schimmel X-Patchwork-Id: 12787611 X-Patchwork-Delegate: kuba@kernel.org 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 1A317C433EF for ; Mon, 21 Mar 2022 17:51:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351518AbiCURw6 (ORCPT ); Mon, 21 Mar 2022 13:52:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351871AbiCURw4 (ORCPT ); Mon, 21 Mar 2022 13:52:56 -0400 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2059.outbound.protection.outlook.com [40.107.243.59]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58C86554AF for ; Mon, 21 Mar 2022 10:51:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EvwuRBd5FJRX9LVJU8SdPS2//6Zcwva4TdOsqUkuhDOg7BFzXz2L5YQuHsntSuIFCaC+nMaDUa8pvO36CWXYiOtL4WCpjQKT/ncOip1/vNROPQ/R2eoPCX3R4kQ0T9Nwd0c25ArhT7M5zA5fFnMBeWl2A/hkVfWBe/CCLGrASWVGnPNVvZ0X2oHv8CkBP4IVeKeXhT9Ps3D1rRShTvGWnCoYWhni23GGO8Y5DF+PkBa7C6thQWo3WfP0Pic7MKWvjwKMjfKMm5XwCeASm95k7uFJErWwtVrRqXdTNHxLhMQN6ua/8DWn0fTL93M7fpe3TzdejU60U5gmkRBdeaTC2Q== 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=N5jqT/EVlJjUPUPK7BFWaToU62LYP0CHSd3C0Ndrsg0=; b=aU3PWKYDoOEMd6zXDEhUBk3MaH/hatCTXimtdKjnF+OiUGPo0GspjOVEB9c+iTsgJE4tVn/aZfJJtmSS6PwYhQlhmxZNTkpMLSDVE/etpsYb09r/Kp9c0mb+YACwkgbXyKea85SPFhz7w3tug+LU0sPBDHvmgH/diS6CGzS/N2uPh+MQDX99dImfYIPqVY34t+ZA44tzaWwN2nXIccQeuBL8Pt0Blu03G134pW4T7rKy3dRsGyMZPw8i4uRvWcxS08kELYOqhnKNEIrKCO9SjBuvmYneqfyHEybmwKGMUASruGSkxPhQXJiaKsWHVDV7RJhrfMz9W+0vqjUqClZC9g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; 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=N5jqT/EVlJjUPUPK7BFWaToU62LYP0CHSd3C0Ndrsg0=; b=qcI04BvQO+Hwv0RhbwK6GgvhnNrdPTpw/wgOCBQHEEzq+kWMUoEP5ux/q/gJak827LnejXd/QIt9Kkk2jgjUOLUmFNJuosHwQXoGOQ67jhv7GRB74qi/nFVaNbIxeM6ILERYKXvWFmQ1BraMJW57c+rGF1MILYYIDFDWLPd+T1E0F5I8226Yy5qSm8EZFdtdHvBtrX5wrhGvCK+G3uh8PuujLOVgy25X6x2CeHnWTZA9OB9aIeG3qroM6Aj9wGvSpe0BNQ0VD4b0+q86BV5rf6aZ3TOj4OtF8yJKlv1cWNGyTjGVC5gN/MQAaNssNm/9o17rBTcgsSARSBoNhePg7A== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from DM6PR12MB4337.namprd12.prod.outlook.com (2603:10b6:5:2a9::12) by DM6PR12MB3435.namprd12.prod.outlook.com (2603:10b6:5:39::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5081.18; Mon, 21 Mar 2022 17:51:27 +0000 Received: from DM6PR12MB4337.namprd12.prod.outlook.com ([fe80::151f:fa37:1edb:fad1]) by DM6PR12MB4337.namprd12.prod.outlook.com ([fe80::151f:fa37:1edb:fad1%6]) with mapi id 15.20.5081.023; Mon, 21 Mar 2022 17:51:27 +0000 From: Ido Schimmel To: netdev@vger.kernel.org Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, schultz.hans@gmail.com, razor@blackwall.org, mlxsw@nvidia.com, Ido Schimmel Subject: [PATCH net-next 2/2] selftests: forwarding: Use same VRF for port and VLAN upper Date: Mon, 21 Mar 2022 19:51:02 +0200 Message-Id: <20220321175102.978020-3-idosch@nvidia.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220321175102.978020-1-idosch@nvidia.com> References: <20220321175102.978020-1-idosch@nvidia.com> X-ClientProxiedBy: LO4P123CA0496.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1ab::15) To DM6PR12MB4337.namprd12.prod.outlook.com (2603:10b6:5:2a9::12) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f8480996-599f-4f87-4a28-08da0b636c38 X-MS-TrafficTypeDiagnostic: DM6PR12MB3435:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EkbVdV3+LPxwAI6lkDhT/zI+1JDH75G655yneTo8hHyxgyCRhieFfWssip0qashkvGTVEKW0YRaoNkN1aMbLfQh2DP3Q7MSRbGvhxM/6Z/7sZUmDzeFR9FgEnI9d5N2/7R6HbT+FwYzIPf3aeWZITZWivsyIiitWHJt8n7sqB1u6tYQTSpdoQFyLnfLq58CRV4QVKWgX4aoAhlRTZjeexiS+LzWW+Kskh4UUadZ/6MzcT74Uy/7mGeumynqdbmBkObey7uwecpM5bo8/0YRRpK5g/8SC+3nRFoMZgvIrwIEfBZ4MhaRUA1vnQPXNPj6r82PRA7Rd8CvVVhVnoUjSt5PSg99D/1zNF9PcGbEaOSiUseseXRPLpS/Jy3C+ZMvlLvyXArroITEcCqLwuT9aOjt39IiPcEhZvMZpQfl3yLGlh98Lu4Q9GPtPcFNPBnyQqLfQRwL6xaMlxDpgL59O5hCiQfBuMCwMTDjwTi/6bqv+Y1jmB/f1lxXHq1rRBrl0OEc3OTbrew7zptYmg5KxAMBgDyysaCGvG4nHTmWIIANqWx9MOKiYJc+6tqVrzGuqHGGDZ7apfZ8Fvgf7G80B/0YphepmjoUtv174a9rATaxrW2r0Efr9O5WMzRqhQ3NY+9XaK1tj0KtqB58F8F0vzXCEGb0V8qN4zSIG4Fdo/UtB0TKVGNJk9g3EaEuy0hvjAmD5MHzgQ1RUL3Cl7anwMg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR12MB4337.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(8936002)(1076003)(186003)(26005)(2616005)(6506007)(6512007)(2906002)(6666004)(107886003)(36756003)(83380400001)(4326008)(66946007)(66476007)(38100700002)(66556008)(8676002)(5660300002)(6486002)(508600001)(316002)(6916009)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: SilNFsUXoCakJ1fsg9OGTRcaN7BVD69J/BDDAr+zvtsK7rV4yVEP61DXrNrNQxKi1nq2eU9+yhAPip/Qswa4JyZQ8H6ZryPMK/oIGUtp8DKuwSwCmxvQCvaZSqgSnbEvduJqJf/iipBCGNIWbP/IYpJQgvK3NKs9ap3oCCm7dWMZgcdQhh9Yk0loptjA/vH3jY1jVsXIbd+Y02ePsE+yPNNWuo01MGiVoK3I6In/GnXtsaWCMll8iCfYsgx4zLAwUI8Cre9zsBSzCf8AFarDAYH3u3v2VUGWDgZF9Vb5S5tdjzLOYet2J+WS2/X0Ogk3dQFS7dQ6COPTYv2OPaelt3lj6bgrxr17Ot05UU+z36gsLqlHcYVTqumHmJne9BF/hJY6ES5Sv1hzDOAxuWE4EKjqyZxdnKRCW3UGQW/ZVF3hpxHQVU6hL4br22y2gmYasFnYR1oYlc+C6b1tUg1n9A33vmmsKMlRV9ZXpWvCf3SP7fwhGJ74TA6+eb5I6rFwFtvgU9oNwi0pTVz/3ODbG4S3bVs15roYgcSZNEHdOrWrsiesMZqE+lPt2kRBYODhc43qO3dtqwheWzb8a4tCw6Z57zMfTKKlqnksNFNvRMmggA90LWDkRomqKPYX55kSMVnuoWskKVsq/vPSiZRzi1UBBuYx0yaXEnLaGxMtw7UZbujqJRbkOg/TwSlXKXYOJwOgLV2UrO9eR3mQmCPPJ6wnhvwV246ZJ4o2UNAaoJJc+0n03sC8ATrW1zlAFmf8vYojSU+2vF7L6XDO4Eue3uCXz9fedFmFAnHryoieOOQL56QenbW7tXeAh456WApr9ijbaGWFonMNqNCtWINGtEuEEUT5TXvalIBwpkgjqtMOP4fTt0Xrmr33Z/5W/SNA26F5mB2SRuZyONRQv3EMLMNnmI9jlfQWV/TYoOOW4AcF/y5Kr3DKG3in5DHYznd32rlEqiTU0rfB8ZkAW16Q4GCilS7X23PG44Of2jfmMYq2wqOwXc1a0+bGN7XlghUXhuEpk3jr1xwplJSezCaGf3llexjCO7M5hwSd3WGWHu0Pck9/LX+MBjR23cFJ4VuEaNyg8Ulj9aY+aeNR8whh57PouQQnb/LzCnSGbd8GDUEX03iEqU00AmfORCStd4iU6Qa1Gse5AN2DOoNE8ApgD5zvviYVllUtffjbdcTITnZiuR2byKO5Uev9qZB1H9U5jwNwrC0cnSCRkQk+4j/f5O/7DGHtENLHT1z4KVOvs2YtaowyCQ8y/iavtQQj4WArRgOk/NqWN3RlgdUl1EIyCIPz4K9agfEeKYFNPqPnKLX5bXTxjh8bAZVbiIp4JFqT1y0ZbZJcjuc1jY09DzRpJV78XyeHm70rK5oqWaIAXwAuEOoseGvgFIv+0i6Cx43yJOerTjEQqe5NitBV7QqxX504dybuLo8GcL9ZYjpo+8/cDCnQyLPZ9D30Funr85kw X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: f8480996-599f-4f87-4a28-08da0b636c38 X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB4337.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2022 17:51:27.4298 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ubvHBabugzgfAUGfOkqm3PzaQDZYXBJ2wVIjMsjW4rTsSoXtcktTxnNDKJEf9AIDGiAVqX7iZwRNaX1GoY1sSQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3435 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org The test creates a separate VRF for the VLAN upper, but does not destroy it during cleanup, resulting in "RTNETLINK answers: File exists" errors. Fix by using the same VRF for the port and its VLAN upper. This is OK since their IP addresses do not overlap. Before: # ./bridge_locked_port.sh TEST: Locked port ipv4 [ OK ] TEST: Locked port ipv6 [ OK ] TEST: Locked port vlan [ OK ] # ./bridge_locked_port.sh RTNETLINK answers: File exists RTNETLINK answers: File exists RTNETLINK answers: File exists RTNETLINK answers: File exists RTNETLINK answers: File exists RTNETLINK answers: File exists TEST: Locked port ipv4 [ OK ] TEST: Locked port ipv6 [ OK ] TEST: Locked port vlan [ OK ] After: # ./bridge_locked_port.sh TEST: Locked port ipv4 [ OK ] TEST: Locked port ipv6 [ OK ] TEST: Locked port vlan [ OK ] # ./bridge_locked_port.sh TEST: Locked port ipv4 [ OK ] TEST: Locked port ipv6 [ OK ] TEST: Locked port vlan [ OK ] Fixes: b2b681a41251 ("selftests: forwarding: tests of locked port feature") Signed-off-by: Ido Schimmel --- .../selftests/net/forwarding/bridge_locked_port.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tools/testing/selftests/net/forwarding/bridge_locked_port.sh b/tools/testing/selftests/net/forwarding/bridge_locked_port.sh index 67ce59bb3555..5b02b6b60ce7 100755 --- a/tools/testing/selftests/net/forwarding/bridge_locked_port.sh +++ b/tools/testing/selftests/net/forwarding/bridge_locked_port.sh @@ -9,9 +9,7 @@ source lib.sh h1_create() { simple_if_init $h1 192.0.2.1/24 2001:db8:1::1/64 - vrf_create "vrf-vlan-h1" - ip link set dev vrf-vlan-h1 up - vlan_create $h1 100 vrf-vlan-h1 198.51.100.1/24 + vlan_create $h1 100 v$h1 198.51.100.1/24 } h1_destroy() @@ -23,9 +21,7 @@ h1_destroy() h2_create() { simple_if_init $h2 192.0.2.2/24 2001:db8:1::2/64 - vrf_create "vrf-vlan-h2" - ip link set dev vrf-vlan-h2 up - vlan_create $h2 100 vrf-vlan-h2 198.51.100.2/24 + vlan_create $h2 100 v$h2 198.51.100.2/24 } h2_destroy()