Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp217880iol; Sat, 11 Jun 2022 02:33:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySe8qLAZN4xmnmnD0nfnIf3IS9R2+eer4wr1cCuxiqMF+HRfvfL8katPaxryB+uHYMX8NF X-Received: by 2002:a63:5a58:0:b0:3fb:b455:ed15 with SMTP id k24-20020a635a58000000b003fbb455ed15mr43087148pgm.228.1654940000991; Sat, 11 Jun 2022 02:33:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654940000; cv=none; d=google.com; s=arc-20160816; b=DYLi+lzcR0fy4l7PndybyM6w+Cn+QEvsHddHO0oZewWeyf/ZFcREiNh569xeQMWXDV LOssnpc43hefc8Zc5EROyLwGg7jqUJVtrb1Ph9/pPQnAov/KpveMlOqrpNWCxaZhs43V xH0QZiyUlSBq5GbH8ZoSH8tQx5eRwh7+Py7rLJ1Gj+cmeOE1+WeeqXAP3PlikF/IVnoX 7L6KTiOUgSKLa48bKlgRLsBqYEhMWIy4lCxPtmf/QWIkw9jsN7Ky07qEEuJgzc1AIDgk MdJaT1hnKyZpfnSR0EOxh1KzNtwee9VaDhmPEiD+B3I3sJJzAykz2QxEhBuq6MK1b6GB Ff9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=4OIcTd4BTWyKSP1yog4qEZHC3BhKMHmBvPfV6zjJ0EA=; b=s/FgS25XpxpQwwzbO46r+OAh1gYKCS5DvkNFcVg5NWhpaKEnup/sO5Xit7u1MxIYro /dkvEIqgKvaJ/r7UvX118tBaeLacMXiG03RedlCePFa5ruQMQ3jwxYjHKZyOzeLo5LKb de2M8UKOy7lNq2e4b8oVB00/ATqrqFOiEOo1doSDxUq7c0RZNoggjCQia2olwc5EFF8m qMBkn1xDMM3vsX7VJu6pKvt+A8bBYV4Xymh/T2eXOdCXuEeJwalGNTLeL13rffm9EL8w 58CoKwj+hYgsZZCqOygGusabpAlwbl/dzdmKuEIRxV35/jOJqzo4d0tKfRqtP53ksi7z wXeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B2yosn8u; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pc18-20020a17090b3b9200b001dc7b989160si1826640pjb.130.2022.06.11.02.33.08; Sat, 11 Jun 2022 02:33:20 -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=@kernel.org header.s=k20201202 header.b=B2yosn8u; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348965AbiFKFoR (ORCPT + 99 others); Sat, 11 Jun 2022 01:44:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229650AbiFKFoN (ORCPT ); Sat, 11 Jun 2022 01:44:13 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6533110E; Fri, 10 Jun 2022 22:44:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 6E3ADCE39A2; Sat, 11 Jun 2022 05:44:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 516A0C34116; Sat, 11 Jun 2022 05:44:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654926248; bh=bNJ/EL0jamyP3ajtQm3Cp8mZ0bWZwskKQfExHfBnmMU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=B2yosn8uvfbrKAOZHzdoOpCDU8RmlYKVMSplAT7FxaoouqYZBeX72btIDo8UKNNSu wNxSWs6XantGFr2v7xV58Um8FlKs3pL0GIyHua2DdhDGAwBKFR4bE3DlCf2XqsGsPL 64AC++OcwLstXPPY3y/IrCheS1L7XD1/u8r/41JNz04b/jR1n/YTbPXlCWLDDLtJRU Q2vjGZuFZkyVB5+sV53NwK3L7xYdp1fznIr7h0zxYyVFTnhCMRl5gF9IgBZNP9NOQZ 2Z2/qCMTFs2lSiMYLf2Plt5j6ojSdSuEVcc/2yyw8FyKH9Kf9uQ/7NeI1yJyCQma53 hMmSQTtRMon2g== Date: Fri, 10 Jun 2022 22:44:07 -0700 From: Jakub Kicinski To: Jiaqing Zhao Cc: Samuel Mendoza-Jonas , "David S . Miller" , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org Subject: Re: [PATCH v2 0/6] Configurable VLAN mode for NCSI driver Message-ID: <20220610224407.4e58dc5a@kernel.org> In-Reply-To: <6f067302-74a8-702f-bf38-4477a805a528@linux.intel.com> References: <20220610165940.2326777-1-jiaqing.zhao@linux.intel.com> <20220610130903.0386c0d9@kernel.org> <3c9fa928-f416-3526-be23-12644d18db3b@linux.intel.com> <20220610214506.74c3f89c@kernel.org> <6f067302-74a8-702f-bf38-4477a805a528@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Sat, 11 Jun 2022 13:18:51 +0800 Jiaqing Zhao wrote: > All ncsi devices uses the same driver as they uses same command set, > so the driver doesn't know what modes are supported. And in current > driver, the vlan related parameters are configured when registering > the device, adding an ncsi-netlink command to do so seems to be > unsuitable. Maybe you could draw a diagram? NC-SI is a bit confusing. > And adding a netlink command requires extra application in userspace > to switch the mode. In my opinion, it would be more user-friendly to > make it usable on boot. Unfortunately convenience is not reason to start adding system config into DT. > Netdev also does not work as the ncsi device itself does not have > its own netdev, the netdev comes from the mac device. For different > vlan modes, the netdev feature set of its parent mac device are the > same. You say that, yet the command handling already takes into account the VLAN list: if (list_empty(&ndp->vlan_vids)) { which come from the MAC netdev. What's wrong with setting the filtering mode based on NETIF_F_HW_VLAN_CTAG_FILTER ?