Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3314087rwe; Mon, 29 Aug 2022 09:17:45 -0700 (PDT) X-Google-Smtp-Source: AA6agR6bIRPxkbn/bR0KG9P8Z2JPhWHIfd7h7JHs4u1aX9pIercfo0wdh+VM+tnTIHeYHGHSEiUp X-Received: by 2002:a17:907:7e92:b0:741:5f7e:f1ac with SMTP id qb18-20020a1709077e9200b007415f7ef1acmr6507714ejc.176.1661789865027; Mon, 29 Aug 2022 09:17:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1661789865; cv=pass; d=google.com; s=arc-20160816; b=TQRe/dqxo2ScEf93o+q6VzC2BHfcCy2EKboLCB4L5Hl7kz5F27u2sjLgTTCqvdKyey n3bdguaGJg4jcHEAmL/jT2OZXUM5ySrZyKXH2b5187B08BAR7Ufat8cR4e5+2XaEbjkL 9MInxqlN7+YJlhaEfoV6kueU8um8a2IVKm5BEUXoi9BZNFRXyb44eFCUx+M1jt2RJLHg NssQj0jFqtT0GoNFIHYvJZKEOBzjvcXhh/dflV1mlsqJ7j6RwV1seeagsOswX5QijPDl fm9tOpd5J7VxSG+f6EPIoMUXc3vCJc8r4h0vP9f1H0i9YBeJVJkUVf/jTVp1if9fbsPq O63A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=+iCA21eCQznXHOu6VEuN1kLPE5gxUGXLzjfFSjMA/qY=; b=opiOewKMM6ghXky7q3d0ajgtnoyTpw0XVpfJZXtMC3UvR+n3fRoPjAkh/txdq5VB9e 164sX+JomMAE3FNRypdBKLgvP8yH50EbEcow7GSHpJyy3j2V5/R4nY2s4SEP9jxt2ZzF d+ADenZqawB9M/sZkn9sbnhm4AtwfHRuxBApnzZvaZkfWs6SQMDmgC9u381eMJ8tANc0 /hWTLUGA3ojBq/q2IirAlGtyi2pzl3B7hSsaDaKr6Idpb0YN+2tsj596XwF4WOCKX2wg GCI9eXxLlZrfJRWvRLlDHPgkT8uZ4pMw1J1HUcfsKZgaSjPdnuYyFH/LMMW0h2vyCOcC flDw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=oCoEUNvx; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=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 sh16-20020a1709076e9000b0073074e6f71asi6341511ejc.529.2022.08.29.09.17.13; Mon, 29 Aug 2022 09:17:45 -0700 (PDT) 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=oCoEUNvx; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=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 S229966AbiH2QM6 (ORCPT + 99 others); Mon, 29 Aug 2022 12:12:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229729AbiH2QM4 (ORCPT ); Mon, 29 Aug 2022 12:12:56 -0400 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1anam02on2066.outbound.protection.outlook.com [40.107.96.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 039117FE52; Mon, 29 Aug 2022 09:12:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MoAZOaioTP5BNLyl5rWREL1nAtXlHqgHdnF1x2SIq9ukyK9U8i/TyRSUA8wo+wlWMO2x0GgwcbxuJJeL+nmfUesmwDGj1H4TGnF7W4dzZu/GxIIkUfEydhRyRmf9W7r4By8c1kexrD2K6ryKKoiJlea0GyN5vJ9HhZL2UbIrl3lJZy3Us3Vv94N8U1k5P1Z3mPD2ZtqTXoSdeU7I8HXs/cNhRPwEQnB0MYqVfMr0CBnR09z0lVKGTCd9H+Xz+lwb3BdpkwF+MxjcAhN7oR+9ZLU0YE3l0ZyoDrlcCPxgzvfSX0Ldk4qdQseoh49qXH73yR6i7DgX2TN41DwZIZQeqQ== 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=+iCA21eCQznXHOu6VEuN1kLPE5gxUGXLzjfFSjMA/qY=; b=GrO/CwpOPaMuDqVzi0ru9kG9q0vKxWcv+JAfaSto/3OKtizlX2XzCVBIPkM2UGC+k3PxRFEsndzmHUEjQv2MoyDCRrAMa58blhxz/n5RZlBszy57lSHd8BAtzHEaMY7x74J0NJNLLhMiZeQm1xHAAzN93TASkRKGRZGYCMFc1xwPdK1QhIi8ivxjhzjAhzbwoaFcFWGxO25XMjYTvtkBpmjQ+v/M2wftqVW4vqA755onlmgqFx7a76pj8uakQ02tk4YSMH17SYzlZD+0oXHRETGZ/KiN0yfUlW+E6334OPtpVom2sHFX9LA6DIXATtRCjGPCmFy00XS0iqXZ2LCQFQ== 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=+iCA21eCQznXHOu6VEuN1kLPE5gxUGXLzjfFSjMA/qY=; b=oCoEUNvx2WXdAHymJf8dhckgC5dsDLfLpWFYc46arHzWxjw24lSlhvDSbikk5e7b+3BCj0lFTd8f/h5uS5bxVymOhKeCiYVUXPxHow4he6wTc+b+yG1L481CMV0jc3/hx6BHFHQ2g4IMOAQIN/1kf2lT4z6v72SPkdqWMZyWqnIh/6XCclpKyUPC8fhkrWDj8KNW4maliJJLGW9E7+4ad30KHt/F7Ku7X7YBb7myTc3PtnJSjAn+VubWNK4N8kZlwoJ1Yh42B5wbe8+yu/Hv9fosJ086sgM3qX8oadMyuzwkZdGR6ZIr2YQ5kMdU5jTpVp1TJwkJ4pHQbkFq0Kcr/Q== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from PH7SPRMB0001.namprd12.prod.outlook.com (2603:10b6:510:13c::20) by SJ0PR12MB5633.namprd12.prod.outlook.com (2603:10b6:a03:428::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5546.18; Mon, 29 Aug 2022 16:12:53 +0000 Received: from PH7SPRMB0001.namprd12.prod.outlook.com ([fe80::3ca6:ba11:2893:980e]) by PH7SPRMB0001.namprd12.prod.outlook.com ([fe80::3ca6:ba11:2893:980e%6]) with mapi id 15.20.5504.025; Mon, 29 Aug 2022 16:12:53 +0000 Date: Mon, 29 Aug 2022 19:12:47 +0300 From: Ido Schimmel To: netdev@kapio-technology.com Cc: Nikolay Aleksandrov , davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, Florian Fainelli , Andrew Lunn , Vivien Didelot , Vladimir Oltean , Eric Dumazet , Paolo Abeni , Kurt Kanzenbach , Hauke Mehrtens , Woojung Huh , UNGLinuxDriver@microchip.com, Sean Wang , Landen Chao , DENG Qingfang , Matthias Brugger , Claudiu Manoil , Alexandre Belloni , Jiri Pirko , Ivan Vecera , Roopa Prabhu , Shuah Khan , Christian Marangi , Daniel Borkmann , Yuwei Wang , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, bridge@lists.linux-foundation.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v5 net-next 1/6] net: bridge: add locked entry fdb flag to extend locked port feature Message-ID: References: <20220826114538.705433-1-netdev@kapio-technology.com> <20220826114538.705433-2-netdev@kapio-technology.com> <972663825881d135d19f9e391b2b7587@kapio-technology.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <972663825881d135d19f9e391b2b7587@kapio-technology.com> X-ClientProxiedBy: LO4P123CA0356.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:18d::19) To PH7SPRMB0001.namprd12.prod.outlook.com (2603:10b6:510:13c::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 458cf043-40c6-4dfe-e455-08da89d953a8 X-MS-TrafficTypeDiagnostic: SJ0PR12MB5633:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: URwOnSOxeXPlq5LThz2QPoFe2z5eqg7TsTxCQN5HYU2YBgE0wnCJhpvb+YGHeyeqjbknt2TK16Zu3X5/4yOBydh80AWEf1RMVNpilLQ67WJE5WdEYK2zS0wg3NFU3Y5Iy7mdo6xnt4FvBRmvV6NjQKPxTnFON699Lq+mpsS+xVbzc6CUVT+CdKHQHBEgjB+VKKK9PZ9VTdWZhUBfAqWrX7fPOo/J0P9clSUExUff5a9jLdDx05Q8nkBqH8xlRAcerWaRULs4mJU1lqupRe7jwP8n7JF7xPmm/p9/nAg3yxc76iGquoMOfSsn1HcP8XgWBrnkv/fF7xa/lhodqM1IPBskEUqaamm+w7lxPJuL22mbVTQ5VS7FbdrXb1Uobmcel1haprY2JZXqCQDKAtBrw96nA6/ebk6vU+eULMkUpthuqEZDPl8NyBiTdkTIhMd/I7kcsBbo5+bevikx5tMtBnC39hpiMiAWlBWcUdo8DGqfYnLi66iaRqirA7pTwAhxnO3fyWCRUB5nTv/gfY1hg64L/WzLCH/4OB27c3x/m3GX8Jkh801LhBFfc+evumi04glVhZeSvyh/Ifx4MBtDgjcFW1QgU4lUNpzwmZ6iOOwdny+LUWq08zIqZWa6AOlZCqxzFnJzj+odjcx3CYOE4HYPD2EoGD4a5FehUgmyb2ppXiuWFvXSLY+H+ayDEcDRfc2x2ROF8iNNeWupeWRg8mH96msZ7gUEUbb8i9g3FvQ0vHQJkeJlkcpf/JZRFjlqvIMUrO9WQ9p525MhUjgtydrNSnxk3FGRxXG9bGPpzO8= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH7SPRMB0001.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(7916004)(396003)(346002)(376002)(366004)(39860400002)(136003)(5660300002)(6486002)(26005)(4744005)(66556008)(966005)(6916009)(86362001)(66946007)(66476007)(8676002)(33716001)(54906003)(4326008)(316002)(8936002)(6512007)(38100700002)(53546011)(41300700001)(7416002)(6666004)(186003)(7406005)(2906002)(478600001)(9686003)(6506007)(83380400001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?48WpWIx1LneHKos/o/UoszPYArxlcBZgYbEr7aciBrfjwcFWCT8jd3Y1Rv71?= =?us-ascii?Q?Q8KplQt8puMPV3hNdqoUM0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ascii?Q?50hSZvb+zhIG+GSf5/NMYCA3lT77Z8iaPcwpIG7FZ6CpIX/ajchXeFAMgyfF?= =?us-ascii?Q?Nm3itLIsA6QAxZPN0tOEsCRg8EvUgm1OuRInCru9IYGXVi6UEjjVCxZIYfbJ?= =?us-ascii?Q?rMdc4tl69pl+QCm6Mesfg0uZaVVwrSYfQ03xm58SUveydPMqLLFwTuXmFEYc?= =?us-ascii?Q?kwQ5oNTxHrSPYlWEptuZx2RWT4qczbigWw9lwcD9RkMoV9E0WNPBo+Wr2H7z?= =?us-ascii?Q?lAdpTnDmKlwChnZ4PO5ZHBF+38cq820O3JtXOj9YPHIxF0jP1HIsPeYbuzpJ?= =?us-ascii?Q?hRJSPg7IbMjVCT5BvzdH20e91tmbjXqa4d7qyM301RT2juLy7UEnQfQ+T7Fs?= =?us-ascii?Q?KGqMwOwAFcoY4Fw5+nJcn05V0Ij0+kgANeTK0wMJMsCKEXOpMxm7zDdlCbz4?= =?us-ascii?Q?FWZ3IzwwazbE11+Vkf190kcLuHK2vVNT93LVkqFtX0rZ4pItFch+k/TaalyD?= =?us-ascii?Q?cyJaQZDU1qXorSwJUpkj6HJtgweqfgBFVtup2GWVvgj05kPNh3I4wBd2JM5h?= =?us-ascii?Q?Lpi8jQ61xpbNu6spWY5gvvUlNF2gfJ42mYp2U9GhFenjdrBwv811H2HQwq3M?= =?us-ascii?Q?vI7f2/9q1xUMaDl/AYU2yyKUKDZivfbyTAeykYvZ?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 458cf043-40c6-4dfe-e455-08da89d953a8 X-MS-Exchange-CrossTenant-AuthSource: PH7SPRMB0001.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2022 16:12:53.2238 (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: qO9PlPy0ZMasgC7Pq/+Y2JTqskesVBKrl8iNvo6nteTbwS41VeDrQexdoxn+1X4hGwE1uoTqvIxAX0bx5hB4KA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB5633 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, 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 Mon, Aug 29, 2022 at 04:02:46PM +0200, netdev@kapio-technology.com wrote: > On 2022-08-27 13:30, Nikolay Aleksandrov wrote: > > On 26/08/2022 14:45, Hans Schultz wrote: > > > > Hi, > > Please add the blackhole flag in a separate patch. > > A few more comments and questions below.. > > > > Hi, > if userspace is to set this flag I think I need to change stuff in > rtnetlink.c, as I will need to extent struct ndmsg with a new u32 entry as > the old u8 flags is full. You cannot extend 'struct ndmsg'. That's why 'NDA_FLAGS_EXT' was introduced. See: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2c611ad97a82b51221bb0920cc6cac0b1d4c0e52 'NTF_EXT_BLACKHOLE' belongs in 'NDA_FLAGS_EXT' like you have it now, but the kernel should not reject it in br_fdb_add(). > Maybe this is straight forward, but I am not so sure as I don't know that > code too well. Maybe someone can give me a hint...?