aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>2016-02-26 15:20:04 -0500
committerDavid S. Miller <davem@davemloft.net>2016-03-01 16:55:07 -0500
commit59f78f9f6c2e80dcf0f520be85b660f856217b79 (patch)
treead2d8d083eb9dd2b5c9091f23f727ff0d70b0953 /include/uapi
parenta55d8246abcc910346771175b521ee2bce5a69b3 (diff)
bridge: mcast: add support for more router port information dumping
Allow for more multicast router port information to be dumped such as timer and type attributes. For that that purpose we need to extend the MDBA_ROUTER_PORT attribute similar to how it was done for the mdb entries recently. The new format is thus: [MDBA_ROUTER_PORT] = { <- nested attribute u32 ifindex <- router port ifindex for user-space compatibility [MDBA_ROUTER_PATTR attributes] } This way it remains compatible with older users (they'll simply retrieve the u32 in the beginning) and new users can parse the remaining attributes. It would also allow to add future extensions to the router port without breaking compatibility. Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/if_bridge.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/uapi/linux/if_bridge.h b/include/uapi/linux/if_bridge.h
index 74ee03a47e79..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 {
@@ -192,6 +195,15 @@ enum {
192}; 195};
193#define MDBA_ROUTER_MAX (__MDBA_ROUTER_MAX - 1) 196#define MDBA_ROUTER_MAX (__MDBA_ROUTER_MAX - 1)
194 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
195struct br_port_msg { 207struct br_port_msg {
196 __u8 family; 208 __u8 family;
197 __u32 ifindex; 209 __u32 ifindex;