[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240724163316.GC97837@kernel.org>
Date: Wed, 24 Jul 2024 17:33:16 +0100
From: Simon Horman <horms@...nel.org>
To: James Chapman <jchapman@...alix.com>
Cc: netdev@...r.kernel.org, davem@...emloft.net, edumazet@...gle.com,
kuba@...nel.org, pabeni@...hat.com, dsahern@...nel.org,
tparkin@...alix.com
Subject: Re: [RFC PATCH 01/15] l2tp: lookup tunnel from socket without using
sk_user_data
On Tue, Jul 23, 2024 at 02:51:29PM +0100, James Chapman wrote:
> 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.
nit: This needs a Signed-off-by line
> ---
> net/l2tp/l2tp_core.c | 52 ++++++++++++++++++++++++++++++++++++--------
> net/l2tp/l2tp_core.h | 5 +----
> net/l2tp/l2tp_ip.c | 7 ++++--
> net/l2tp/l2tp_ip6.c | 7 ++++--
> 4 files changed, 54 insertions(+), 17 deletions(-)
...
Powered by blists - more mailing lists