summaryrefslogtreecommitdiffstats
path: root/include/linux/if_bridge.h
diff options
context:
space:
mode:
authorScott Feldman2014-11-28 14:34:23 +0100
committerDavid S. Miller2014-12-03 05:01:23 +0100
commitefacacdaf7cb5a0592ed772e3731636b2742e34a (patch)
treee6d6f3378dddbf883deac8a22275a174af0317c6 /include/linux/if_bridge.h
parentbridge: move private brport flags to if_bridge.h so port drivers can use flags (diff)
downloadkernel-qcow2-linux-efacacdaf7cb5a0592ed772e3731636b2742e34a.tar.gz
kernel-qcow2-linux-efacacdaf7cb5a0592ed772e3731636b2742e34a.tar.xz
kernel-qcow2-linux-efacacdaf7cb5a0592ed772e3731636b2742e34a.zip
bridge: add new brport flag LEARNING_SYNC
This policy flag controls syncing of learned FDB entries to bridge's FDB. If on, FDB entries learned on bridge port device will be synced. If off, device may still learn new FDB entries but they will not be synced with bridge's FDB. Signed-off-by: Scott Feldman <sfeldma@gmail.com> Signed-off-by: Jiri Pirko <jiri@resnulli.us> Acked-by: Roopa Prabhu <roopa@cumulusnetworks.com> Acked-by: Jamal Hadi Salim <jhs@mojatatu.com> Acked-by: Andy Gospodarek <gospo@cumulusnetworks.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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/if_bridge.h b/include/linux/if_bridge.h
index 2c81a8efd24d..0a8ce762a47f 100644
--- a/include/linux/if_bridge.h
+++ b/include/linux/if_bridge.h
@@ -43,6 +43,7 @@ struct br_ip_list {
#define BR_AUTO_MASK (BR_FLOOD | BR_LEARNING)
#define BR_PROMISC BIT(7)
#define BR_PROXYARP BIT(8)
+#define BR_LEARNING_SYNC BIT(9)
extern void brioctl_set(int (*ioctl_hook)(struct net *, unsigned int, void __user *));