]> git.hungrycats.org Git - linux/commit
udp_tunnel: Pass struct sock to udp_tunnel_notify_{add,del}_rx_port().
authorKuniyuki Iwashima <kuniyu@google.com>
Sat, 2 May 2026 03:12:58 +0000 (03:12 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 6 May 2026 00:47:04 +0000 (17:47 -0700)
commitaf3f903fbb70eced6394770cd704951767394015
tree39d770c0dbca09ddd88fe1bcccd491c88d495f32
parent8d0012ce1b413c010ead5e3ca71dec6bb49280ff
udp_tunnel: Pass struct sock to udp_tunnel_notify_{add,del}_rx_port().

None of the udp_tunnel users need struct socket in their
fast paths; it is only used for tunnel setup / teardown.

Even udp_tunnel_notify_{add,del}_rx_port() do not need
struct socket.

Let's change udp_tunnel_notify_{add,del}_rx_port() to take
struct sock instead of struct socket.

Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20260502031401.3557229-6-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/geneve.c
drivers/net/vxlan/vxlan_core.c
include/net/udp_tunnel.h
net/ipv4/udp_tunnel_core.c