diff options
author | Scott Feldman <sfeldma@gmail.com> | 2014-11-28 14:34:22 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-12-02 20:01:22 -0800 |
commit | 065c212a9e25172069f368b36228379521dadb65 (patch) | |
tree | ce0367eb05b8dc562c9edb6b1a886948ee2fea4e /include/linux/if_bridge.h | |
parent | cf6b8e1eedffd9ef9a22c0c9453d752b07daf89a (diff) | |
download | op-kernel-dev-065c212a9e25172069f368b36228379521dadb65.zip op-kernel-dev-065c212a9e25172069f368b36228379521dadb65.tar.gz |
bridge: move private brport flags to if_bridge.h so port drivers can use flags
Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Acked-by: Andy Gospodarek <gospo@cumulusnetworks.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/if_bridge.h')
-rw-r--r-- | include/linux/if_bridge.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/if_bridge.h b/include/linux/if_bridge.h index fa2eca6..2c81a8e 100644 --- a/include/linux/if_bridge.h +++ b/include/linux/if_bridge.h @@ -15,6 +15,7 @@ #include <linux/netdevice.h> #include <uapi/linux/if_bridge.h> +#include <linux/bitops.h> struct br_ip { union { @@ -32,6 +33,17 @@ struct br_ip_list { struct br_ip addr; }; +#define BR_HAIRPIN_MODE BIT(0) +#define BR_BPDU_GUARD BIT(1) +#define BR_ROOT_BLOCK BIT(2) +#define BR_MULTICAST_FAST_LEAVE BIT(3) +#define BR_ADMIN_COST BIT(4) +#define BR_LEARNING BIT(5) +#define BR_FLOOD BIT(6) +#define BR_AUTO_MASK (BR_FLOOD | BR_LEARNING) +#define BR_PROMISC BIT(7) +#define BR_PROXYARP BIT(8) + extern void brioctl_set(int (*ioctl_hook)(struct net *, unsigned int, void __user *)); typedef int br_should_route_hook_t(struct sk_buff *skb); |