summaryrefslogtreecommitdiffstats
path: root/net/bridge/br_private.h
diff options
context:
space:
mode:
authorNikolay Aleksandrov2018-11-24 03:34:21 +0100
committerDavid S. Miller2018-11-28 00:04:15 +0100
commit70e4272b4c81828e7d942209bae83b9d92752cfe (patch)
tree4d3d081ba8776a1d67206c8c9d0ba4d1807e3092 /net/bridge/br_private.h
parentnet: bridge: add support for user-controlled bool options (diff)
downloadkernel-qcow2-linux-70e4272b4c81828e7d942209bae83b9d92752cfe.tar.gz
kernel-qcow2-linux-70e4272b4c81828e7d942209bae83b9d92752cfe.tar.xz
kernel-qcow2-linux-70e4272b4c81828e7d942209bae83b9d92752cfe.zip
net: bridge: add no_linklocal_learn bool option
Use the new boolopt API to add an option which disables learning from link-local packets. The default is kept as before and learning is enabled. This is a simple map from a boolopt bit to a bridge private flag that is tested before learning. v2: pass NULL for extack via sysfs Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_private.h')
-rw-r--r--net/bridge/br_private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h
index 6d4c208fbf08..d29f837cd7a2 100644
--- a/net/bridge/br_private.h
+++ b/net/bridge/br_private.h
@@ -328,6 +328,7 @@ enum net_bridge_opts {
BROPT_NEIGH_SUPPRESS_ENABLED,
BROPT_MTU_SET_BY_USER,
BROPT_VLAN_STATS_PER_PORT,
+ BROPT_NO_LL_LEARN,
};
struct net_bridge {