diff options
author | Jiri Pirko <jiri@resnulli.us> | 2015-05-10 12:47:46 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-12 18:43:52 -0400 |
commit | ebb9a03a590e2325f747be43c8db450e92509501 (patch) | |
tree | f83107e8c5e623e5ae6a3461cdc19e387bc6dd0f /net/core | |
parent | a3eb95f891d6130b1fc03dd07a8b54cf0a5c8ab8 (diff) |
switchdev: s/netdev_switch_/switchdev_/ and s/NETDEV_SWITCH_/SWITCHDEV_/
Turned out that "switchdev" sticks. So just unify all related terms to use
this prefix.
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Acked-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Acked-by: Andy Gospodarek <gospo@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/net-sysfs.c | 2 | ||||
-rw-r--r-- | net/core/rtnetlink.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index 4238d6da5c60..be86a7ce9282 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c | |||
@@ -460,7 +460,7 @@ static ssize_t phys_switch_id_show(struct device *dev, | |||
460 | if (dev_isalive(netdev)) { | 460 | if (dev_isalive(netdev)) { |
461 | struct netdev_phys_item_id ppid; | 461 | struct netdev_phys_item_id ppid; |
462 | 462 | ||
463 | ret = netdev_switch_parent_id_get(netdev, &ppid); | 463 | ret = switchdev_parent_id_get(netdev, &ppid); |
464 | if (!ret) | 464 | if (!ret) |
465 | ret = sprintf(buf, "%*phN\n", ppid.id_len, ppid.id); | 465 | ret = sprintf(buf, "%*phN\n", ppid.id_len, ppid.id); |
466 | } | 466 | } |
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index 83e08323fdcd..fcd41fcd7e70 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c | |||
@@ -1006,7 +1006,7 @@ static int rtnl_phys_switch_id_fill(struct sk_buff *skb, struct net_device *dev) | |||
1006 | int err; | 1006 | int err; |
1007 | struct netdev_phys_item_id psid; | 1007 | struct netdev_phys_item_id psid; |
1008 | 1008 | ||
1009 | err = netdev_switch_parent_id_get(dev, &psid); | 1009 | err = switchdev_parent_id_get(dev, &psid); |
1010 | if (err) { | 1010 | if (err) { |
1011 | if (err == -EOPNOTSUPP) | 1011 | if (err == -EOPNOTSUPP) |
1012 | return 0; | 1012 | return 0; |