From patchwork Thu Feb 9 07:18:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ido Schimmel X-Patchwork-Id: 13134095 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 0F614C05027 for ; Thu, 9 Feb 2023 07:20:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229772AbjBIHUm (ORCPT ); Thu, 9 Feb 2023 02:20:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229550AbjBIHUh (ORCPT ); Thu, 9 Feb 2023 02:20:37 -0500 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2080.outbound.protection.outlook.com [40.107.92.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0A6247402 for ; Wed, 8 Feb 2023 23:20:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oNruzSn4NBi4LRYvMt6CLfgvUGiRCUJZ3tr5OMlHeR+OZ2wWrHIWuyTwj99rr0sa3sKTAakze2ZzR+tCv74iJt4PSIrhm84lJAx0Ap/8wAZjTGQMpiIatGsw2IM0kUQmt/Z/TifaZKRqJ2eiNnATvJ/8EbJV13qoP5DqjTjcEqE86YGcHgNff362rneGxKei4X3hzdlUPMsMQ0UN0OtRAGqKjAepq963hiKEXzF1ppbASpZ87/nSr7vf2MDJSqJOSrnrV6qjXtgZ2r8UQ+6bt3BkJgFOJish6yw35rLUPZTX/GXXpKE6V7CaU6kwsL6v1AAhHFFULjndDLWfhdeohg== 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=q/QRSh7zayDiVWVnBLdQsy9cF/0w0ZylzDkjTo837pQ=; b=PoLs7uke80mOgxo9o54vcUWWlaKYXXfwx+tY1EL2cfVzuBvtOxF+CbmoYsoYcpQ1ZAlG412TicFdVMt/tfYJYKyjpcPc3cT/C0FRdTi3YGfspHC86kKduQNGXshMDUFthwZGtMcOX4uKyNPOkyIr4Cul4QqOfAYpIsZaDLY6FxZ9JdCbxScwG5sA8qhRCwL1Rx0Q5mOSaaXmEdJjDZnrMmlOCKcDW1Mw4bGkijlpRlmxcV36CneWuDCqawM8KqWINbIwlwBHd+cT7uwarh+ot91g25qMnjX7nrfEZGyqmg0njaxRIAzdOfHN54GmdE7A8Xql8xiOeZm/E9KaBSwnhw== 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=q/QRSh7zayDiVWVnBLdQsy9cF/0w0ZylzDkjTo837pQ=; b=Dt2/QRjRqJZiZPjxrWiW7Ll0BPIqByaEjmSJ6Q3/Dckh7YkQMzjp2XfWOsgekYN/Nwx0SA2z+VvUdWxcwCDIsE/mUiwSPOsTVMwLRF5n8OPktUI69MOHjMItchMFPYu5bSn9tAcu6G274qr7aCEXh5OgVmkAYNymIO/GdZ/e7ie7f1iZaxJa6P0BgCiDE44LvQPxYkzSLbaTupuG8wd/rUPyBb2LXgddZ4/OavpLdGDaTgegPEkR1IycR58AH0MMFvR7Za9idtfSiLOi1iIyueVsccPbmVMlaZ+yQ7qqUTJRHrSaK/KnoDQyVl/RvisU2XLY4wAf0tPctLntVD0Y4w== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from CY5PR12MB6179.namprd12.prod.outlook.com (2603:10b6:930:24::22) by CY8PR12MB7755.namprd12.prod.outlook.com (2603:10b6:930:87::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.17; Thu, 9 Feb 2023 07:19:25 +0000 Received: from CY5PR12MB6179.namprd12.prod.outlook.com ([fe80::7d2c:828f:5cae:7eab]) by CY5PR12MB6179.namprd12.prod.outlook.com ([fe80::7d2c:828f:5cae:7eab%9]) with mapi id 15.20.6064.035; Thu, 9 Feb 2023 07:19:25 +0000 From: Ido Schimmel To: netdev@vger.kernel.org, bridge@lists.linux-foundation.org Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, edumazet@google.com, razor@blackwall.org, roopa@nvidia.com, petrm@nvidia.com, mlxsw@nvidia.com, Ido Schimmel Subject: [PATCH net-next 0/4] bridge: mcast: Preparations for VXLAN MDB Date: Thu, 9 Feb 2023 09:18:48 +0200 Message-Id: <20230209071852.613102-1-idosch@nvidia.com> X-Mailer: git-send-email 2.37.3 X-ClientProxiedBy: VI1P191CA0001.EURP191.PROD.OUTLOOK.COM (2603:10a6:800:1ba::11) To CY5PR12MB6179.namprd12.prod.outlook.com (2603:10b6:930:24::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY5PR12MB6179:EE_|CY8PR12MB7755:EE_ X-MS-Office365-Filtering-Correlation-Id: f540cb07-8e0c-4631-ceaf-08db0a6df970 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: He96C3seYKDxg72DBR10Z4nRaSC4v96MX2GAglJyRbCAQJ7SwsmyEmgyKNACNvaImFEwChkEBOdnVJfVwypwClMe95HAtriZ92UmrZ+cdna7yi6qpHQavAu2IE9qa9iWNmXgNe+Quhw/grCfUwqMNdqp/I61CdD2um5M/Pzn1lmh3SwYzXbETL7tKXIMuUIiLfFWph0JvFFFUpkie2cRxXaepyPxi3LAYFy0RfAi4bA3Rdk4RFtkN+v/TGWY3YHDLtHz0M0PIVT2qmzBUrvL5+NzTcxCrOy8C0n0qUU2vpptph9aGKc6EsvOEKmmcT7WYtcPYI+Zz3/xRf1ln/e8IPRWaj3vH6BmL48hQn8C8NMFK4J34W6MYOaLxOThFhpNHBO7xf+m9rE948F5OBS4gGydbFMWq4VT31Bx45is+z8R6LfqEqx0fMRfGMIBgieb97QakPIQpjIU8galqidoFvsUmT4Z1cJx+L4wOyhbNCdREqwTaZY3BzM0S9c2NyQezTvWhwYHkMCtbuuJoJ2u9kvfhilOmluc9eeMPki0B78LUSGoU49cFhrYl1Q8FWKyj35pwEkeHY48pEV0xShTPbkjDOdHTOHrbFf50AdQ7fWUQPnUrlYvE3tyvnaYtZ3BBHp0u94xM1sWLl/PmKvyGP8sQ0VsR4gBFhlOGkyu73IqIXViQs2vZZwGMhs+rY8I5nwumQaTZTBv8/UbvOBFRsWtf+jHUZ+6jUZK0grUgD4= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CY5PR12MB6179.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(376002)(136003)(366004)(39860400002)(396003)(346002)(451199018)(6512007)(2906002)(186003)(6506007)(1076003)(26005)(36756003)(107886003)(6666004)(966005)(5660300002)(478600001)(6486002)(8936002)(41300700001)(2616005)(4744005)(8676002)(66946007)(4326008)(66476007)(83380400001)(66556008)(86362001)(38100700002)(316002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 3+jDzAOIWhKa+e5KEsT3e5n7lHMsezM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endeIr4FryOjMHC6rOhOk8PCfF79TbDNNx6u1lH+PC6yzYy+EfEiSMwbu//IjhWMZtqprPx4vEx1+acXJ18tJzkZk+v/7F0K8UyzPJMroKrItdjZXPFhnuHYfAQ2BMLHDGoOvgRDneZ0Cg/ksy0RB5gqWeamYUN4bGqVkazZYHI1hJ9IeROuiqkLDxP1CEzaMOyQpQAlb3VoNJQlM+Sd81hFLW+H4NlbJRZl1qhXd/XoVBBKvZYLp3GYjOkdR8E0HHByMkytvI5HYRpupz8hVXuqCrUKXbUyrVt/p0tN6xh0Qk9p0Hst8qj3TWqDW392ymt8blrgj8hf5+NYBToeLUDnCFJZ14XU6Mwai3XvK73wYjVKaiBuI+VYZz3iiWSU3N83rf1z6JJWoWasqMJUmW5B6EcZ0+uU/tD1/1agdRStMZbeOWaG/yjDawk2/GETDFPVzfRe6zlsAmeQDcFKoCaScIq+H+wcZ X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: f540cb07-8e0c-4631-ceaf-08db0a6df970 X-MS-Exchange-CrossTenant-AuthSource: CY5PR12MB6179.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Feb 2023 07:19:25.7096 (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: UFR4vX6HCwMfjbDy4M5ClM5ArKudnPL5B/ts0oD8+/V5RUU/GAJ/4c0BOrB2FCbhfjoZuOijw7+eouzrRZP06Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB7755 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org This patchset contains small preparations for VXLAN MDB that were split from this RFC [1]. Tested using existing bridge MDB forwarding selftests. [1] https://lore.kernel.org/netdev/20230204170801.3897900-1-idosch@nvidia.com/ Ido Schimmel (4): bridge: mcast: Use correct define in MDB dump bridge: mcast: Remove pointless sequence generation counter assignment bridge: mcast: Move validation to a policy selftests: forwarding: Add MDB dump test cases net/bridge/br_mdb.c | 49 +++++---- .../selftests/net/forwarding/bridge_mdb.sh | 99 +++++++++++++++++++ 2 files changed, 127 insertions(+), 21 deletions(-)