Received: by 2002:a25:1104:0:0:0:0:0 with SMTP id 4csp123263ybr; Fri, 22 May 2020 02:37:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2JiRPwyOEhJ0Id3aHE+hxnFcsqxphgiF+yNIYDtMFV5Xp51ng07BE+SdoTBEbD3ie3tck X-Received: by 2002:a50:c047:: with SMTP id u7mr2358986edd.208.1590140226767; Fri, 22 May 2020 02:37:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590140226; cv=none; d=google.com; s=arc-20160816; b=cMP5v+tr5Ynn2IjpMBzuDDhJOM+JeRrOitS9fRF5tWsIkbgflnq/WlZhqQiBD+MP4I JuWwFnocbOSBQg1ehCwlOmyTPXdwoQWZYUbwpdyQ5ki9WXagDGiHVp18U4uLrYTYTAYv 3T19Sc7hIT6I3DRkdpg5b0atItZ9DtKjTjajwCAXPRKbDNR0zTXL+AlC88LH7hgeV7LC 5AFinQE4k5Pko1ei7YA+PA9Z3TcPmP5SLoB86EHrYhFxgHCW8etyDc6HfgicYVlcb1c9 HBHpraX51IkoroTQZtFhz7YFYmI1MJXTIR1Qd+VhhBq45zRb6rXu7qP4RvqxyjID6yG1 +Hnw== 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:from:references:cc:to:subject; bh=R4brXQDSm51YbzT7xXHS65P+p7BmtZgQm+nuMNWnusU=; b=QY00ktNVupX2IdDNo7rAJvWV8VOm0mBxu4AplcWafXEN4ArHO7Jiz4cpu3jtUfTovp lAIK1o4y8tjY0rR1j0y4yPXx9YwXalbLzSQ3+HkGB1Q1JwihFHzABnwvAEWVwjn/AViQ d7l3c1PO7/Sca0UzngxtjC59Njt1BzjtPftJT8Xyqsu2d1E4SnOhmekp+wCvLO8/jYak ncU/JFMCR6spQjWypFPDzHK/Og6+tubLpuYv2z9Y3+s4b2I6YO7WWnvcorF0hKHNgKUd 3HYCxR1kvcz8KjXLYxcxlMMxwUPEiPA53alTDqIwB+SI3UDWwUCzcYqkVZ/vHj8bak0a Mheg== 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 n15si4490185eda.19.2020.05.22.02.36.42; Fri, 22 May 2020 02:37:06 -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 S1729789AbgEVJfS (ORCPT + 99 others); Fri, 22 May 2020 05:35:18 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:35900 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728424AbgEVJfR (ORCPT ); Fri, 22 May 2020 05:35:17 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 6EEB8BA3EB6C87F79A13; Fri, 22 May 2020 17:35:14 +0800 (CST) Received: from [127.0.0.1] (10.74.149.191) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.487.0; Fri, 22 May 2020 17:35:06 +0800 Subject: Re: [PATCH V2 net-next 0/2] net: hns3: adds two VLAN feature 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> From: tanhuazhong Message-ID: Date: Fri, 22 May 2020 17:35:06 +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: <20200521.143726.481524442371246082.davem@davemloft.net> 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 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. > . >