search for: br_sysfs_delbr

Displaying 6 results from an estimated 6 matches for "br_sysfs_delbr".

2012 Nov 03
1
[Bridge] [PATCH 9/9] Avoid 'statement with no effect' compiler warnings
...at linaro.org> --- net/bridge/br_private.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h index 9b278c4..af5f584 100644 --- a/net/bridge/br_private.h +++ b/net/bridge/br_private.h @@ -566,10 +566,10 @@ extern void br_sysfs_delbr(struct net_device *dev); #else -#define br_sysfs_addif(p) (0) -#define br_sysfs_renameif(p) (0) -#define br_sysfs_addbr(dev) (0) -#define br_sysfs_delbr(dev) do { } while(0) +static inline int br_sysfs_addif(struct net_bridge_port *p) { return 0; } +static inline int br_sysfs_renameif(struct n...
2013 Nov 18
0
bridge: flush br's address entry in fdb when remove the bridge dev
...ge/br_if.c @@ -172,6 +172,10 @@ void br_dev_delete(struct net_device *dev, struct list_head *head) del_nbp(p); } + spin_lock_bh(&br->hash_lock); + fdb_delete_by_addr(br, br->dev->dev_addr, 0); + spin_unlock_bh(&br->hash_lock); + del_timer_sync(&br->gc_timer); br_sysfs_delbr(br->dev); -- 1.7.12
2013 Nov 18
0
[PATCH net] bridge: flush br's address entry in fdb when remove the bridge dev
...ge/br_if.c @@ -172,6 +172,10 @@ void br_dev_delete(struct net_device *dev, struct list_head *head) del_nbp(p); } + spin_lock_bh(&br->hash_lock); + fdb_delete_by_addr(br, br->dev->dev_addr, 0); + spin_unlock_bh(&br->hash_lock); + del_timer_sync(&br->gc_timer); br_sysfs_delbr(br->dev); -- 1.7.12
2007 Apr 18
5
[Bridge] RFC: [PATCH] bridge vlan integration
...et_bridge @@ -96,6 +107,9 @@ struct net_bridge struct hlist_head hash[BR_HASH_SIZE]; struct list_head age_list; unsigned long feature_mask; +#ifdef CONFIG_BRIDGE_VLAN + struct net_bridge_port_vlan vlan; +#endif /* STP */ bridge_id designated_root; @@ -258,4 +272,32 @@ extern void br_sysfs_delbr(struct net_de #define br_sysfs_delbr(dev) do { } while(0) #endif /* CONFIG_SYSFS */ +#ifdef CONFIG_BRIDGE_VLAN +#include <linux/if_vlan.h> + +static inline int br_vlan_filter(const struct sk_buff *skb, + const struct net_bridge_port_vlan *vlan) +{ + return !(vlan->filter[skb->vl...
2008 Jul 07
3
[Bridge] [RFC PATCH 0/2] Allow full bridge configuration via sysfs
Right now, you can configure most bridge device parameters via sysfs. However, you cannot either: - add or remove bridge interfaces - add or remove physical interfaces from a bridge The attached patch set rectifies this. With this patch set, brctl (theoretically) becomes completely optional, much like ifenslave is now for bonding. (In fact, the idea for this patch, and the syntax used herein, is
2013 Jan 09
16
[Bridge] [PATCH net-next V5 00/14] Add basic VLAN support to bridges
This series of patches provides an ability to add VLANs to the bridge ports. This is similar to what can be found in most switches. The bridge port may have any number of VLANs added to it including vlan 0 priority tagged traffic. When vlans are added to the port, only traffic tagged with particular vlan will forwarded over this port. Additionally, vlan ids are added to FDB entries and become