Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp212058rwb; Fri, 2 Sep 2022 12:47:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR6bfRl7r0O6TaJp5E4hFIJIqOLPjn+nViSIfdwT8xcFRbN/PQ94rWGsqFJPBL6/ztwrYbf4 X-Received: by 2002:a17:907:d8b:b0:741:855e:f154 with SMTP id go11-20020a1709070d8b00b00741855ef154mr18798894ejc.231.1662148074288; Fri, 02 Sep 2022 12:47:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662148074; cv=none; d=google.com; s=arc-20160816; b=EN+dhzbssr0blbaaHDSBya7bhQ9Fsfs5vjmEChdmqwgX/Tm+1Y75bKAiL7ws2j2GUc pvJVxHoXyD6DLKo1Z6SS9Z4XiYpx9NPQZGNlODPgshXj4T6gfpH4gK8zroIRpZgt1acE amkBkfAb7hNMjenQAozqGJUGoVnqugWtFS6Jp13Zfg92Ty3M4BRdi/ODwNbm1w/0x8pj 0Fe0egKqjCGI++wFWGIQPn3B3+6a6M5vhP39YNUxve0udvZZ33mgrBCaVXN6lhaDn4NM VQMtvuY3uPj8heyliEOHUFLlJtjkgMXXxgv/jUZOhIHfVGPTqbRgCxGbqwMOAFBA8oXs UYUA== 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=DVxDeaXZfKNHhIDqZtli0aAYoHM/3xsPWidZamTX/6Y=; b=M9enxU21WoNZdfChOLpIsxDatcOWRY3RsYpdMKuJzmrNugOm1AO0mPAyXHLeRbDOmw K+pL5ZEzQOwX9ygg577RI2smMayIZ7ltMLN5kXKUMY4ZeCQANCjDc0plIXmedIZDyI4k cimWPfSVusZnKlkjLxvALjd+oCy+EgHobc8Zt4LB2CQAGbNDxfSoPcnqKKHYoxXY7k1m SW515eUuU6yBQNwiOUOiyHhpbg/lmgQ43KR+YENaDMlNvsl7vCcGb9qiTIYMYwX/RHX4 /D4RNmMnAkzgRNU5h5pSlN5wAqRAabCJjykyFBIApsXFgaBQmbJlpo47Z3XNSzTS94eY 6UzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=APLqfOR9; 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 h10-20020a05640250ca00b00446dc8f5e44si499981edb.243.2022.09.02.12.47.27; Fri, 02 Sep 2022 12:47:54 -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=APLqfOR9; 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 S229849AbiIBSkN (ORCPT + 99 others); Fri, 2 Sep 2022 14:40:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229669AbiIBSkL (ORCPT ); Fri, 2 Sep 2022 14:40:11 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE19E6E8AA; Fri, 2 Sep 2022 11:40:09 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id gb36so5523580ejc.10; Fri, 02 Sep 2022 11:40:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=DVxDeaXZfKNHhIDqZtli0aAYoHM/3xsPWidZamTX/6Y=; b=APLqfOR9MAYorEatAahNmr8hGYTR8+l/WKnO2DMs1juMWCmu3b8Y7otG0f6qe29tRb LwjPlcGqB7CRfQHDhVScHpFHMB3nA8SPEQB6tiriF1FhTT7PwmGzgNkwlPmduusrjLVj fZ8bV4E9KgZYQ/6/xOYZxgAu5+EIpUMR5Nb3CLJdiJjHswLRgNDzjcoOtHPOJQdUn5zC Bt9iU8Ge6KjSzCZDeWKYQdhYwmGCB8yOW+gXOv8UtskJZMulyWVLOpeJVe6jmPaBu+6Y L4rvNpaUL9boZ/ajqNrRJx7xXXvSUg2SM93bbrYTtsCh9scySB9jehQrWqSSlEASR/DZ 9viw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=DVxDeaXZfKNHhIDqZtli0aAYoHM/3xsPWidZamTX/6Y=; b=h5xUouE9TmnJOnV2ioYFauqXAAmzdlQ/OkgCQWt9fKC8ELlrG/jhxabI/qglHQbLjs Q9NBGo0RMZgG3tnFKvjNxaTFyDNyAceiDu1Czp/F1XMJdwUDtipKnMgnmK4bkG5ANynm bxi6j3oMqSkT+OkVCzw3RlblWZ+m+Uhtn4i+HgUW1867ViLcaaHuIYh/JXfujlsEknhW zorr3FuK832YFChOybecZ1ugnrD1y0FJpuNKeOs/x1TmsHY9IuwC9cp+Vo4iMBLMmm0p FOcdmNsvNM8qxWLfdW+LQCbnwWaEFUzRPee7MYYpZnYef7UYhZ3M4SD/JKcT8RGNiE5a Jn6g== X-Gm-Message-State: ACgBeo1t8EMMt//rGqBVUsnpFMfJA7HH6Ss3XQ4bBioXZw3o6d9/dtX+ LXXovUk6uYhWgCPZJkVKXfo= X-Received: by 2002:a17:906:8251:b0:741:7a62:2376 with SMTP id f17-20020a170906825100b007417a622376mr17971060ejx.689.1662144008166; Fri, 02 Sep 2022 11:40:08 -0700 (PDT) Received: from skbuf ([188.27.184.197]) by smtp.gmail.com with ESMTPSA id 9-20020a170906210900b0073d61238ae1sm1572560ejt.83.2022.09.02.11.40.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Sep 2022 11:40:07 -0700 (PDT) Date: Fri, 2 Sep 2022 21:40:04 +0300 From: Vladimir Oltean To: Florian Fainelli Cc: Vladimir Oltean , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Vivien Didelot , Andrew Lunn , Claudiu Manoil , Alexandre Belloni , "UNGLinuxDriver@microchip.com" , Colin Foster , Roopa Prabhu , Nikolay Aleksandrov , Tobias Waldekranz , Marek =?utf-8?B?QmVow7pu?= , Ansuel Smith , DENG Qingfang , Alvin =?utf-8?Q?=C5=A0ipraga?= , Linus Walleij , Luiz Angelo Daros de Luca , Felix Fietkau , John Crispin , Sean Wang Subject: Re: [PATCH net-next 0/9] DSA changes for multiple CPU ports (part 4) Message-ID: <20220902184004.6tpxo4vdwkqb3fso@skbuf> References: <20220830195932.683432-1-vladimir.oltean@nxp.com> <20220902103145.faccoawnaqh6cn3r@skbuf> <3da14763-b495-77eb-e059-b62e496ba7e7@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3da14763-b495-77eb-e059-b62e496ba7e7@gmail.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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 Fri, Sep 02, 2022 at 11:33:31AM -0700, Florian Fainelli wrote: > > at some point I was thinking we could change the way in which dsa_loop > > probes, and allow dynamic creation of such interfaces using RTM_NEWLINK; > > but looking closer at that, it's a bit more complicated, since we'd need > > to attach dsa_loop user ports to a virtual switch, and probe all ports > > at the same time rather than one by one. > > Yes, not sure the custom netlink operations would be the preferred way of > doing that configuration, maybe module parameters and/or debugfs might just > do? Yeah, or make dsa_loop OF-based and just insert a device tree overlay, something of that sort, I'd guess. So it's likely that we won't be extending the DSA rtnl_link_ops too much in the future. However, it's also likely that "writable iflink" isn't going to be very useful for other virtual netdevices except DSA, either. So the argument goes both ways. And while the writable iflink requires a new ndo operation, the IFLA_DSA_MASTER can be handled 100% within DSA. I don't know, I'm just rambling, I'm open to suggestions.