linux-yocto/net/packet
Eric Dumazet 242124e3e3 net: remove sock_i_uid()
[ Upstream commit c51da3f7a1 ]

Difference between sock_i_uid() and sk_uid() is that
after sock_orphan(), sock_i_uid() returns GLOBAL_ROOT_UID
while sk_uid() returns the last cached sk->sk_uid value.

None of sock_i_uid() callers care about this.

Use sk_uid() which is much faster and inlined.

Note that diag/dump users are calling sock_i_ino() and
can not see the full benefit yet.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Lorenzo Colitti <lorenzo@google.com>
Reviewed-by: Maciej Żenczykowski <maze@google.com>
Link: https://patch.msgid.link/20250620133001.4090592-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: 5d6b58c932ec ("net: lockless sock_i_ino()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-09-09 19:02:26 +02:00
..
af_packet.c net: remove sock_i_uid() 2025-09-09 19:02:26 +02:00
diag.c net: remove sock_i_uid() 2025-09-09 19:02:26 +02:00
internal.h af_packet: move notifier's packet_dev_mc out of rcu critical section 2025-05-27 11:36:26 +02:00
Kconfig
Makefile