[Bridge] [PATCH v3] iproute2: add mdb command to bridge

2012-12-04 Thread Cong Wang
V3: improve the output, display router info only for -d fix router parsing code V2: sync with the kernel patch handle IPv6 addr a few cleanup Sample output: # ./bridge/bridge mdb bridge br0: port eth0, group 224.8.8.9 port eth1, group 224.8.8.8

[Bridge] [PATCH net-next v3] bridge: export multicast database via netlink

2012-12-04 Thread Cong Wang
V3: drop debugging printk's update selinux perm table as well V2: drop patch 1/2, export ifindex directly Redesign netlink attributes Improve netlink seq check Handle IPv6 addr as well This patch exports bridge multicast database via netlink message type RTM_GETMDB. Similar to fdb

Re: [Bridge] [PATCH net-next v2] bridge: export multicast database via netlink

2012-12-04 Thread Cong Wang
On Tue, 2012-12-04 at 08:53 -0800, Stephen Hemminger wrote: > 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 debugg

Re: [Bridge] [PATCH net-next v2] bridge: export multicast database via netlink

2012-12-04 Thread Cong Wang
On Tue, 2012-12-04 at 13:25 -0500, David Miller wrote: > From: Cong Wang > Date: Mon, 3 Dec 2012 21:03:43 +0800 > > > TODO: remove debugging printk's > > Can you please take care of this so we can consider this patch > seriously for inclusion? > Sure. I planned to send V3 when I wrote this TO

Re: [Bridge] [PATCH net-next v2] bridge: export multicast database via netlink

2012-12-04 Thread David Miller
From: Cong Wang Date: Mon, 3 Dec 2012 21:03:43 +0800 > TODO: remove debugging printk's Can you please take care of this so we can consider this patch seriously for inclusion? Thanks.

Re: [Bridge] [PATCH net-next v2] bridge: export multicast database via netlink

2012-12-04 Thread Stephen Hemminger
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 > m

Re: [Bridge] [PATCH net-next v2] bridge: implement multicast fast leave

2012-12-04 Thread Stephen Hemminger
On Tue, 4 Dec 2012 17:56:40 +0800 Cong Wang wrote: > V2: make the toggle per-port > > Fast leave allows bridge to immediately stops the multicast > traffic on the port receives IGMP Leave when IGMP snooping is enabled, > no timeouts are observed. > > Cc: Herbert Xu > Cc: Stephen Hemminger >

[Bridge] [PATCH net-next v2] bridge: implement multicast fast leave

2012-12-04 Thread Cong Wang
V2: make the toggle per-port Fast leave allows bridge to immediately stops the multicast traffic on the port receives IGMP Leave when IGMP snooping is enabled, no timeouts are observed. Cc: Herbert Xu Cc: Stephen Hemminger Cc: "David S. Miller" Signed-off-by: Cong Wang --- net/bridge/br_mul

Re: [Bridge] [PATCH net-next] bridge: implement multicast fast leave

2012-12-04 Thread Cong Wang
On Tue, 2012-12-04 at 15:07 +0800, Herbert Xu wrote: > On Tue, Dec 04, 2012 at 03:04:52PM +0800, Cong Wang wrote: > > > > Per-port sounds better than per-bridge. And I will make it enabled by > > default. > > IMHO the default should be off. Suddenly losing your subscription > because someone else