Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4828242rwb; Tue, 20 Sep 2022 22:02:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7yU30jb3Ux+pPFLckyAQdhJN+GXTxm7njFx8RR6Hvr3W0j8sNkPw6ms96J2mhxdmDjxiBt X-Received: by 2002:a63:1e11:0:b0:41c:d233:31f8 with SMTP id e17-20020a631e11000000b0041cd23331f8mr23141576pge.228.1663736565562; Tue, 20 Sep 2022 22:02:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663736565; cv=none; d=google.com; s=arc-20160816; b=o4xyz/yet4Ct4b/z6K6ptMB0lSUQXyrF7Uud8H3J/6fkLqklwir5YsRyzpfNZNRGbt zN1c/exV4TqRGzigy0JAWhKV3F2vgqeeIHo4ZKEg9h3qb2GA5enEojrfPe6lLu+GLgfW mUpAOjMHYc2lLWmJ8KgpZpuntlG9Bv0aw2/GXvYMZy2wm4fIJwajHRdRoSI+mwsKdqh/ 0fjlSHkYKzsPp3DEtrdqsHyz/huo79l035Z2V3NWTi5xxqk7pvyDRpiuOrI4rRR5aNcR uKStQLOwRVe1oO8i8Ktl7WmCegDI2wAJQlUK9d2SGtgJd1pQih7A2TANhhBJmhqhdjS0 typA== 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=qzk5oLYbYGm3BHnsgSBtDHRCJL48j9t8HeQTS7gm2wg=; b=v/mI5zwss2eHjjAf30OXdaz5K6Cnl3odNh77jGS/zgjKj4XD1GIbD18oVrABj3QTtR hON986n8SdcQ16CNrtfowhIgyRSJ+rIA7Y1GTzFpBXrVEOFEs6KakL4B44Qe68dFci5G EXp2LZDPFtxUToeSSvYh+XZW4FZBVcUb/zJUHLsJWq27aTAU72/L5/Akc/N/KLvv9bdy aIyYs86qJUEpmFdac2ar//CtD29jnW584aaJBsBsfeSDc9DiWViRthszTQ0d+W5xbCLg d/FaqKudb6SXXaZVY5Qu70oX3vpys0S+O0MMU/6GdIEzaTFhrEaRfX2t5HCGqts/Ty2b E9pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@blackwall-org.20210112.gappssmtp.com header.s=20210112 header.b=JxUWNI8T; 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 v2-20020a17090ac90200b002039b4cef32si1757894pjt.20.2022.09.20.22.02.12; Tue, 20 Sep 2022 22:02: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=@blackwall-org.20210112.gappssmtp.com header.s=20210112 header.b=JxUWNI8T; 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 S229990AbiIUEpP (ORCPT + 99 others); Wed, 21 Sep 2022 00:45:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230116AbiIUEpN (ORCPT ); Wed, 21 Sep 2022 00:45:13 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FC4B476FE for ; Tue, 20 Sep 2022 21:45:11 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id y8so6830752edc.10 for ; Tue, 20 Sep 2022 21:45: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:subject:date; bh=qzk5oLYbYGm3BHnsgSBtDHRCJL48j9t8HeQTS7gm2wg=; b=JxUWNI8TIHdFgVW1ngZne2CkuOQxif+pa+WY88wq2PlopW0EDUDjqn5HpjeYYMv+i0 KViOt3GPgDmkyqt1Z/qhvKgj0X4/bRphKTWbn6kPseH6bvajEKRR7pcj9uFjlpwWBAqh 30uffDwipf38NBdVVSL6ejnuz1edkAxWTwUk7c4HnyUzPHmH82KXM046fdsnIIejakaa 1IUmrViZEXVLRgEc5tjo2skcoQDycenjeh7l4cZmyYa8KG8ccAlPiLR7BmWBofJ5cwYJ 3d3HwK9T9JFItsMEdseerz+vKXidMCitosRO75NmfH0r9/U+IlUQsJV7i+L9Rk01xnwy acXA== 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:subject:date; bh=qzk5oLYbYGm3BHnsgSBtDHRCJL48j9t8HeQTS7gm2wg=; b=E2Q1MP6kFbrKeh7+Z8em4Xk15A4YlAWKyYpWOAe4wIcP7UYpzWOSpwyS30kPM5mGb1 8qXDxBN9qIFtj+D1VPRo2nRdm4/stqCmNcPW4enBRZpHbq/SBA9K2n8Jo62nSmKD3+iz 0LGW7FwUcC7Gm9qIai5JTE1cnxPUI1kefjujM71mum23cPoQI7sky82aQdRx9kVtw3XJ ZAbnTK7cknbXtpy+PAepCYc+vEdrl/JMWQ/JFsTyR+hELgcLj39U3vMzZGwsym8LlQ8V pslbUKjFURjWFgcqVShGYycgsRSzKT963CIJM6KaKs7/7mAmbFmJ2VGYyPhVRpRpenjx GP8w== X-Gm-Message-State: ACrzQf0dnJ5x1bEfsY2cNo//XppCcidXNB0ok5VSMzaQzsffM8YghrLQ ill5J05763/Oaobt5VPMCl0ybA== X-Received: by 2002:aa7:d718:0:b0:454:5899:9eb0 with SMTP id t24-20020aa7d718000000b0045458999eb0mr7685676edq.37.1663735509924; Tue, 20 Sep 2022 21:45:09 -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 kx15-20020a170907774f00b0073dc8d0eabesm806342ejc.15.2022.09.20.21.45.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Sep 2022 21:45:09 -0700 (PDT) Message-ID: <3f2d6682-7c5c-5a6d-110b-568331650949@blackwall.org> Date: Wed, 21 Sep 2022 07:45:07 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1 Subject: Re: [PATCH RFC net-next 0/5] net: vlan: fix bridge binding behavior and add selftests Content-Language: en-US To: Jakub Kicinski Cc: Sevinj Aghayeva , netdev@vger.kernel.org, "David S. Miller" , aroulin@nvidia.com, sbrivio@redhat.com, roopa@nvidia.com, Eric Dumazet , Paolo Abeni , linux-kernel@vger.kernel.org, bridge@lists.linux-foundation.org References: <78bd0e54-4ee3-bd3c-2154-9eb8b9a70497@blackwall.org> <20220920162954.1f4aaf7b@kernel.org> From: Nikolay Aleksandrov In-Reply-To: <20220920162954.1f4aaf7b@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE 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 21/09/2022 02:29, Jakub Kicinski wrote: > On Tue, 20 Sep 2022 12:16:26 +0300 Nikolay Aleksandrov wrote: >> The set looks good to me, the bridge and vlan direct dependency is gone and >> the new notification type is used for passing link type specific info. > > IDK, vlan knows it's calling the bridge: > > + if ((vlan->flags ^ old_flags) & VLAN_FLAG_BRIDGE_BINDING && > + netif_is_bridge_master(vlan->real_dev)) { > This one is more of an optimization so notifications are sent only when the bridge is involved, it can be removed if other interested parties show up. > bridge knows it's vlan calling: > > + if (is_vlan_dev(dev)) { > + br_vlan_device_event(dev, event, ptr); > > going thru the generic NETDEV notifier seems odd. > > If this is just to avoid the dependency we can perhaps add a stub > like net/ipv4/udp_tunnel_stub.c ? > I suggested the notifier to be more generic and be able to re-use it for other link types although I don't have other use cases in mind right now. Stubs are an alternative as long as they and their lifetime are properly managed. I don't have a strong preference here so if you prefer stubs I'm good. >> If the others are ok with it I think you can send it as non-RFC, but I'd give it >> a few more days at least. :) Cheers, Nik