diff options
author | James Chapman <jchapman@katalix.com> | 2024-07-29 17:38:00 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-07-31 10:25:12 +0200 |
commit | 2e7a280692bf43940728b7f6ca6a52ebf641a6f5 (patch) | |
tree | 245f9eec940a74888e9621f741e6bb97a561da57 /net/ipv4/ip_output.c | |
parent | net/tcp: Expand goo.gl link (diff) | |
download | linux-2e7a280692bf43940728b7f6ca6a52ebf641a6f5.tar.xz linux-2e7a280692bf43940728b7f6ca6a52ebf641a6f5.zip |
l2tp: lookup tunnel from socket without using sk_user_data
l2tp_sk_to_tunnel derives the tunnel from sk_user_data. Instead,
lookup the tunnel by walking the tunnel IDR for a tunnel using the
indicated sock. This is slow but l2tp_sk_to_tunnel is not used in
the datapath so performance isn't critical.
l2tp_tunnel_destruct needs a variant of l2tp_sk_to_tunnel which does
not bump the tunnel refcount since the tunnel refcount is already 0.
Change l2tp_sk_to_tunnel sk arg to const since it does not modify sk.
Signed-off-by: James Chapman <jchapman@katalix.com>
Signed-off-by: Tom Parkin <tparkin@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions