Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp433498ybm; Tue, 26 May 2020 22:09:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcHySKeTWdu4v9d7WcXC742Q+Y7hxGe1FljMGGr60uqqZjRvywge8OwIewpQxbFGFcAZNv X-Received: by 2002:a05:6402:31b5:: with SMTP id dj21mr23903529edb.160.1590556155337; Tue, 26 May 2020 22:09:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590556155; cv=none; d=google.com; s=arc-20160816; b=TLO03/PHmSt5ffg5oAaSOnllY1EQMjcGxIhdoMIF59z3nF5QIo/HC4cleKvVKCweHY ghq5JfAK3nmz5wsmr/Hrrez7DL4mXa0tXPO551QIdgDsFlRASGO6ONzJ+7/K2czDE7zj uKEqo0ScQWFEE9QM89lHeEe3MTuvO/jP77etL3MuEDBYnZHslYu7NttwXY2yJSlbTUEX XXBuH9n04Xq9EhcWLDsOCXDq0rueUazr05u0N8DtXCpaay4yZFUI+8uNrfjTCIFUd9D4 tVassU/KNaG2IGgBvPMvF2cDWjFKg9eMTDjlBxtA3WMeDUBXMDjXuUIoAqQdgKg+ZX2Q aa0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject; bh=DvVRkYzBZFiSBqv6crKbQviHkNIOo53imB+XRG+o4u4=; b=0nudG15Hcn94qJe7kgrRWU113nTnSvgOJJONMeD1Wqp2blBf9bchLOdjtLBGg9QTwN mUPKew1kFhhlA/4X6YkSeqJgQv5+7waZwNBOX8tkGG8ealA+RtbYpvf/7jPBdSq1YNxQ dzbbEuAkXFWKwvYswn5hAMl/kXzHU0bu6YV6cNGZPSpWeebu7PX7apaEXizV0ShDNMdj kcCgnDX7/5Dfh2WB0l+hW5SethD8Gmvjr3jurptMzE5AoCCmW1EHckwnDy/uLphb0Fnn ATQmvzlSIEbvpboV+yPOlLPWtvjxftJoPFsR1xE8e3u2cVQ167kMEOb5kRsdiyFIrd9w rkog== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm15si1356842ejc.728.2020.05.26.22.08.52; Tue, 26 May 2020 22:09:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727867AbgE0CcK (ORCPT + 99 others); Tue, 26 May 2020 22:32:10 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:44830 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725267AbgE0CcK (ORCPT ); Tue, 26 May 2020 22:32:10 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id C8BF9F07DF5CA9384084; Wed, 27 May 2020 10:32:06 +0800 (CST) Received: from [127.0.0.1] (10.74.149.191) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Wed, 27 May 2020 10:31:58 +0800 Subject: Re: [PATCH V2 net-next 0/2] net: hns3: adds two VLAN feature From: tanhuazhong To: David Miller , CC: , , , , References: <1590061105-36478-1-git-send-email-tanhuazhong@huawei.com> <20200521121707.6499ca6b@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20200521.143726.481524442371246082.davem@davemloft.net> Message-ID: <356be994-7cf9-e7b2-8992-46a70bc6a54b@huawei.com> Date: Wed, 27 May 2020 10:31:59 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.74.149.191] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/5/22 17:35, tanhuazhong wrote: > > > On 2020/5/22 5:37, David Miller wrote: >> From: Jakub Kicinski >> Date: Thu, 21 May 2020 12:17:07 -0700 >> >>> On Thu, 21 May 2020 19:38:23 +0800 Huazhong Tan wrote: >>>> This patchset adds two new VLAN feature. >>>> >>>> [patch 1] adds a new dynamic VLAN mode. >>>> [patch 2] adds support for 'QoS' field to PVID. >>>> >>>> Change log: >>>> V1->V2: modifies [patch 1]'s commit log, suggested by Jakub Kicinski. >>> >>> I don't like the idea that FW is choosing the driver behavior in a way >>> that's not observable via standard Linux APIs. This is the second time >>> a feature like that posted for a driver this week, and we should >>> discourage it. >> >> Agreed, this is an unacceptable approach to driver features. >> > > Hi, Jakub & David. > > As decribed in patch #1, there is a scenario which needs the dynamic > mode(port VLAN filter is always disabled, andVF VLAN filter is keep > disable until a non-zero VLAN ID being used for the function). > > Is this mode selection provided through "ethtool --set-priv-flags" > more acceptable? Or is there any other better suggestion for this? > > Thanks. > Hi, Jakub & David. For patch#1, is it acceptable adding "ethtool --get-priv-flags" to query the VLAN. If yes, I will send a RFC for it. Best Regards. Thanks. >> . >>