mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
net: add netlink_ext_ack argument to rtnl_link_ops.validate
Add support for extended error reporting. Signed-off-by: Matthias Schiffer <[email protected]> Acked-by: David Ahern <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
ad744b223c
commit
a8b8a889e3
28 changed files with 63 additions and 33 deletions
|
|
@ -1170,7 +1170,8 @@ static struct pernet_operations ip6gre_net_ops = {
|
|||
.size = sizeof(struct ip6gre_net),
|
||||
};
|
||||
|
||||
static int ip6gre_tunnel_validate(struct nlattr *tb[], struct nlattr *data[])
|
||||
static int ip6gre_tunnel_validate(struct nlattr *tb[], struct nlattr *data[],
|
||||
struct netlink_ext_ack *extack)
|
||||
{
|
||||
__be16 flags;
|
||||
|
||||
|
|
@ -1188,7 +1189,8 @@ static int ip6gre_tunnel_validate(struct nlattr *tb[], struct nlattr *data[])
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int ip6gre_tap_validate(struct nlattr *tb[], struct nlattr *data[])
|
||||
static int ip6gre_tap_validate(struct nlattr *tb[], struct nlattr *data[],
|
||||
struct netlink_ext_ack *extack)
|
||||
{
|
||||
struct in6_addr daddr;
|
||||
|
||||
|
|
@ -1209,7 +1211,7 @@ static int ip6gre_tap_validate(struct nlattr *tb[], struct nlattr *data[])
|
|||
}
|
||||
|
||||
out:
|
||||
return ip6gre_tunnel_validate(tb, data);
|
||||
return ip6gre_tunnel_validate(tb, data, extack);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1885,7 +1885,8 @@ static int __net_init ip6_fb_tnl_dev_init(struct net_device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int ip6_tnl_validate(struct nlattr *tb[], struct nlattr *data[])
|
||||
static int ip6_tnl_validate(struct nlattr *tb[], struct nlattr *data[],
|
||||
struct netlink_ext_ack *extack)
|
||||
{
|
||||
u8 proto;
|
||||
|
||||
|
|
|
|||
|
|
@ -907,7 +907,8 @@ static int __net_init vti6_fb_tnl_dev_init(struct net_device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int vti6_validate(struct nlattr *tb[], struct nlattr *data[])
|
||||
static int vti6_validate(struct nlattr *tb[], struct nlattr *data[],
|
||||
struct netlink_ext_ack *extack)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1406,7 +1406,8 @@ static void __net_init ipip6_fb_tunnel_init(struct net_device *dev)
|
|||
rcu_assign_pointer(sitn->tunnels_wc[0], tunnel);
|
||||
}
|
||||
|
||||
static int ipip6_validate(struct nlattr *tb[], struct nlattr *data[])
|
||||
static int ipip6_validate(struct nlattr *tb[], struct nlattr *data[],
|
||||
struct netlink_ext_ack *extack)
|
||||
{
|
||||
u8 proto;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue