Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp2591578pxb; Sat, 19 Feb 2022 16:44:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJwwOz2IEf7aKiFcxhUcDNrCCRce9O4MBPNF9EH2uMmIpRcDECez6VOT/4BvJvbDf56PuxJS X-Received: by 2002:a17:90a:b017:b0:1b9:485b:3005 with SMTP id x23-20020a17090ab01700b001b9485b3005mr19181991pjq.33.1645317877224; Sat, 19 Feb 2022 16:44:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1645317877; cv=pass; d=google.com; s=arc-20160816; b=NGGDQSPhOQPPuCghGZ3btGfFxcnflXFeyOJlXl8FPIavZ1XSkbFoPdwV2nq95UB/Nh pUkK/0r6DgXzYrz+AF94J55ApuMdXHgVu0QZQEnweVcU5yGhz/uMNXHLflB0bTaIpEcD k47l+ru5/3wYOPoVGqGyTXM0Y09MgzAjPfCkKu9XSX8ywmTwFt3PZaX5aXKaQARIF0b9 NKwHgJv9AB/E+P9ug46VrQdzxsMGJLfPwaUak+wUGi/y2ertgQMinTbRUdCrl+3oOAc6 L/z1VxodxoZAHlcvO9nym+Lo4WZ94VisVCDcRnihzh05pvsV1U3QVTtH0HVLHouPQA33 IlJw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=wWBpbLaaOVGpC0chISbecg4jxQMtvFYsdgIyHL2pnGU=; b=ge37RupP7wTinQaUB22CGawUl7Y09cQTViawCQGFrMIoUZDJ5e65DW+5p3YdOcXRmT eMZLzaGVuIk7WVTVP1I5i/q4hWLYfEIwphTWpGEo+2zlhjL9CA/5tnRRqfxW3jrWucY7 JEsfMpcqlClH+lI94mVm4m1SeQ6g2Rk6w1GbcaFyRwcej9royg/OBPF2bixUPyfIdlfE XC7qVrUOJ+yYDX2M/SqWb3pr9pHMsH+NgXeeee7kAeLcncAmLYC7oxl63HFOiLrli9zT imf9SatZ4zG+Ix7GMg1MEXy97eYFGI6ZKAC+ZazG9lW43PfUnagq+FcrTZHIo3mzVuim RcNA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=UxcBmms+; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f8si13587929pgc.100.2022.02.19.16.44.21; Sat, 19 Feb 2022 16:44:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=UxcBmms+; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241878AbiBSJrp (ORCPT + 99 others); Sat, 19 Feb 2022 04:47:45 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:42006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229545AbiBSJro (ORCPT ); Sat, 19 Feb 2022 04:47:44 -0500 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2087.outbound.protection.outlook.com [40.107.92.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB5E9A19A; Sat, 19 Feb 2022 01:47:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B2fJN17J+1cRf8mERGmZXMYx4NXdpxzTQh2hNRpiddw9lSIuDrZeF2JkFw6Ov9Jye93zdMLtMNJWkCi2nGpNxB94yxPE82X/8PTkRQc+r1mwpIJE1cWHuzkxbro12AfwkMPSAQPCTRWJQstoSkpzhdX+7rTvj0kPtoj5LawydnG4bkwL+0oVTLytl9W4E8v8NEojUOa+bvevewys6AGAMIv/1ODQT8TaX/Q+I+bvgjkCn2nBonidb7iy1qprWtYcuKbMw4kM7RKHG5qNN+TUz1MFNmsfHsfEfGuMKoxiROOdCdDVqP2dlAB6lLFV2pBw0TI/zFGcI/tTO3VEV7WQxA== 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=wWBpbLaaOVGpC0chISbecg4jxQMtvFYsdgIyHL2pnGU=; b=EGgNfBQ1i6sr1t3nbku3h+as8yZzpW+Bpt2ENAJVFVs0hGVnI1ApNawsA+N9+HxKvpEtEugI978OcpQQxX4JKy+eZLB7g9Q3joJvPqtUm7+M/QWS+w23xkketBGhlykh3sWPiYXkR2RVXCFDdqXd16CahaRmRX0Hry+c+Q8dV5jVagblBnzqc3+HOQI3PK+3z/rxRRK/CAlALN1KQk3cpRb2zb8D/h7yGArdI4HPPTg9p2FTjyA2/qM8StQTAvrmEHLQCIAjEd35d2vud/QKT44NGO7G+dOuLT9+Bn4d9FQuuTfM8Hnrjd89z3c6I3cTej9+2zmwgPwRRJz1JKLu9g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.236) smtp.rcpttodomain=lunn.ch 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=wWBpbLaaOVGpC0chISbecg4jxQMtvFYsdgIyHL2pnGU=; b=UxcBmms+tY7y08BN0Je2z1lcAo7Od/pQOzmCRoqsK5Qw7FNjqE3llKYbeO8J0wWD6PFxHi8cvyIAGGT+kkTEBE+3zuwnL1LUCR2EucPZUau8X716EaSZBpN5xY2paskJwtWzMbpPneZrr1qoPaBPSIQN0pePjjnYlXhrH2l2EjiFUGOP3HJojV4vsQ6BJVZtdTstzk8XvhBTdeehqxLykocgtOKTn81qtTOiIMv1Si0psHfLwwyANndRWdJZsbSMSa78FwN1dGqNBbdle1BiNfWby4wL5YOEEz7y3CQwADM6tbvCQgG1H3teQv2igE1zLbss3aXlFHBYWRSfdmgLOA== Received: from DM6PR18CA0023.namprd18.prod.outlook.com (2603:10b6:5:15b::36) by SA1PR12MB5615.namprd12.prod.outlook.com (2603:10b6:806:229::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.14; Sat, 19 Feb 2022 09:47:22 +0000 Received: from DM6NAM11FT014.eop-nam11.prod.protection.outlook.com (2603:10b6:5:15b:cafe::f0) by DM6PR18CA0023.outlook.office365.com (2603:10b6:5:15b::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.24 via Frontend Transport; Sat, 19 Feb 2022 09:47:22 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.236) 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 12.22.5.236 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.236; helo=mail.nvidia.com; Received: from mail.nvidia.com (12.22.5.236) by DM6NAM11FT014.mail.protection.outlook.com (10.13.173.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4995.15 via Frontend Transport; Sat, 19 Feb 2022 09:47:22 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL109.nvidia.com (10.27.9.19) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Sat, 19 Feb 2022 09:47:21 +0000 Received: from [172.27.1.59] (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.9; Sat, 19 Feb 2022 01:47:10 -0800 Message-ID: <34364248-5c07-6fc6-59e8-ff1a0faf69f3@nvidia.com> Date: Sat, 19 Feb 2022 11:47:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH net-next v3 2/5] net: bridge: Add support for offloading of locked port flag Content-Language: en-US To: Hans Schultz , , CC: , Hans Schultz , Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , Roopa Prabhu , Shuah Khan , "Stephen Suryaputra" , David Ahern , "Ido Schimmel" , Petr Machata , Amit Cohen , Po-Hsu Lin , Baowen Zheng , , , References: <20220218155148.2329797-1-schultz.hans+netdev@gmail.com> <20220218155148.2329797-3-schultz.hans+netdev@gmail.com> From: Nikolay Aleksandrov In-Reply-To: <20220218155148.2329797-3-schultz.hans+netdev@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7a4a8f33-3e5c-4800-ff19-08d9f38cd3ce X-MS-TrafficTypeDiagnostic: SA1PR12MB5615: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: 6l52sEWB8uLgulN/Saj6RIXk0piAQpzTcwG6Kjl9Abs5sqZR9UVzB9fi18V8oxLJ3J2H4KlstIVksYEQS/jAoj+zx08kXA2N/Wb3QTsTmIy5PEmgFWqNMFV1ckbiGm+lmrDMUPP6BzC/MK777Zn2Qb+bOM6eZDWurwY82y5bewrDPipqqzjNZxwbcreiH2ZC7VQUEUicxZ8K+lWzO3P+bxm1iemjhTdM9+6fxrLcY/BoZXXH5JA5+CWSCEaRi28I4YPiEBWfgCAHPoAr8IXj18Fck7FLDicMFVINfir6Bv5IAHckkumUAw98/kWzzlhFTpqMz/HhdoxFZWEtN3Wc2+KgYxBeoYrmRN5zPjr9A5N0ADNFl4bgDcE/VI1iVTUJ6ivz/Cr+v6b0MGzt3RRE9RlkpTOExOMdg3BveiA0UIlO4o2Bpsqy3lt/KtYuiJHJGIbEcE1rPadlKV0U4HF2Gm6hnvxPRRY6yEIZcxntMbE5q0Ns2MZ12tJplV5kA0hFzyvPphYBDFv9EDXwdqix6TCXrOQEZPwE3KKxSOfW3xVi6GQFKdkRpqhr1gbgzCZFjDrQsaxa1n9CTP/541Gk+kkvlQ2NvAcAw/IFhPu/UAQswfnRLV4ra/lCcpR0Siei4D8dvVlSPdj5HEdnNY9ZM0x3TCoI4BVC2y8120tdKNXumfn7v+ATTN+ZrL0wyrLlRff8zJeK9cd2Gex+hen/v8XkCQxX0i/LORoZ+r6N2vlIaX7DCZIMGQFAIJEVSEN0 X-Forefront-Antispam-Report: CIP:12.22.5.236;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:mail.nvidia.com;PTR:InfoNoRecords;CAT:NONE;SFS:(13230001)(4636009)(36840700001)(46966006)(40470700004)(2906002)(31686004)(4744005)(54906003)(110136005)(4326008)(70206006)(70586007)(8676002)(31696002)(26005)(7416002)(5660300002)(316002)(6666004)(53546011)(82310400004)(16576012)(8936002)(40460700003)(86362001)(186003)(16526019)(83380400001)(47076005)(36860700001)(508600001)(426003)(336012)(2616005)(356005)(81166007)(36756003)(43740500002)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Feb 2022 09:47:22.2758 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7a4a8f33-3e5c-4800-ff19-08d9f38cd3ce X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[12.22.5.236];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT014.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB5615 X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18/02/2022 17:51, Hans Schultz wrote: > Various switchcores support setting ports in locked mode, so that > clients behind locked ports cannot send traffic through the port > unless a fdb entry is added with the clients MAC address. > > Signed-off-by: Hans Schultz > --- > net/bridge/br_switchdev.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/bridge/br_switchdev.c b/net/bridge/br_switchdev.c > index f8fbaaa7c501..bf549fc22556 100644 > --- a/net/bridge/br_switchdev.c > +++ b/net/bridge/br_switchdev.c > @@ -72,7 +72,7 @@ bool nbp_switchdev_allowed_egress(const struct net_bridge_port *p, > > /* Flags that can be offloaded to hardware */ > #define BR_PORT_FLAGS_HW_OFFLOAD (BR_LEARNING | BR_FLOOD | \ > - BR_MCAST_FLOOD | BR_BCAST_FLOOD) > + BR_MCAST_FLOOD | BR_BCAST_FLOOD | BR_PORT_LOCKED) > > int br_switchdev_set_port_flag(struct net_bridge_port *p, > unsigned long flags, Acked-by: Nikolay Aleksandrov