[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150413200012.GC2058@nanopsycho.orion>
Date: Mon, 13 Apr 2015 22:00:12 +0200
From: Jiri Pirko <jiri@...nulli.us>
To: "Samudrala, Sridhar" <sridhar.samudrala@...el.com>
Cc: netdev@...r.kernel.org, davem@...emloft.net, sfeldma@...il.com,
roopa@...ulusnetworks.com, f.fainelli@...il.com,
gospo@...ulusnetworks.com
Subject: Re: [patch net-next 1/2] switchdev: s/netdev_switch_/switchdev_/
Mon, Apr 13, 2015 at 09:25:12PM CEST, sridhar.samudrala@...el.com wrote:
>
>
>On 4/13/2015 7:14 AM, Jiri Pirko wrote:
>>Turned out that "switchdev" sticks. So just unify all releated terms to
>>use this prefix.
>>
>>Signed-off-by: Jiri Pirko <jiri@...nulli.us>
>>---
>> drivers/net/bonding/bond_main.c | 4 +-
>> drivers/net/ethernet/rocker/rocker.c | 10 +--
>> drivers/net/team/team.c | 4 +-
>> include/net/switchdev.h | 106 +++++++++++++--------------
>> net/bridge/br.c | 18 ++---
>> net/bridge/br_netlink.c | 6 +-
>> net/bridge/br_stp.c | 2 +-
>> net/core/net-sysfs.c | 2 +-
>> net/core/rtnetlink.c | 2 +-
>> net/ipv4/fib_trie.c | 40 +++++------
>> net/switchdev/switchdev.c | 134 +++++++++++++++++------------------
>> 11 files changed, 161 insertions(+), 167 deletions(-)
>>
>>diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
>>index 78dde56..e96f029 100644
>>--- a/drivers/net/bonding/bond_main.c
>>+++ b/drivers/net/bonding/bond_main.c
>>@@ -4037,8 +4037,8 @@ static const struct net_device_ops bond_netdev_ops = {
>> .ndo_add_slave = bond_enslave,
>> .ndo_del_slave = bond_release,
>> .ndo_fix_features = bond_fix_features,
>>- .ndo_bridge_setlink = ndo_dflt_netdev_switch_port_bridge_setlink,
>>- .ndo_bridge_dellink = ndo_dflt_netdev_switch_port_bridge_dellink,
>>+ .ndo_bridge_setlink = ndo_dflt_switchdev_port_bridge_setlink,
>>+ .ndo_bridge_dellink = ndo_dflt_switchdev_port_bridge_dellink,
>> .ndo_features_check = passthru_features_check,
>> };
>>diff --git a/drivers/net/ethernet/rocker/rocker.c b/drivers/net/ethernet/rocker/rocker.c
>>index a87b177..6d31aeb 100644
>>--- a/drivers/net/ethernet/rocker/rocker.c
>>+++ b/drivers/net/ethernet/rocker/rocker.c
>>@@ -3377,17 +3377,17 @@ static void rocker_port_fdb_learn_work(struct work_struct *work)
>> container_of(work, struct rocker_fdb_learn_work, work);
>> bool removing = (lw->flags & ROCKER_OP_FLAG_REMOVE);
>> bool learned = (lw->flags & ROCKER_OP_FLAG_LEARNED);
>>- struct netdev_switch_notifier_fdb_info info;
>>+ struct switchdev_notifier_fdb_info info;
>> info.addr = lw->addr;
>> info.vid = lw->vid;
>> if (learned && removing)
>>- call_netdev_switch_notifiers(NETDEV_SWITCH_FDB_DEL,
>>- lw->dev, &info.info);
>>+ call_switchdev_notifiers(NETDEV_SWITCH_FDB_DEL,
>>+ lw->dev, &info.info);
>> else if (learned && !removing)
>>- call_netdev_switch_notifiers(NETDEV_SWITCH_FDB_ADD,
>>- lw->dev, &info.info);
>>+ call_switchdev_notifiers(NETDEV_SWITCH_FDB_ADD,
>>+ lw->dev, &info.info);
>> kfree(work);
>> }
>>diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c
>>index 6928448..cfe8496 100644
>>--- a/drivers/net/team/team.c
>>+++ b/drivers/net/team/team.c
>>@@ -1977,8 +1977,8 @@ static const struct net_device_ops team_netdev_ops = {
>> .ndo_del_slave = team_del_slave,
>> .ndo_fix_features = team_fix_features,
>> .ndo_change_carrier = team_change_carrier,
>>- .ndo_bridge_setlink = ndo_dflt_netdev_switch_port_bridge_setlink,
>>- .ndo_bridge_dellink = ndo_dflt_netdev_switch_port_bridge_dellink,
>>+ .ndo_bridge_setlink = ndo_dflt_switchdev_port_bridge_setlink,
>>+ .ndo_bridge_dellink = ndo_dflt_switchdev_port_bridge_dellink,
>> .ndo_features_check = passthru_features_check,
>> };
>>diff --git a/include/net/switchdev.h b/include/net/switchdev.h
>>index d2e69ee..9b43228 100644
>>--- a/include/net/switchdev.h
>>+++ b/include/net/switchdev.h
>>@@ -43,124 +43,124 @@ struct swdev_ops {
>> u8 tos, u8 type, u32 tb_id);
>> };
>>-enum netdev_switch_notifier_type {
>>+enum switchdev_notifier_type {
>> NETDEV_SWITCH_FDB_ADD = 1,
>> NETDEV_SWITCH_FDB_DEL,
>Should these enums also be changed to SWITCHDEV_FDB_ prefix?
good catch. will send v2. thanks
>
>Thanks
>Sridhar
>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists