mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
net: Add extack to upper device linking
Add extack arg to netdev_upper_dev_link and netdev_master_upper_dev_link Signed-off-by: David Ahern <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
33eaf2a6eb
commit
42ab19ee90
19 changed files with 44 additions and 32 deletions
|
|
@ -138,7 +138,7 @@ int vlan_check_real_dev(struct net_device *real_dev,
|
|||
return 0;
|
||||
}
|
||||
|
||||
int register_vlan_dev(struct net_device *dev)
|
||||
int register_vlan_dev(struct net_device *dev, struct netlink_ext_ack *extack)
|
||||
{
|
||||
struct vlan_dev_priv *vlan = vlan_dev_priv(dev);
|
||||
struct net_device *real_dev = vlan->real_dev;
|
||||
|
|
@ -174,7 +174,7 @@ int register_vlan_dev(struct net_device *dev)
|
|||
if (err < 0)
|
||||
goto out_uninit_mvrp;
|
||||
|
||||
err = netdev_upper_dev_link(real_dev, dev);
|
||||
err = netdev_upper_dev_link(real_dev, dev, extack);
|
||||
if (err)
|
||||
goto out_unregister_netdev;
|
||||
|
||||
|
|
@ -270,7 +270,7 @@ static int register_vlan_device(struct net_device *real_dev, u16 vlan_id)
|
|||
vlan->flags = VLAN_FLAG_REORDER_HDR;
|
||||
|
||||
new_dev->rtnl_link_ops = &vlan_link_ops;
|
||||
err = register_vlan_dev(new_dev);
|
||||
err = register_vlan_dev(new_dev, NULL);
|
||||
if (err < 0)
|
||||
goto out_free_newdev;
|
||||
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ void vlan_dev_get_realdev_name(const struct net_device *dev, char *result);
|
|||
int vlan_check_real_dev(struct net_device *real_dev,
|
||||
__be16 protocol, u16 vlan_id);
|
||||
void vlan_setup(struct net_device *dev);
|
||||
int register_vlan_dev(struct net_device *dev);
|
||||
int register_vlan_dev(struct net_device *dev, struct netlink_ext_ack *extack);
|
||||
void unregister_vlan_dev(struct net_device *dev, struct list_head *head);
|
||||
bool vlan_dev_inherit_address(struct net_device *dev,
|
||||
struct net_device *real_dev);
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ static int vlan_newlink(struct net *src_net, struct net_device *dev,
|
|||
if (err < 0)
|
||||
return err;
|
||||
|
||||
return register_vlan_dev(dev);
|
||||
return register_vlan_dev(dev, extack);
|
||||
}
|
||||
|
||||
static inline size_t vlan_qos_map_size(unsigned int n)
|
||||
|
|
|
|||
Loading…
Reference in a new issue