diff options
Diffstat (limited to 'net/switchdev/switchdev.c')
-rw-r--r-- | net/switchdev/switchdev.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/net/switchdev/switchdev.c b/net/switchdev/switchdev.c index 117fd0797abd..a3c359004902 100644 --- a/net/switchdev/switchdev.c +++ b/net/switchdev/switchdev.c | |||
@@ -187,34 +187,6 @@ int switchdev_port_attr_set(struct net_device *dev, struct switchdev_attr *attr) | |||
187 | } | 187 | } |
188 | EXPORT_SYMBOL_GPL(switchdev_port_attr_set); | 188 | EXPORT_SYMBOL_GPL(switchdev_port_attr_set); |
189 | 189 | ||
190 | /** | ||
191 | * switchdev_port_stp_update - Notify switch device port of STP | ||
192 | * state change | ||
193 | * @dev: port device | ||
194 | * @state: port STP state | ||
195 | * | ||
196 | * Notify switch device port of bridge port STP state change. | ||
197 | */ | ||
198 | int switchdev_port_stp_update(struct net_device *dev, u8 state) | ||
199 | { | ||
200 | const struct switchdev_ops *ops = dev->switchdev_ops; | ||
201 | struct net_device *lower_dev; | ||
202 | struct list_head *iter; | ||
203 | int err = -EOPNOTSUPP; | ||
204 | |||
205 | if (ops && ops->switchdev_port_stp_update) | ||
206 | return ops->switchdev_port_stp_update(dev, state); | ||
207 | |||
208 | netdev_for_each_lower_dev(dev, lower_dev, iter) { | ||
209 | err = switchdev_port_stp_update(lower_dev, state); | ||
210 | if (err && err != -EOPNOTSUPP) | ||
211 | return err; | ||
212 | } | ||
213 | |||
214 | return err; | ||
215 | } | ||
216 | EXPORT_SYMBOL_GPL(switchdev_port_stp_update); | ||
217 | |||
218 | static DEFINE_MUTEX(switchdev_mutex); | 190 | static DEFINE_MUTEX(switchdev_mutex); |
219 | static RAW_NOTIFIER_HEAD(switchdev_notif_chain); | 191 | static RAW_NOTIFIER_HEAD(switchdev_notif_chain); |
220 | 192 | ||