Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1450512pxp; Thu, 17 Mar 2022 09:26:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAmkrBsiwRq33FzOxRCgliKTAvCxK3AG/pGkE9TnJPrDGO7qR3TU0PGAC6RO+5L/T33DHU X-Received: by 2002:aa7:86c6:0:b0:4fa:46d:6005 with SMTP id h6-20020aa786c6000000b004fa046d6005mr5327851pfo.86.1647534364374; Thu, 17 Mar 2022 09:26:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647534364; cv=none; d=google.com; s=arc-20160816; b=l5qXjzimJfRjcwyDtjOab5eUfz0hQ+dcmXB7wEks7Njnc1PdYjUX4NPKonK2+B51/w XaME1mjSRMpduyGpVyFWF9AacBTqLeGnTM5jnR6mjLao79dmsVigxcfR79XJx5pZqWJ5 5JnRoxlO/byv1C9lz9KkgO1LTv6mLQVv+0wDApu6duJOmBkby7tIgiQbu/l+Jp7+0OWO ZTABb3Xigtv+wF8xvV5o2lrtWuCqyIOcLIopbuTxLj/yLP6ok3davy2yti0TvSf4aTXN Pjb75aK34RLlr+3Wm4L+v4/tsSQlrZLPcCg3vKcGdi1/5DMIGOWypPY0Zg2EdFlMSuRa iA7w== ARC-Message-Signature: i=1; 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=Auj42wKcECcnklt6KoxYruKINeN/YRt0HTEgWQUvSbk=; b=KmI4RbKE6HzLDbVtRQnWvgGLLLdnuSSFjNMm+7b4wYLm3GvBsLYOdAB9cT3GOgza1Q 9Q6AlApUNaDBZshseFEwWk9q5xrr/ZLcYS8AFN2PstyFPJ2bvVwVxtmkei3n3pW++VMf LGxlNAxa32NMsoey1FysXC/toNoH1MTcCeMZiKycrQqslyqwfFaSRRRSNQ7f+bbQ7SPo eeljTUr0xZHTS5WzRqo1hm3PWCwb0XnonVHf3lZBLHUzHkrMm8O8bxiJSMcJ33nkfNiK UMYkHVDwKJZ0jeO7HSAWrmgTEPpQrbdq4iHe9cZO4TS4CMQmpwxQRVnZycHqzXeFBaoi gGVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@blackwall-org.20210112.gappssmtp.com header.s=20210112 header.b=trKaLQcY; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z27-20020a637e1b000000b003816ff876bfsi2568137pgc.5.2022.03.17.09.25.50; Thu, 17 Mar 2022 09:26:04 -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=@blackwall-org.20210112.gappssmtp.com header.s=20210112 header.b=trKaLQcY; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231493AbiCQN4H (ORCPT + 99 others); Thu, 17 Mar 2022 09:56:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231376AbiCQN4E (ORCPT ); Thu, 17 Mar 2022 09:56:04 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9922EEA59 for ; Thu, 17 Mar 2022 06:54:47 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id u23so1293632ejt.1 for ; Thu, 17 Mar 2022 06:54:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=blackwall-org.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=Auj42wKcECcnklt6KoxYruKINeN/YRt0HTEgWQUvSbk=; b=trKaLQcY0Yt+MaFoeQX72QMgkuS5ppCOlNREaVS7jA73fXvLoyc7ULKKjY4nZXSvpb PAWHAjW2yBatHxPF21LM40sYwNnc0oT01X7OtZhPA65Blrr4xDZrt3YVuLS6rl3lkgGG qGdKrKHFuXoeQQ9/dhxBX4+2e5JzFER+NnKiU5FFpm/LZucICodXrX4AZJNcOwQFs4by 1HZEjYX5Ev2wrsD8Z6/cy8LNMwZrr5UseaxFnzXb3tEajr3lPLnCMXJwpnSk3XJxpJto 02FW+5u8/k7oc1hck+7sNYGTQV+G61KbOnMiUm6QlFH2vykPa7I8ht0+WeQS09VSChWa 5omQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=Auj42wKcECcnklt6KoxYruKINeN/YRt0HTEgWQUvSbk=; b=212c/sQJ2DVy7z8dNcjr5RkEs067bN6XevhwI51qAb4j+Ue176c4U/UUXpNXqeDGej XKDkrVkbV8dJzjMHwV5Zgdj348THP1rn5/AQMTvdcBmlLPufxXeoVoF36dN0O+NV9a3z cnk++rZ3MMe8TrFdQyMiOtTnesFsEW+bxfzw23nW0T5K7FGOgWlt4nmNzUj4zi+vkg16 IZh1bOZiVrj2fOvhhKmNSeDypkbJ3ZrVKeGdicWKh2iqG74gXWSDKPTfzUu0+/p63w98 J6wbpri274QGLcdLVW6vS3GIvwomUBI4+YEAPtDTwOP/XQQUZaZB4h13av+cLWUMF8+i WEpQ== X-Gm-Message-State: AOAM532tIyOa7j7MMPlYQnVCUnkMeu2r1YhqwZBXLkaYJOw2noI4hr2a vX8aqHRavO6BFjmwl2xV2A9Ibg== X-Received: by 2002:a17:907:c05:b0:6db:f118:8834 with SMTP id ga5-20020a1709070c0500b006dbf1188834mr4594601ejc.536.1647525286282; Thu, 17 Mar 2022 06:54:46 -0700 (PDT) Received: from [192.168.0.111] (87-243-81-1.ip.btc-net.bg. [87.243.81.1]) by smtp.gmail.com with ESMTPSA id t19-20020a1709060c5300b006d582121f99sm2376864ejf.36.2022.03.17.06.54.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Mar 2022 06:54:45 -0700 (PDT) Message-ID: <24add056-e0d2-bf4b-9d56-04289bedbf15@blackwall.org> Date: Thu, 17 Mar 2022 15:54:43 +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 v2 net-next 1/4] net: bridge: add fdb flag to extent locked port feature Content-Language: en-US To: Ido Schimmel , Hans Schultz Cc: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, Hans Schultz , Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , Jiri Pirko , Ivan Vecera , Roopa Prabhu , Shuah Khan , Daniel Borkmann , Ido Schimmel , linux-kernel@vger.kernel.org, bridge@lists.linux-foundation.org, linux-kselftest@vger.kernel.org References: <20220317093902.1305816-1-schultz.hans+netdev@gmail.com> <20220317093902.1305816-2-schultz.hans+netdev@gmail.com> From: Nikolay Aleksandrov In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham 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 17/03/2022 15:44, Ido Schimmel wrote: > On Thu, Mar 17, 2022 at 10:38:59AM +0100, Hans Schultz wrote: >> Add an intermediate state for clients behind a locked port to allow for >> possible opening of the port for said clients. This feature corresponds >> to the Mac-Auth and MAC Authentication Bypass (MAB) named features. The >> latter defined by Cisco. >> Only the kernel can set this FDB entry flag, while userspace can read >> the flag and remove it by deleting the FDB entry. > > Can you explain where this flag is rejected by the kernel? > > Nik, it seems the bridge ignores 'NDA_FLAGS_EXT', but I think that for > new flags we should do a better job and reject unsupported > configurations. WDYT? > Definitely, I agree. > The neighbour code will correctly reject the new flag due to > 'NTF_EXT_MASK'.