summaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorScott Feldman <sfeldma@gmail.com>2015-05-10 18:47:58 +0200
committerDavid S. Miller <davem@davemloft.net>2015-05-13 00:43:54 +0200
commite71f220b342d78cfb8ee9f1b60f1351f7183f2a5 (patch)
tree1122d8de74af89a7e81f7f495530c338dc34c12a /net/switchdev/switchdev.c
parentswitchdev: cut over to new switchdev_port_bridge_setlink (diff)
downloadlinux-e71f220b342d78cfb8ee9f1b60f1351f7183f2a5.tar.xz
linux-e71f220b342d78cfb8ee9f1b60f1351f7183f2a5.zip
switchdev: remove old switchdev_port_bridge_setlink
New attr-based bridge_setlink can recurse lower devs and recover on err, so remove old wrapper (including ndo_dflt_switchdev_port_bridge_setlink). 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.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/net/switchdev/switchdev.c b/net/switchdev/switchdev.c
index b01791a9b56d..dcdec9de9137 100644
--- a/net/switchdev/switchdev.c
+++ b/net/switchdev/switchdev.c
@@ -537,36 +537,6 @@ int switchdev_port_bridge_dellink(struct net_device *dev,
EXPORT_SYMBOL_GPL(switchdev_port_bridge_dellink);
/**
- * ndo_dflt_switchdev_port_bridge_setlink - default ndo bridge setlink
- * op for master devices
- *
- * @dev: port device
- * @nlh: netlink msg with bridge port attributes
- * @flags: bridge setlink flags
- *
- * Notify master device slaves of bridge port attributes
- */
-int ndo_dflt_switchdev_port_bridge_setlink(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_setlink(lower_dev, nlh, flags);
- if (err && err != -EOPNOTSUPP)
- ret = err;
- }
-
- return ret;
-}
-EXPORT_SYMBOL_GPL(ndo_dflt_switchdev_port_bridge_setlink);
-
-/**
* ndo_dflt_switchdev_port_bridge_dellink - default ndo bridge dellink
* op for master devices
*