diff options
author | Alexander Aring <alex.aring@gmail.com> | 2020-03-27 18:00:21 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-29 22:30:57 -0700 |
commit | faee676944dab731c9b2b91cf86c769d291a2237 (patch) | |
tree | 46d0cda33e921c85fb4fc192695e5527c46f3415 /net/core/lwt_bpf.c | |
parent | 8610c7c6e3bd647ff98d21c8bc0580e77bc2f8b3 (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/core/lwt_bpf.c')
-rw-r--r-- | net/core/lwt_bpf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/lwt_bpf.c b/net/core/lwt_bpf.c index 99a6de52b21d..7d3438215f32 100644 --- a/net/core/lwt_bpf.c +++ b/net/core/lwt_bpf.c @@ -367,7 +367,7 @@ static const struct nla_policy bpf_nl_policy[LWT_BPF_MAX + 1] = { [LWT_BPF_XMIT_HEADROOM] = { .type = NLA_U32 }, }; -static int bpf_build_state(struct nlattr *nla, +static int bpf_build_state(struct net *net, struct nlattr *nla, unsigned int family, const void *cfg, struct lwtunnel_state **ts, struct netlink_ext_ack *extack) |