summaryrefslogtreecommitdiffstats
path: root/net/switchdev
diff options
context:
space:
mode:
authorScott Feldman <sfeldma@gmail.com>2015-05-10 18:48:02 +0200
committerDavid S. Miller <davem@davemloft.net>2015-05-13 00:43:55 +0200
commit87a5dae59e7abaad911ab719caa5548dd6df5557 (patch)
treea6841282d572eb4f5f9aeef409ecb584f2c4d867 /net/switchdev
parentswitchdev: cut over to new switchdev_port_bridge_dellink (diff)
downloadlinux-87a5dae59e7abaad911ab719caa5548dd6df5557.tar.xz
linux-87a5dae59e7abaad911ab719caa5548dd6df5557.zip
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')
-rw-r--r--net/switchdev/switchdev.c30
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,
}
EXPORT_SYMBOL_GPL(switchdev_port_bridge_dellink);
-/**
- * ndo_dflt_switchdev_port_bridge_dellink - default ndo bridge dellink
- * op for master devices
- *
- * @dev: port device
- * @nlh: netlink msg with bridge port attributes
- * @flags: bridge dellink flags
- *
- * Notify master device slaves of bridge port attribute deletes
- */
-int ndo_dflt_switchdev_port_bridge_dellink(struct net_device *dev,
- struct nlmsghdr *nlh, u16 flags)
-{
- struct net_device *lower_dev;
- struct list_head *iter;
- int ret = 0, err = 0;
-
- if (!(dev->features & NETIF_F_HW_SWITCH_OFFLOAD))
- return ret;
-
- netdev_for_each_lower_dev(dev, lower_dev, iter) {
- err = switchdev_port_bridge_dellink(lower_dev, nlh, flags);
- if (err && err != -EOPNOTSUPP)
- ret = err;
- }
-
- return ret;
-}
-EXPORT_SYMBOL_GPL(ndo_dflt_switchdev_port_bridge_dellink);
-
static struct net_device *switchdev_get_lowest_dev(struct net_device *dev)
{
const struct switchdev_ops *ops = dev->switchdev_ops;