path: root/net/mpls/mpls_iptunnel.c
diff options
authorAlexander Aring <alex.aring@gmail.com>2020-03-27 18:00:21 -0400
committerDavid S. Miller <davem@davemloft.net>2020-03-29 22:30:57 -0700
commitfaee676944dab731c9b2b91cf86c769d291a2237 (patch)
tree46d0cda33e921c85fb4fc192695e5527c46f3415 /net/mpls/mpls_iptunnel.c
parent8610c7c6e3bd647ff98d21c8bc0580e77bc2f8b3 (diff)
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/mpls/mpls_iptunnel.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mpls/mpls_iptunnel.c b/net/mpls/mpls_iptunnel.c
index 44b675016393..2def85718d94 100644
--- a/net/mpls/mpls_iptunnel.c
+++ b/net/mpls/mpls_iptunnel.c
@@ -162,7 +162,7 @@ drop:
return -EINVAL;
-static int mpls_build_state(struct nlattr *nla,
+static int mpls_build_state(struct net *net, struct nlattr *nla,
unsigned int family, const void *cfg,
struct lwtunnel_state **ts,
struct netlink_ext_ack *extack)