summaryrefslogtreecommitdiffstats
path: root/include/linux/if_bridge.h
diff options
context:
space:
mode:
authorRoopa Prabhu <roopa@cumulusnetworks.com>2017-01-31 22:59:53 -0800
committerDavid S. Miller <davem@davemloft.net>2017-02-03 15:21:21 -0500
commitb3c7ef0adadc5768e0baa786213c6bd1ce521a77 (patch)
treea9f3fc900d30dc8629d43ee601f10b8c030b5459 /include/linux/if_bridge.h
parent3ad7a4b141ebd6091494913672d7166d5c2764e4 (diff)
downloadlinux-stable-b3c7ef0adadc5768e0baa786213c6bd1ce521a77.tar.gz
linux-stable-b3c7ef0adadc5768e0baa786213c6bd1ce521a77.tar.bz2
linux-stable-b3c7ef0adadc5768e0baa786213c6bd1ce521a77.zip
bridge: uapi: add per vlan tunnel info
New nested netlink attribute to associate tunnel info per vlan. This is used by bridge driver to send tunnel metadata to bridge ports in vlan tunnel mode. This patch also adds new per port flag IFLA_BRPORT_VLAN_TUNNEL to enable vlan tunnel mode. off by default. One example use for this is a vxlan bridging gateway or vtep which maps vlans to vn-segments (or vnis). User can configure per-vlan tunnel information which the bridge driver can use to bridge vlan into the corresponding vn-segment. Signed-off-by: Roopa Prabhu <roopa@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 debc9d5904e5..c5847dc75a93 100644
--- a/include/linux/if_bridge.h
+++ b/include/linux/if_bridge.h
@@ -47,6 +47,7 @@ struct br_ip_list {
#define BR_PROXYARP_WIFI BIT(10)
#define BR_MCAST_FLOOD BIT(11)
#define BR_MULTICAST_TO_UNICAST BIT(12)
+#define BR_VLAN_TUNNEL BIT(13)
#define BR_DEFAULT_AGEING_TIME (300 * HZ)