Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3557214rwl; Mon, 27 Mar 2023 16:18:16 -0700 (PDT) X-Google-Smtp-Source: AKy350aBRracWtpIU0VfxFlBTXR0b9tiGPd+IA32Z3GvAQoCSUO+VpIYuj7TzojTFtD7d8P1EP9k X-Received: by 2002:a17:90b:1a88:b0:23f:680e:78be with SMTP id ng8-20020a17090b1a8800b0023f680e78bemr13140497pjb.48.1679959096172; Mon, 27 Mar 2023 16:18:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679959096; cv=none; d=google.com; s=arc-20160816; b=T9AFnbP2xDWgbwAy9GNipGhPGoEHOmaO6Kx8ylU0oepVkN0jdWWXLEDD/KbbFfN0z6 9sMnf1wtFCPwYEVwgxqK/XcSlhjwuSFKRsk5IfYol5wS7kuCU3Ut5ToeICgrlzGr7nkN +Vlke6k1cFE0wet+RiMO0R5YtWREQuhQJdo80pYEV+JhUYdvTrfn200jHk4ck8zPVUzl y/JPv2lqbBCDyYEQTk/SxY1fDEQiOIUoM9jzOnzMJztUZU+cyRuAbxHydFBJ27ImTXf1 yufSzamrD5eEzmWB0oaQsJhhpz/msk64VZBYyo6TdIICo+uWGuu6UScFgrtrNKVczoo6 Hz8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vs0lU2V659xfolR59bwYcxi0Nnjs4lVJmYEM9MkDucs=; b=t/Z4rplvipj30CIH/qA7Q7ppf8HTBkLhLMxTPwflrpoB+/PNs8mQvuIfL2uddPaCsJ CvMyj+8MCYp9YTybze8KpnPsmExXpApWh0gF9oyWb7GIUt/G0gzH7P95MjaqdOPTki+K ZviPSyE5nsLof4PUTjTW0OVIi9VEX/MpqcRyaGb+z0VA1nA/+ACXVEhGqux6wzsdqwqX CtL2t4K620O1ru91PKNO1lopmOnPl/Le1JvdX28KPWVU7NL5owDvsXd/Gn5ahfx04AaB McfEEIgiuYLapL/rA9bVBrSe+glY4aJX+APVgtQpMXRRzC0OCKfiOux727elHDgpBzOr fa6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=kFSkbnLq; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t7-20020a632247000000b0050bd83dcd42si27709511pgm.370.2023.03.27.16.18.04; Mon, 27 Mar 2023 16:18:16 -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=@gmail.com header.s=20210112 header.b=kFSkbnLq; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229664AbjC0W7k (ORCPT + 99 others); Mon, 27 Mar 2023 18:59:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbjC0W7j (ORCPT ); Mon, 27 Mar 2023 18:59:39 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 910011FF2; Mon, 27 Mar 2023 15:59:38 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id cn12so42536442edb.4; Mon, 27 Mar 2023 15:59:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679957977; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=vs0lU2V659xfolR59bwYcxi0Nnjs4lVJmYEM9MkDucs=; b=kFSkbnLqBTXNziv2ifVthZxzOmPB3NbYEkyApURx8Oas8cCHPoSS+CWMJMLfkMaLxQ w3sBU0oRxauj492NqBP2NgItJC1pPYs7kn8NrUixuqvWmRXRZQ8HPHYwcIjs96dXvWjp kCc8POpRIpAim8K2sBnk1cfPBh1RbpSBOJBYwmF8yJbYD8hs5Zs0qFy7EGFZTsaQtx/u pwVF8TdXHKwGg54Yl6dKMbsFS4C54UWykPKT4U9BWOAjMgUl2eoKbpSU2uEIQmQwLbd0 BYfxpA3JXHG6Y8LZgt14VH7NdJl6oasHvJPk4YHThi6kd+oe59qgKHgCPPRy1yxb4dR7 CyOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679957977; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=vs0lU2V659xfolR59bwYcxi0Nnjs4lVJmYEM9MkDucs=; b=mv8ogHVt6B0+Ixmlf+GReEvSRneL3lAlvqLkhdrdtvuvzPf4Eje0ONPpiS00nu4iB7 Gsy0NNycxKWw9jG+Pi5vJZoGk+QXTPi1CRArN2vbNlJxVh30+JeIYs9aD8MVeWOLvpHy O8PhcyZDT32Ftcdg2YkQ6vpTCTJaCM/r1PGUSfTD8b7SZJjFbJ8b7/wMd8uB8E2mXknK 0GUnk+uPHGQXNIiZdkTTBuq99AYohWK/DS8iIFvobL9zKecaA72PbRTzF5L+IAxuAwZL Vn3XNX2/vR8DVdJL7Z1Ucptq/Dl3QU0sn0qH7z/N9kRWOXJhfEITGctviVE+VI+vtcTl PAYw== X-Gm-Message-State: AAQBX9cG6oQTj+oAgM2Ddc5cu7p4SRGAFnyyAJy/uIP/GtTP/8eHmiIX LPTVlOMiANLAHt+UHfhKCIM= X-Received: by 2002:a17:906:e0c5:b0:931:4f2c:4e83 with SMTP id gl5-20020a170906e0c500b009314f2c4e83mr13534033ejb.63.1679957976838; Mon, 27 Mar 2023 15:59:36 -0700 (PDT) Received: from skbuf ([188.27.184.189]) by smtp.gmail.com with ESMTPSA id z13-20020a1709064e0d00b009351565d1f5sm10994040eju.52.2023.03.27.15.59.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 15:59:36 -0700 (PDT) Date: Tue, 28 Mar 2023 01:59:33 +0300 From: Vladimir Oltean To: Hans Schultz Cc: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, Florian Fainelli , Andrew Lunn , Eric Dumazet , Paolo Abeni , Kurt Kanzenbach , Hauke Mehrtens , Woojung Huh , "maintainer:MICROCHIP KSZ SERIES ETHERNET SWITCH DRIVER" , Sean Wang , Landen Chao , DENG Qingfang , Matthias Brugger , AngeloGioacchino Del Regno , Claudiu Manoil , Alexandre Belloni , =?utf-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= , Jiri Pirko , Ivan Vecera , Roopa Prabhu , Nikolay Aleksandrov , Shuah Khan , Christian Marangi , Ido Schimmel , open list , "moderated list:ARM/Mediatek SoC support" , "moderated list:ARM/Mediatek SoC support" , "open list:RENESAS RZ/N1 A5PSW SWITCH DRIVER" , "moderated list:ETHERNET BRIDGE" , "open list:KERNEL SELFTEST FRAMEWORK" Subject: Re: [PATCH v2 net-next 2/6] net: dsa: propagate flags down towards drivers Message-ID: <20230327225933.plm5raegywbe7g2a@skbuf> References: <20230318141010.513424-1-netdev@kapio-technology.com> <20230318141010.513424-3-netdev@kapio-technology.com> <20230327115206.jk5q5l753aoelwus@skbuf> <87355qb48h.fsf@kapio-technology.com> <20230327160009.bdswnalizdv2u77z@skbuf> <87pm8tooe1.fsf@kapio-technology.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87pm8tooe1.fsf@kapio-technology.com> X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 Mon, Mar 27, 2023 at 11:49:58PM +0200, Hans Schultz wrote: > My first approach was to use the SWITCHDEV_FDB_ADD_TO_BRIDGE event > and not the SWITCHDEV_FDB_OFFLOADED event as the first would set the > external learned flag which is not aged out by the bridge. Link to patch? I don't see any SWITCHDEV_FDB_ADD_TO_BRIDGE call in either the v1: https://lore.kernel.org/netdev/20230130173429.3577450-6-netdev@kapio-technology.com/ or the RFC: https://lore.kernel.org/netdev/20230117185714.3058453-6-netdev@kapio-technology.com/ and the change log does not mention it either. > I have at some point earlier asked why there would be two quite > equivalent flags and what the difference between them are, but I didn't > get a response. Actually, the part which you are now posing as a question (what is the difference?) was part of the premise of your earlier question (there is no difference => why do we have both?). https://lore.kernel.org/netdev/d972e76bed896b229d9df4da81ad8eb4@kapio-technology.com/ I believe that no one answered because the question was confused and it wasn't really clear what you were asking. > > Now I see the difference and that I cannot use the offloaded flag > without changing the behaviour of the system as I actually change the > behaviour of the offloaded flag in this version of the patch-set. > > So if the idea of a 'synthetically' learned fdb entry from the driver > using the SWITCHDEV_FDB_ADD_TO_BRIDGE event from the driver towards the > bridge instead is accepted, I can go with that? > (thus removing all the changes in the patch-set regarding the offloaded > flag ofcourse) which idea is that, again?