aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2016-03-01 16:55:08 -0500
committerDavid S. Miller <davem@davemloft.net>2016-03-01 16:55:08 -0500
commit4ec620700cda720ac7480ce92e8795d735ff1502 (patch)
treead2d8d083eb9dd2b5c9091f23f727ff0d70b0953 /include/uapi
parentec1606c0906de35dbc6f21aea75c2b950104cae5 (diff)
parent59f78f9f6c2e80dcf0f520be85b660f856217b79 (diff)
Merge branch 'bridge-mcast-tmp-router-port'
Nikolay Aleksandrov says: ==================== bridge: mcast: add support for temp router port This set adds support for temporary router port which doesn't depend only on the incoming queries. It can be refreshed by setting multicast_router to the same value (3). The first two patches are minor changes that prepare the code for the third which adds this new type of router port. In order to be able to dump its information the mdb router port format is changed in patch 04 and extended similar to how mdb entries format was done recently. The related iproute2 changes will be posted if this is accepted. v2: set val first and adjust router type later in patch 01, patch 03 was split in 2 ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/if_bridge.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/include/uapi/linux/if_bridge.h b/include/uapi/linux/if_bridge.h
index 0890b217580d..0536eefff9bf 100644
--- a/include/uapi/linux/if_bridge.h
+++ b/include/uapi/linux/if_bridge.h
@@ -144,7 +144,10 @@ struct bridge_vlan_info {
144 * } 144 * }
145 * } 145 * }
146 * [MDBA_ROUTER] = { 146 * [MDBA_ROUTER] = {
147 * [MDBA_ROUTER_PORT] 147 * [MDBA_ROUTER_PORT] = {
148 * u32 ifindex
149 * [MDBA_ROUTER_PATTR attributes]
150 * }
148 * } 151 * }
149 */ 152 */
150enum { 153enum {
@@ -177,6 +180,14 @@ enum {
177}; 180};
178#define MDBA_MDB_EATTR_MAX (__MDBA_MDB_EATTR_MAX - 1) 181#define MDBA_MDB_EATTR_MAX (__MDBA_MDB_EATTR_MAX - 1)
179 182
183/* multicast router types */
184enum {
185 MDB_RTR_TYPE_DISABLED,
186 MDB_RTR_TYPE_TEMP_QUERY,
187 MDB_RTR_TYPE_PERM,
188 MDB_RTR_TYPE_TEMP
189};
190
180enum { 191enum {
181 MDBA_ROUTER_UNSPEC, 192 MDBA_ROUTER_UNSPEC,
182 MDBA_ROUTER_PORT, 193 MDBA_ROUTER_PORT,
@@ -184,6 +195,15 @@ enum {
184}; 195};
185#define MDBA_ROUTER_MAX (__MDBA_ROUTER_MAX - 1) 196#define MDBA_ROUTER_MAX (__MDBA_ROUTER_MAX - 1)
186 197
198/* router port attributes */
199enum {
200 MDBA_ROUTER_PATTR_UNSPEC,
201 MDBA_ROUTER_PATTR_TIMER,
202 MDBA_ROUTER_PATTR_TYPE,
203 __MDBA_ROUTER_PATTR_MAX
204};
205#define MDBA_ROUTER_PATTR_MAX (__MDBA_ROUTER_PATTR_MAX - 1)
206
187struct br_port_msg { 207struct br_port_msg {
188 __u8 family; 208 __u8 family;
189 __u32 ifindex; 209 __u32 ifindex;