aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Feldman <sfeldma@gmail.com>2015-10-08 22:23:17 -0400
committerDavid S. Miller <davem@davemloft.net>2015-10-12 08:20:19 -0400
commitf55ac58ae64cbb0315382e738681fe31837dcac0 (patch)
tree74ff1e2eede910f925b4b36a1d593eee164e2997
parent7533ce3055bbe9577276a847125b156c44a5bbce (diff)
switchdev: add bridge ageing_time attribute
Setting the stage to push bridge-level attributes down to port driver so hardware can be programmed accordingly. Bridge-level attribute example is ageing_time. This is a per-bridge attribute, not a per-bridge-port attr. Signed-off-by: Scott Feldman <sfeldma@gmail.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--include/net/switchdev.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/switchdev.h b/include/net/switchdev.h
index 89266a3e473d..61f129bd74b2 100644
--- a/include/net/switchdev.h
+++ b/include/net/switchdev.h
@@ -43,6 +43,7 @@ enum switchdev_attr_id {
43 SWITCHDEV_ATTR_ID_PORT_PARENT_ID, 43 SWITCHDEV_ATTR_ID_PORT_PARENT_ID,
44 SWITCHDEV_ATTR_ID_PORT_STP_STATE, 44 SWITCHDEV_ATTR_ID_PORT_STP_STATE,
45 SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS, 45 SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS,
46 SWITCHDEV_ATTR_ID_BRIDGE_AGEING_TIME,
46}; 47};
47 48
48struct switchdev_attr { 49struct switchdev_attr {
@@ -52,6 +53,7 @@ struct switchdev_attr {
52 struct netdev_phys_item_id ppid; /* PORT_PARENT_ID */ 53 struct netdev_phys_item_id ppid; /* PORT_PARENT_ID */
53 u8 stp_state; /* PORT_STP_STATE */ 54 u8 stp_state; /* PORT_STP_STATE */
54 unsigned long brport_flags; /* PORT_BRIDGE_FLAGS */ 55 unsigned long brport_flags; /* PORT_BRIDGE_FLAGS */
56 u32 ageing_time; /* BRIDGE_AGEING_TIME */
55 } u; 57 } u;
56}; 58};
57 59