diff options
author | Jiri Pirko <jiri@resnulli.us> | 2014-09-05 09:51:31 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-09 14:29:55 -0400 |
commit | e5c3ea5c668033b303e7ac835d7d91da32d97958 (patch) | |
tree | cf53b62bb7cba3ff01b19e6f58ac64f175917700 /include/uapi/linux/if_link.h | |
parent | 3ac636b8591c37bb5028814a4ebd41d263b56181 (diff) |
bridge: implement rtnl_link_ops->get_size and rtnl_link_ops->fill_info
Allow rtnetlink users to get bridge master info in IFLA_INFO_DATA attr
This initial part implements forward_delay, hello_time, max_age options.
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/if_link.h')
-rw-r--r-- | include/uapi/linux/if_link.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/uapi/linux/if_link.h b/include/uapi/linux/if_link.h index ff957604a721..c80f95f6ee78 100644 --- a/include/uapi/linux/if_link.h +++ b/include/uapi/linux/if_link.h | |||
@@ -215,6 +215,18 @@ enum in6_addr_gen_mode { | |||
215 | IN6_ADDR_GEN_MODE_NONE, | 215 | IN6_ADDR_GEN_MODE_NONE, |
216 | }; | 216 | }; |
217 | 217 | ||
218 | /* Bridge section */ | ||
219 | |||
220 | enum { | ||
221 | IFLA_BR_UNSPEC, | ||
222 | IFLA_BR_FORWARD_DELAY, | ||
223 | IFLA_BR_HELLO_TIME, | ||
224 | IFLA_BR_MAX_AGE, | ||
225 | __IFLA_BR_MAX, | ||
226 | }; | ||
227 | |||
228 | #define IFLA_BR_MAX (__IFLA_BR_MAX - 1) | ||
229 | |||
218 | enum { | 230 | enum { |
219 | BRIDGE_MODE_UNSPEC, | 231 | BRIDGE_MODE_UNSPEC, |
220 | BRIDGE_MODE_HAIRPIN, | 232 | BRIDGE_MODE_HAIRPIN, |