Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Scott Feldman and committed by
David S. Miller
efacacda 065c212a

+2
+1
include/linux/if_bridge.h
··· 43 43 #define BR_AUTO_MASK (BR_FLOOD | BR_LEARNING) 44 44 #define BR_PROMISC BIT(7) 45 45 #define BR_PROXYARP BIT(8) 46 + #define BR_LEARNING_SYNC BIT(9) 46 47 47 48 extern void brioctl_set(int (*ioctl_hook)(struct net *, unsigned int, void __user *)); 48 49
+1
include/uapi/linux/if_link.h
··· 245 245 IFLA_BRPORT_LEARNING, /* mac learning */ 246 246 IFLA_BRPORT_UNICAST_FLOOD, /* flood unicast traffic */ 247 247 IFLA_BRPORT_PROXYARP, /* proxy ARP */ 248 + IFLA_BRPORT_LEARNING_SYNC, /* mac learning sync from device */ 248 249 __IFLA_BRPORT_MAX 249 250 }; 250 251 #define IFLA_BRPORT_MAX (__IFLA_BRPORT_MAX - 1)