summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorCong Wang <cong.wang@bytedance.com>2023-01-14 06:01:36 +0300
committerDavid S. Miller <davem@davemloft.net>2023-01-16 16:40:54 +0300
commitc4d48a58f32c5972174a1d01c33b296fe378cce0 (patch)
tree5c7810a054cf7bfdd5f526949d50e15e3e5843ec /block
parent3a415d59c1dbec9d772dbfab2d2520d98360caae (diff)
downloadlinux-c4d48a58f32c5972174a1d01c33b296fe378cce0.tar.xz
l2tp: convert l2tp_tunnel_list to idr
l2tp uses l2tp_tunnel_list to track all registered tunnels and to allocate tunnel ID's. IDR can do the same job. More importantly, with IDR we can hold the ID before a successful registration so that we don't need to worry about late error handling, it is not easy to rollback socket changes. This is a preparation for the following fix. Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Cc: Guillaume Nault <gnault@redhat.com> Cc: Jakub Sitnicki <jakub@cloudflare.com> Cc: Eric Dumazet <edumazet@google.com> Cc: Tom Parkin <tparkin@katalix.com> Signed-off-by: Cong Wang <cong.wang@bytedance.com> Reviewed-by: Guillaume Nault <gnault@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions