switchdev: add bridge ageing_time attribute
authorScott Feldman <sfeldma@gmail.com>
Fri, 9 Oct 2015 02:23:17 +0000 (19:23 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Oct 2015 12:20:19 +0000 (05:20 -0700)
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>
include/net/switchdev.h

index 89266a3e473d674d9e63af4a3fa112925f3bf6aa..61f129bd74b237129fc67d120a794037e3500951 100644 (file)
@@ -43,6 +43,7 @@ enum switchdev_attr_id {
        SWITCHDEV_ATTR_ID_PORT_PARENT_ID,
        SWITCHDEV_ATTR_ID_PORT_STP_STATE,
        SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS,
+       SWITCHDEV_ATTR_ID_BRIDGE_AGEING_TIME,
 };
 
 struct switchdev_attr {
@@ -52,6 +53,7 @@ struct switchdev_attr {
                struct netdev_phys_item_id ppid;        /* PORT_PARENT_ID */
                u8 stp_state;                           /* PORT_STP_STATE */
                unsigned long brport_flags;             /* PORT_BRIDGE_FLAGS */
+               u32 ageing_time;                        /* BRIDGE_AGEING_TIME */
        } u;
 };