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.
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.
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
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
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
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
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 ++