mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
net: switchdev: Add extack argument to switchdev_port_obj_add()
After the previous patch, bridge driver has extack argument available to pass to switchdev. Therefore extend switchdev_port_obj_add() with this argument, updating all callers, and passing the argument through to switchdev_port_obj_notify(). Signed-off-by: Petr Machata <[email protected]> Acked-by: Jiri Pirko <[email protected]> Acked-by: Ivan Vecera <[email protected]> Reviewed-by: Ido Schimmel <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
169327d585
commit
69b7320e14
4 changed files with 18 additions and 13 deletions
|
|
@ -331,7 +331,7 @@ static void br_mdb_switchdev_host_port(struct net_device *dev,
|
|||
mdb.obj.orig_dev = dev;
|
||||
switch (type) {
|
||||
case RTM_NEWMDB:
|
||||
switchdev_port_obj_add(lower_dev, &mdb.obj);
|
||||
switchdev_port_obj_add(lower_dev, &mdb.obj, NULL);
|
||||
break;
|
||||
case RTM_DELMDB:
|
||||
switchdev_port_obj_del(lower_dev, &mdb.obj);
|
||||
|
|
@ -381,7 +381,7 @@ static void __br_mdb_notify(struct net_device *dev, struct net_bridge_port *p,
|
|||
__mdb_entry_to_br_ip(entry, &complete_info->ip);
|
||||
mdb.obj.complete_priv = complete_info;
|
||||
mdb.obj.complete = br_mdb_complete;
|
||||
if (switchdev_port_obj_add(port_dev, &mdb.obj))
|
||||
if (switchdev_port_obj_add(port_dev, &mdb.obj, NULL))
|
||||
kfree(complete_info);
|
||||
}
|
||||
} else if (p && port_dev && type == RTM_DELMDB) {
|
||||
|
|
|
|||
|
|
@ -151,7 +151,7 @@ int br_switchdev_port_vlan_add(struct net_device *dev, u16 vid, u16 flags,
|
|||
.vid_end = vid,
|
||||
};
|
||||
|
||||
return switchdev_port_obj_add(dev, &v.obj);
|
||||
return switchdev_port_obj_add(dev, &v.obj, extack);
|
||||
}
|
||||
|
||||
int br_switchdev_port_vlan_del(struct net_device *dev, u16 vid)
|
||||
|
|
|
|||
Loading…
Reference in a new issue