diff options
author | Shmulik Ladkani <shmulik.ladkani@gmail.com> | 2016-05-26 20:16:36 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-04-13 10:31:27 +0200 |
commit | d7021e80e2321e7befa3e60dc24f48767eedd56c (patch) | |
tree | ed98bd0dec543c7a64fd320488e730a3b16af7c1 /net/dsa/slave.c | |
parent | 890a9c4b3feff8287fa0ee2f82a8d788beeb8235 (diff) |
net: l2tp: Make l2tp_ip6 namespace aware
commit 0e6b5259824e97a0f7e7b450421ff12865d3b0e2 upstream.
l2tp_ip6 tunnel and session lookups were still using init_net, although
the l2tp core infrastructure already supports lookups keyed by 'net'.
As a result, l2tp_ip6_recv discarded packets for tunnels/sessions
created in namespaces other than the init_net.
Fix, by using dev_net(skb->dev) or sock_net(sk) where appropriate.
Signed-off-by: Shmulik Ladkani <shmulik.ladkani@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/dsa/slave.c')
0 files changed, 0 insertions, 0 deletions