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>
This commit is contained in:

committed by
David S. Miller

parent
a3eb95f891
commit
ebb9a03a59
@@ -631,8 +631,7 @@ int br_setlink(struct net_device *dev, struct nlmsghdr *nlh, u16 flags)
|
||||
if (p && !(flags & BRIDGE_FLAGS_SELF)) {
|
||||
/* set bridge attributes in hardware if supported
|
||||
*/
|
||||
ret_offload = netdev_switch_port_bridge_setlink(dev, nlh,
|
||||
flags);
|
||||
ret_offload = switchdev_port_bridge_setlink(dev, nlh, flags);
|
||||
if (ret_offload && ret_offload != -EOPNOTSUPP)
|
||||
br_warn(p->br, "error setting attrs on port %u(%s)\n",
|
||||
(unsigned int)p->port_no, p->dev->name);
|
||||
@@ -671,8 +670,7 @@ int br_dellink(struct net_device *dev, struct nlmsghdr *nlh, u16 flags)
|
||||
if (p && !(flags & BRIDGE_FLAGS_SELF)) {
|
||||
/* del bridge attributes in hardware
|
||||
*/
|
||||
ret_offload = netdev_switch_port_bridge_dellink(dev, nlh,
|
||||
flags);
|
||||
ret_offload = switchdev_port_bridge_dellink(dev, nlh, flags);
|
||||
if (ret_offload && ret_offload != -EOPNOTSUPP)
|
||||
br_warn(p->br, "error deleting attrs on port %u (%s)\n",
|
||||
(unsigned int)p->port_no, p->dev->name);
|
||||
|
Reference in New Issue
Block a user