Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp165580rwb; Fri, 2 Sep 2022 12:01:07 -0700 (PDT) X-Google-Smtp-Source: AA6agR41QsZVInRQnmZX9tilYUNZ5z7Y/1cx7cc0VGFKur6A7CH9xkLce4ZI8YoLO466fpK2drCz X-Received: by 2002:a17:90a:f2cb:b0:1fd:90a0:56e3 with SMTP id gt11-20020a17090af2cb00b001fd90a056e3mr6266997pjb.113.1662145267695; Fri, 02 Sep 2022 12:01:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662145267; cv=none; d=google.com; s=arc-20160816; b=itTsrMYB4RmBXbUMB5f5kCiVm+xvX5jI5Q6KYIeoYWFK7Wf7QpS73abfFRYWf1ARn9 P6/yWYkOe3d74ipLP1NXN0i0MPqlSuU03cOdtKH3nJdHpVvDwADi/wmJm3yzcsEaC8J0 zZvwVjoAKshgfwedTZY41pPGyWs09pNHBjiUBUydKV5kgHbz+qIRvwRRtg0+/Z5WNfkP jT+2dGHzPSHUzoWaO6nOAgWjAwyh+FZgqaVBLL5TTWYGSzmbnnaSSI6W/X0y1Eq5dL3B ERiiQM5WDg+Sqwh6VMFCN9Leau4Lzp4QF+IxbkdRzOEnSMHVrPVbI9Z5asef7tfwNGvJ anfA== 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=TEI0nxrVBWBFOQaEAjvZIRHd2jI+9SmL2JIPt5lbWq4=; b=rwnfRA7qSKBFI0wjeR+IWODzbNTtMSuqntaXU36Fa/c1PXAvJLgD3WhtBDZC/FfvP0 lhjItns1yXLlXd1x66a+BImUlNfcnXn95nqmG4QEJimMY+FKuFgSKtAUXf+gcT8W++FT olPcj3a3MWOlAHH2zTSZWO8SArCDmM7leC6rR/fLvy2jd/FuffgGpz5T53fK1+2gJsxj unqt1cL+Px8KO947u7HKKeN5TV3hjw6YTWD6XkSBhubrM2pVs/5eNGk8iDjJrmhqCw6J OsmlgHCAnQbd+XJkGC6ueozHGj12s/fftODX9H7lvIDR+PZRehdWh5U53A1AKBnPXB3w t9bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=X80nm1ev; 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 k15-20020a170902c40f00b0016362d70cf1si3090503plk.50.2022.09.02.12.00.54; Fri, 02 Sep 2022 12:01:07 -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=X80nm1ev; 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 S229633AbiIBSdi (ORCPT + 99 others); Fri, 2 Sep 2022 14:33:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229506AbiIBSdh (ORCPT ); Fri, 2 Sep 2022 14:33:37 -0400 Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 366FDA9C10; Fri, 2 Sep 2022 11:33:36 -0700 (PDT) Received: by mail-qt1-x831.google.com with SMTP id x5so2127658qtv.9; Fri, 02 Sep 2022 11:33:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.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=TEI0nxrVBWBFOQaEAjvZIRHd2jI+9SmL2JIPt5lbWq4=; b=X80nm1eviVwXyMpIzzgJbUrD6+9oNZTLdqZTFHEX8L0SVtdxs+VZTG1SGfUavPFOhp dn5zBCMfFbzBjykSnGcYOUVwbJJWzIhz6DI4BYzLd1bLxNsIzde2tlvvgZmuVdIiBKsA uIoFucEi3xoEMvaOIgUg30SwqAdVsWfGgbSe+6kqEfCUdcncsj31DXzEXtk6H9pRj31L XjdMG+nC40E7rrA1R9Hm8BpjvvuXSx24wBfYR+5gvcrJtNyBVgXie/QrnywSkE2rZY8w JA+bRD6PaFOgzSkI1guxdCkhz8JpA79c+zEdhWuYF16W2T0WxCvxSyAhqSPB8e+L74j0 kkCQ== 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=TEI0nxrVBWBFOQaEAjvZIRHd2jI+9SmL2JIPt5lbWq4=; b=iNVGLM5tMzyhKMQ4EC+hyPR/CtAhUx1Ul6nnxTcPrD06a9O7SNizEim5TKU2oIX/4J fc2MPsmxD5MFeTFslvGpQKFMQKpkkvCtaFM0MNSNncaNQc/3QG7zt/f/CsRrodCM7KZx 9rhC7akLCTCY8JIEkVJFmvWu5H2K9ntWXdn506Re3mGP0LdJnzga8rMrUgrPzhLxdpSh GwN5YJZTAdjDIwIQt72Lp37dFvjjoWw3Eu9FEDpPQwxmUw/++pFo/r/njnEofSLWEBjx ot+UErgeJKx6dznjLC7PBR26jXGLIXc9TapD0rCIs7VhhCbbrd1mrPUfhZii9F0HVL+W P1mQ== X-Gm-Message-State: ACgBeo2ByvR4d7TjIPpBLHTGk7UyW7TuJKmA6E/pNgIl4D+QG0hVf/yn I0Op5XJDN2io2WFxtlLuQo0= X-Received: by 2002:a05:622a:1ba9:b0:343:786c:3bb1 with SMTP id bp41-20020a05622a1ba900b00343786c3bb1mr28906084qtb.125.1662143615303; Fri, 02 Sep 2022 11:33:35 -0700 (PDT) Received: from [192.168.1.3] (ip72-194-116-95.oc.oc.cox.net. [72.194.116.95]) by smtp.gmail.com with ESMTPSA id q29-20020a37f71d000000b006b615cd8c13sm1760638qkj.106.2022.09.02.11.33.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 Sep 2022 11:33:34 -0700 (PDT) Message-ID: <3da14763-b495-77eb-e059-b62e496ba7e7@gmail.com> Date: Fri, 2 Sep 2022 11:33:31 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1 Subject: Re: [PATCH net-next 0/9] DSA changes for multiple CPU ports (part 4) Content-Language: en-US To: Vladimir Oltean , "netdev@vger.kernel.org" Cc: "linux-kernel@vger.kernel.org" , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Vivien Didelot , Andrew Lunn , Vladimir Oltean , Claudiu Manoil , Alexandre Belloni , "UNGLinuxDriver@microchip.com" , Colin Foster , Roopa Prabhu , Nikolay Aleksandrov , Tobias Waldekranz , =?UTF-8?Q?Marek_Beh=c3=ban?= , Ansuel Smith , DENG Qingfang , =?UTF-8?Q?Alvin_=c5=a0ipraga?= , Linus Walleij , Luiz Angelo Daros de Luca , Felix Fietkau , John Crispin , Sean Wang References: <20220830195932.683432-1-vladimir.oltean@nxp.com> <20220902103145.faccoawnaqh6cn3r@skbuf> From: Florian Fainelli In-Reply-To: <20220902103145.faccoawnaqh6cn3r@skbuf> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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,NICE_REPLY_A, 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 9/2/2022 3:31 AM, Vladimir Oltean wrote: > On Tue, Aug 30, 2022 at 10:59:23PM +0300, Vladimir Oltean wrote: >> This series represents the final part of that effort. We have: >> >> - the introduction of new UAPI in the form of IFLA_DSA_MASTER > > Call for opinions: when I resend this, should I keep rtnl_link_ops, > or should I do what Marek attempted to do, and make the existing iflink > between a user port and its master writable from user space? > https://lore.kernel.org/netdev/20190824024251.4542-4-marek.behun@nic.cz/ > > I'm not sure if we have that many more use cases for rtnl_link_ops.. It's a bit hard to see one right now, I agree. > 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? -- Florian