Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1489351rwe; Sat, 27 Aug 2022 09:12:06 -0700 (PDT) X-Google-Smtp-Source: AA6agR7XcJjUF6mkvBTsrEL2PrXdcspM6LvtC+LURpZB05OwiBALEVQrj6X+57Gk/fWKV4yDbAuU X-Received: by 2002:a17:907:3f22:b0:73d:9a03:2abf with SMTP id hq34-20020a1709073f2200b0073d9a032abfmr8307896ejc.518.1661616726532; Sat, 27 Aug 2022 09:12:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661616726; cv=none; d=google.com; s=arc-20160816; b=lGj21vPtgsbRP+kSjPJ/ur5gIr4SsHhQl9m6LgSCEUD7kBmMSMGHc3h+yucJei9kHP rScoxLyUH7YX9QRYiHU6qiuiDGzMuxfhDKhNrIWgL+CLNWJNWRoO0hsrKNc65oeRBOnl 7Ha5R2EqtYv5ejzgp0YgkCm5EpPsVWQU0sx3Ortuhuhgmmz/tp/m6UAk+KXXvgWlRRxH laUjg2D6go5yJsr3b2g3ibcloUk8ycGNoDH8AIb3lOPi5Zv33ioJymICF9Jg4qASCDh/ 704uNBFbciqLWnzdibm2cLPF1OAp4Lj5G4btjvb0+/bXMajIjIGUGQ0fHKEr8le0SU9R YCPA== 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=3YczR2Egl4ZFRyscdYYWi5wk2fHwMzSOUnVWfHdBreM=; b=sBBD1CMuzud3eGTG5vfLWEIeDT2520jg/S2AUjPNK+j0lEAr4VihIL9vqp1Wmblihz GIBdpbdiHOn85Mt4Av1jIWKNI72cQO9nEtAC1cv6qkk7r5q9mVwqybwuenz3NQZlF38d QEmO4jQai7VQmvo9tqZqGh20pkW48NY57WC29KhHgIiJO+/t5NBOEhUiiPuuzIte7OB4 pQ9M2EUwu3v7+6wo1g/Thm23SuSO/sxgU1XEJX1XdQRkG3lDbjvbvJDQ3EY3WJiDenhF K0Tk7YoDOKqBeot0wrwH35lODZE4f4bJjGZa/I/0FEi8TJsIOkEyDOaZNsgMomSk3Z7U GCZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@blackwall-org.20210112.gappssmtp.com header.s=20210112 header.b=XzCjQYL7; 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 ho41-20020a1709070ea900b00732f74ed931si3789179ejc.793.2022.08.27.09.11.36; Sat, 27 Aug 2022 09:12:06 -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=XzCjQYL7; 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 S233264AbiH0PwP (ORCPT + 99 others); Sat, 27 Aug 2022 11:52:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233552AbiH0PwN (ORCPT ); Sat, 27 Aug 2022 11:52:13 -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 B4BAD2F653 for ; Sat, 27 Aug 2022 08:52:11 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id gb36so8097315ejc.10 for ; Sat, 27 Aug 2022 08:52:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=blackwall-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=3YczR2Egl4ZFRyscdYYWi5wk2fHwMzSOUnVWfHdBreM=; b=XzCjQYL7pcKNpZS+XZ/jvaKcz044RvIp2Kqny5OT1idIVch+NIlfnHsadgKWYFDb0E LrNd0hKaoyAkJgnlUbgT753luKRo2WarLndU46VH401AIJex/4AHi+GjE2AERqIw4E67 KcTGvWm0Cb47y9tZiiVeDXe5aGt3zgsJdX1yvhdGB9sF/Z6qTtvJ64moVxFbEZ3rr5yl pikp+Km8ABi40dgWtLH8Rsk1foqkvANAJBLYdZG/VUu8A9htUuS+ZXPGuaLcw/QxhNIa TflL902OKXy2G0jqaGBSpTTwIag6f4IKoc6DsHiVXpu3AccPpZkYXLscSaqqcDhfEPOK 8xYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=3YczR2Egl4ZFRyscdYYWi5wk2fHwMzSOUnVWfHdBreM=; b=oFfNkcId1hmCiDqLRladv9Ru5Pp9Z968bEWfjA8yI0lf++jVYc97o+MtWTY1FCzXU3 7b8i0LBBVuRjpoG7lg9ds0TPye9ynyNe3vaj7dAn/xVEyo9zwJqhOKR2AP0DNVrHz72R Jt1MEqT9PKl6cJ8MYMvQHbSgMiy23KqcgWqOx4l+4ngkEZNUrn4bNs6HCLnkIwoFBr0o SIY7c/g9UFKqKwkQwicf/uClw/FQtC6MxjknuVUU1zf/2S+lGyvwtVsvepOmiDc6MLMt GkF0LMICPZ6l1yZMsrKnqQfW+Os6yQKpoLDeuLER2UPTufD6Uax1ISvGDr0DR/+lJdLd eVWQ== X-Gm-Message-State: ACgBeo2hrhkmMy2GmFDpunGzLzpSE0li9D3u0QpSiOLP4yZs40kWfyyJ /vXUEyXFEbu910FmDthhELnmgA== X-Received: by 2002:a17:907:724e:b0:740:e3e5:c01d with SMTP id ds14-20020a170907724e00b00740e3e5c01dmr4496051ejc.38.1661615530225; Sat, 27 Aug 2022 08:52:10 -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 z13-20020a05640235cd00b0044847e0e8ccsm257324edc.28.2022.08.27.08.52.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 27 Aug 2022 08:52:09 -0700 (PDT) Message-ID: <80c8a02f-95b9-8e96-b05c-016b43876c15@blackwall.org> Date: Sat, 27 Aug 2022 18:52:07 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH v5 net-next 2/6] net: switchdev: add support for offloading of fdb locked flag Content-Language: en-US To: Ido Schimmel , Hans Schultz Cc: 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 References: <20220826114538.705433-1-netdev@kapio-technology.com> <20220826114538.705433-3-netdev@kapio-technology.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=unavailable 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 27/08/2022 18:46, Ido Schimmel wrote: > On Fri, Aug 26, 2022 at 01:45:34PM +0200, Hans Schultz wrote: >> diff --git a/include/net/switchdev.h b/include/net/switchdev.h >> index 7dcdc97c0bc3..437945179373 100644 >> --- a/include/net/switchdev.h >> +++ b/include/net/switchdev.h >> @@ -247,7 +247,10 @@ struct switchdev_notifier_fdb_info { >> const unsigned char *addr; >> u16 vid; >> u8 added_by_user:1, >> + sticky:1, > > If mv88e6xxx reports entries with 'is_local=1, locked=1, blackhole=1', > then the 'sticky' bit can be removed for now (we will need it some day > to support sticky entries notified from the bridge). This takes care of > the discrepancy Nik mentioned here: > > https://lore.kernel.org/netdev/d1de0337-ae16-7dca-b212-1a4e85129c31@blackwall.org/ > +1 >> is_local:1, >> + locked:1, >> + blackhole:1, >> offloaded:1; >> };