diff options
author | Alexander Aring <alex.aring@gmail.com> | 2020-03-27 23:00:21 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-30 07:30:57 +0200 |
commit | faee676944dab731c9b2b91cf86c769d291a2237 (patch) | |
tree | 46d0cda33e921c85fb4fc192695e5527c46f3415 /net/ipv6/seg6_local.c | |
parent | net: ipv6: add support for rpl sr exthdr (diff) | |
download | linux-faee676944dab731c9b2b91cf86c769d291a2237.tar.xz linux-faee676944dab731c9b2b91cf86c769d291a2237.zip |
net: add net available in build_state
The build_state callback of lwtunnel doesn't contain the net namespace
structure yet. This patch will add it so we can check on specific
address configuration at creation time of rpl source routes.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/seg6_local.c')
-rw-r--r-- | net/ipv6/seg6_local.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ipv6/seg6_local.c b/net/ipv6/seg6_local.c index 8165802d8e05..52493423f329 100644 --- a/net/ipv6/seg6_local.c +++ b/net/ipv6/seg6_local.c @@ -970,8 +970,9 @@ static int parse_nla_action(struct nlattr **attrs, struct seg6_local_lwt *slwt) return 0; } -static int seg6_local_build_state(struct nlattr *nla, unsigned int family, - const void *cfg, struct lwtunnel_state **ts, +static int seg6_local_build_state(struct net *net, struct nlattr *nla, + unsigned int family, const void *cfg, + struct lwtunnel_state **ts, struct netlink_ext_ack *extack) { struct nlattr *tb[SEG6_LOCAL_MAX + 1]; |