From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next] net: Call add/kill vid ndo on vlan filter feature toggling Date: Fri, 30 Mar 2018 09:59:12 -0400 (EDT) Message-ID: <20180330.095912.583403211441224950.davem@davemloft.net> References: <1522248414-32539-1-git-send-email-galp@mellanox.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, tariqt@mellanox.com To: galp@mellanox.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:59328 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751237AbeC3N7O (ORCPT ); Fri, 30 Mar 2018 09:59:14 -0400 In-Reply-To: <1522248414-32539-1-git-send-email-galp@mellanox.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Gal Pressman Date: Wed, 28 Mar 2018 17:46:54 +0300 > NETIF_F_HW_VLAN_[CS]TAG_FILTER features require more than just a bit > flip in dev->features in order to keep the driver in a consistent state. > These features notify the driver of each added/removed vlan, but toggling > of vlan-filter does not notify the driver accordingly for each of the > existing vlans. > > This patch implements a similar solution to NETIF_F_RX_UDP_TUNNEL_PORT > behavior (which notifies the driver about UDP ports in the same manner > that vids are reported). > > Each toggling of the features propagates to the 8021q module, which > iterates over the vlans and call add/kill ndo accordingly. > > Signed-off-by: Gal Pressman > Reviewed-by: Tariq Toukan Looks good, applied, thank you.