Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2318305ybz; Thu, 23 Apr 2020 15:55:33 -0700 (PDT) X-Google-Smtp-Source: APiQypLEodJXCDc+8C/sAY2q6M3c3mQkZHhFLrvXPc+ZqvCQDMv0xBPl+CZZIlrdxI3vQevEUAdX X-Received: by 2002:a17:906:6411:: with SMTP id d17mr4660517ejm.109.1587682533579; Thu, 23 Apr 2020 15:55:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587682533; cv=none; d=google.com; s=arc-20160816; b=070FxvufGCZkU5w2i6EeXDRjNoanq7YLLtAkkKpgF0HaFYxYWHpNmZt9rsn8QOV8/k nEuH3yM9NjSUdjpSvPoPznxEWmItQUaqvNOM4CDB640RxWCn4bG+QSgnji1rKncvKu12 C+Nf7UmbAWrjTTPfoa/rO9LJSizY/eKj0wH+MWVK0BGR9Nxs3JzGagKNyV1MvAi0eZ8H FkchkCw6/ZZkPZ5Pr3gfDNi39oAFeVdLQGhSWdI33M9rhWg+YRyjbzJ2DG6I0HubUXtD 9h1b0VKH1c1h6jMvAIjqKxdzw23f0pl5/0+90lLUugzSNcLTn61GCCLcaV7IAWX6ft3C 4s3w== 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:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=Ut77/7F+21+GSHJv4RJhJEU4rkewHVgLR1o+7LmkHtQ=; b=rps5nHQCCte2RtLDdEH0JUfGCT0KNhyx4awb1CpEw6toREkA8G1iUDgtL6Q2SEpnrq o0NRJdw8qCDpD+VDo8qtIvQUSJLz3DZF2wRpebo3qRmCM2RCtGZCSquAngBinf/SqoPh dcWBVlhFZsH4sWDdbrVSPb2wJ8Rap5xbUb4LHOyZhIFhebyWtFgAXw7vo9849OCh75aw 58abgf14/3KmHraXbYZZxXl/6xbxks6/B4TiwmftDo0sKQvbsrhWerQZ8a+TPXnHe9Uy rk29aPCI2gVMtF5L1wY+OPjwkjWrRtKGVdhJN8ss1vT7HfuoSuCOl5TyZMawkIfZrtcL 7+yg== 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 l20si2001929ejr.179.2020.04.23.15.55.05; Thu, 23 Apr 2020 15:55:33 -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 S1727879AbgDWWxa (ORCPT + 99 others); Thu, 23 Apr 2020 18:53:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726057AbgDWWxa (ORCPT ); Thu, 23 Apr 2020 18:53:30 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B38F4C09B042; Thu, 23 Apr 2020 15:53:30 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id CFC0C127E67A7; Thu, 23 Apr 2020 15:53:29 -0700 (PDT) Date: Thu, 23 Apr 2020 15:53:29 -0700 (PDT) Message-Id: <20200423.155329.1710757370582804428.davem@davemloft.net> To: vee.khee.wong@intel.com Cc: peppe.cavallaro@st.com, alexandre.torgue@st.com, joabreu@synopsys.com, mcoquelin.stm32@gmail.com, netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, boon.leong.ong@intel.com, weifeng.voon@intel.com Subject: Re: [PATCH net-next 1/1] net: stmmac: Add option for VLAN filter fail queue enable From: David Miller In-Reply-To: <20200423070026.26200-1-vee.khee.wong@intel.com> References: <20200423070026.26200-1-vee.khee.wong@intel.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 23 Apr 2020 15:53:30 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Wong Vee Khee Date: Thu, 23 Apr 2020 15:00:26 +0800 > From: "Chuah, Kim Tatt" > > Add option in plat_stmmacenet_data struct to enable VLAN Filter Fail > Queuing. This option allows packets that fail VLAN filter to be routed > to a specific Rx queue when Receive All is also set. > > When this option is enabled: > - Enable VFFQ only when entering promiscuous mode, because Receive All > will pass up all rx packets that failed address filtering (similar to > promiscuous mode). > - VLAN-promiscuous mode is never entered to allow rx packet to fail VLAN > filters and get routed to selected VFFQ Rx queue. > > Reviewed-by: Voon Weifeng > Reviewed-by: Ong Boon Leong > Signed-off-by: Chuah, Kim Tatt > Signed-off-by: Ong Boon Leong Why would you be setting this with a platform attribute? Even if the capability exists, wouldn't you want the user to be able to choose to opt out?