From: David Miller Subject: Re: [PATCH net-next] bridge: add vlan info to bridge setlink and dellink notification messages Date: Sun, 22 Feb 2015 23:02:00 -0500 (EST) Message-ID: <20150222.230200.417142094091853578.davem@davemloft.net> References: <1424578911-6813-1-git-send-email-roopa@cumulusnetworks.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, stephen@networkplumber.org, vyasevic@redhat.com, sfeldma@gmail.com, wkok@cumulusnetworks.com, siva.mannem.lnx@gmail.com To: roopa@cumulusnetworks.com Return-path: Received: from shards.monkeyblade.net ([149.20.54.216]:53205 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751573AbbBWECD (ORCPT ); Sun, 22 Feb 2015 23:02:03 -0500 In-Reply-To: <1424578911-6813-1-git-send-email-roopa@cumulusnetworks.com> Sender: netdev-owner@vger.kernel.org List-ID: From: roopa@cumulusnetworks.com Date: Sat, 21 Feb 2015 20:21:51 -0800 > From: Roopa Prabhu > > vlan add/deletes are not notified to userspace today. This patch adds > vlan info to bridge newlink/dellink notifications generated from the bridge > driver. Notifications use the RTEXT_FILTER_BRVLAN_COMPRESSED flag to compress vlans into ranges whereever applicable. Please format your commit message text to ~80 columns in the future, thanks. > The size calculations does not take ranges into account for simplicity. > This has the potential for allocating a larger skb than required. > > There is an existing inconsistency with bridge NEWLINK and > DELLINK change notifications. Both generate NEWLINK notifications. > Since its always a NEWLINK notification, this patch includes all > vlans the port belongs to in the notification. The NEWLINK and DELLINK > request messages however only include the vlans to be added and > deleted. > > Signed-off-by: Roopa Prabhu This looks fine to me, applied. If you would put at least some time into trying to reduce the allocation size, taking range compression into consideration, I'd very much appreciate it as a follow-on patch. Thanks.