diff options
author | Scott Feldman <sfeldma@gmail.com> | 2015-05-10 12:48:02 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-12 18:43:55 -0400 |
commit | 87a5dae59e7abaad911ab719caa5548dd6df5557 (patch) | |
tree | a6841282d572eb4f5f9aeef409ecb584f2c4d867 /net/switchdev/switchdev.c | |
parent | 54ba5a0bbc739ae77a217d7340149e6f35934c4b (diff) |
switchdev: remove unused switchdev_port_bridge_dellink
Now we can remove old wrappers for dellink.
Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Acked-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/switchdev/switchdev.c')
-rw-r--r-- | net/switchdev/switchdev.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/net/switchdev/switchdev.c b/net/switchdev/switchdev.c index 8ce678e397b4..0e15b6f6bb56 100644 --- a/net/switchdev/switchdev.c +++ b/net/switchdev/switchdev.c | |||
@@ -536,36 +536,6 @@ int switchdev_port_bridge_dellink(struct net_device *dev, | |||
536 | } | 536 | } |
537 | EXPORT_SYMBOL_GPL(switchdev_port_bridge_dellink); | 537 | EXPORT_SYMBOL_GPL(switchdev_port_bridge_dellink); |
538 | 538 | ||
539 | /** | ||
540 | * ndo_dflt_switchdev_port_bridge_dellink - default ndo bridge dellink | ||
541 | * op for master devices | ||
542 | * | ||
543 | * @dev: port device | ||
544 | * @nlh: netlink msg with bridge port attributes | ||
545 | * @flags: bridge dellink flags | ||
546 | * | ||
547 | * Notify master device slaves of bridge port attribute deletes | ||
548 | */ | ||
549 | int ndo_dflt_switchdev_port_bridge_dellink(struct net_device *dev, | ||
550 | struct nlmsghdr *nlh, u16 flags) | ||
551 | { | ||
552 | struct net_device *lower_dev; | ||
553 | struct list_head *iter; | ||
554 | int ret = 0, err = 0; | ||
555 | |||
556 | if (!(dev->features & NETIF_F_HW_SWITCH_OFFLOAD)) | ||
557 | return ret; | ||
558 | |||
559 | netdev_for_each_lower_dev(dev, lower_dev, iter) { | ||
560 | err = switchdev_port_bridge_dellink(lower_dev, nlh, flags); | ||
561 | if (err && err != -EOPNOTSUPP) | ||
562 | ret = err; | ||
563 | } | ||
564 | |||
565 | return ret; | ||
566 | } | ||
567 | EXPORT_SYMBOL_GPL(ndo_dflt_switchdev_port_bridge_dellink); | ||
568 | |||
569 | static struct net_device *switchdev_get_lowest_dev(struct net_device *dev) | 539 | static struct net_device *switchdev_get_lowest_dev(struct net_device *dev) |
570 | { | 540 | { |
571 | const struct switchdev_ops *ops = dev->switchdev_ops; | 541 | const struct switchdev_ops *ops = dev->switchdev_ops; |