Re: [Bridge] [PATCH -next] bridge: using for_each_set_bit_from to simplify the code

2013-03-12 Thread David Miller
From: Wei Yongjun Date: Mon, 11 Mar 2013 23:43:48 +0800 > From: Wei Yongjun > > Using for_each_set_bit_from() to simplify the code. > > Signed-off-by: Wei Yongjun Applied.

Re: [Bridge] [PATCH -next] bridge: using for_each_set_bit to simplify the code

2013-03-12 Thread David Miller
From: Wei Yongjun Date: Mon, 11 Mar 2013 23:45:23 +0800 > From: Wei Yongjun > > Using for_each_set_bit() to simplify the code. > > Signed-off-by: Wei Yongjun Applied.

[Bridge] [PATCH net-next 0/4] Allow bridge to function in non-promisc mode

2013-03-12 Thread Vlad Yasevich
The series adds an ability for the bridge to function in non-promiscuous mode. We do it in 3 steps. First we add an interface to palce the switch into non-promisc mode. In this mode, all port of the switch turn promisc off and turn on IFF_ALLMULTI to continue handling multicast traffic. Second we

[Bridge] [PATCH net-next 1/4] bridge: Add sysfs interface to control promisc mode

2013-03-12 Thread Vlad Yasevich
Add an sysfs interface to turn promiscusous mode on and off on the bridge. By default all interfaces in the bridge are in promisc mode. When promisc mode is turned off, it is turned off on all bridge ports and the bridge turns on IFF_ALLMULTI to handle multicast traffic. Signed-off-by: Vlad Yase

[Bridge] [PATCH net-next 2/4] bridge: Allow an ability to designate an uplink port

2013-03-12 Thread Vlad Yasevich
Allow a ports to be designated as uplink. Multiple ports may be designated as uplinks and they will be kept in a list. Signed-off-by: Vlad Yasevich --- include/uapi/linux/if_link.h |1 + net/bridge/br_netlink.c |2 ++ net/bridge/br_private.h |1 + net/bridge/br_sysfs_if.c

[Bridge] [PATCH net-next 3/4] bridge: Implement IFF_UNICAST_FLT

2013-03-12 Thread Vlad Yasevich
Implement IFF_UNICAST_FLT on the bridge. Unicast addresses added to the bridge device are synched to the uplink devices. This allows for uplink devices to change while preserving mac assignment. Signed-off-by: Vlad Yasevich --- net/bridge/br_device.c | 11 ++- net/bridge/br_fdb.c

[Bridge] [PATCH net-next 4/4] bridge: sync device list when a new uplink is designated

2013-03-12 Thread Vlad Yasevich
What a new device is designated as "uplink" sync any device addresses to it. This allows for dynamic replacement of uplinks while maintaining the device list. Signed-off-by: Vlad Yasevich --- net/bridge/br_netlink.c | 11 +++ net/bridge/br_sysfs_if.c | 27 ++