]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/netdevice.h
bridge: call netdev_sw_port_stp_update when bridge port STP status changes
[karo-tx-linux.git] / include / linux / netdevice.h
index 3603f31e78f338edffa4dd6d60b2e6c53fcc2fba..29c92ee9ed56d8a23fc0a587a889ebb60e8354b5 100644 (file)
@@ -1024,6 +1024,9 @@ typedef u16 (*select_queue_fallback_t)(struct net_device *dev,
  *     Called to get an ID of the switch chip this port is part of.
  *     If driver implements this, it indicates that it represents a port
  *     of a switch chip.
+ * int (*ndo_switch_port_stp_update)(struct net_device *dev, u8 state);
+ *     Called to notify switch device port of bridge port STP
+ *     state change.
  */
 struct net_device_ops {
        int                     (*ndo_init)(struct net_device *dev);
@@ -1180,6 +1183,8 @@ struct net_device_ops {
 #ifdef CONFIG_NET_SWITCHDEV
        int                     (*ndo_switch_parent_id_get)(struct net_device *dev,
                                                            struct netdev_phys_item_id *psid);
+       int                     (*ndo_switch_port_stp_update)(struct net_device *dev,
+                                                             u8 state);
 #endif
 };