From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next] net: bridge: add support for per-port vlan stats Date: Fri, 12 Oct 2018 10:20:25 -0700 (PDT) Message-ID: <20181012.102025.2235133411976941650.davem@davemloft.net> References: <20181012104116.12751-1-nikolay@cumulusnetworks.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, bridge@lists.linux-foundation.org, roopa@cumulusnetworks.com To: nikolay@cumulusnetworks.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:47684 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726665AbeJMAx7 (ORCPT ); Fri, 12 Oct 2018 20:53:59 -0400 In-Reply-To: <20181012104116.12751-1-nikolay@cumulusnetworks.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Nikolay Aleksandrov Date: Fri, 12 Oct 2018 13:41:16 +0300 > This patch adds an option to have per-port vlan stats instead of the > default global stats. The option can be set only when there are no port > vlans in the bridge since we need to allocate the stats if it is set > when vlans are being added to ports (and respectively free them > when being deleted). Also bump RTNL_MAX_TYPE as the bridge is the > largest user of options. The current stats design allows us to add > these without any changes to the fast-path, it all comes down to > the per-vlan stats pointer which, if this option is enabled, will > be allocated for each port vlan instead of using the global bridge-wide > one. > > CC: bridge@lists.linux-foundation.org > CC: Roopa Prabhu > Signed-off-by: Nikolay Aleksandrov Applied, thanks.