From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH net-next v2] bridge: export multicast database via netlink Date: Tue, 4 Dec 2012 08:53:20 -0800 Message-ID: <20121204085320.3e08986a@nehalam.linuxnetplumber.net> References: <1354539824-7898-1-git-send-email-amwang@redhat.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, Herbert Xu , Jesper Dangaard Brouer , Thomas Graf , "David S. Miller" To: Cong Wang Return-path: In-Reply-To: <1354539824-7898-1-git-send-email-amwang@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: bridge-bounces@lists.linux-foundation.org Errors-To: bridge-bounces@lists.linux-foundation.org List-Id: netdev.vger.kernel.org On Mon, 3 Dec 2012 21:03:43 +0800 Cong Wang wrote: > V2: drop patch 1/2, export ifindex directly > Redesign netlink attributes > Improve netlink seq check > Handle IPv6 addr as well > > TODO: remove debugging printk's > > This patch exports bridge multicast database via netlink > message type RTM_GETMDB. Similar to fdb, but currently bridge-specific. > We may need to support modify multicast database too (RTM_{ADD,DEL}MDB). > > Cc: Herbert Xu > Cc: Stephen Hemminger > Cc: "David S. Miller" > Cc: Thomas Graf > Cc: Jesper Dangaard Brouer > Signed-off-by: Cong Wang > Minor nit reported by checkpatch was the messages should be using the api which provides the most info in the log to identify. WARNING: Prefer netdev_info(netdev, ... then dev_info(dev, ... then pr_info(... to printk(KERN_INFO ... #190: FILE: net/bridge/br_mdb.c:28: + printk(KERN_INFO "no router on bridge\n") There is a set of macro's already for use in bridging code: br_info(br, "no router on bridge\n");