diff options
author | Kuniyuki Iwashima <kuniyu@google.com> | 2025-07-16 22:08:08 +0000 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-07-17 16:25:20 -0700 |
commit | 3dfe0b57dcda070d9f1ed2bfb3a9bf0ec8632e08 (patch) | |
tree | aee5a29aec04d7626b46ee34c045ac4a63a13b6f /net/unix/af_unix.c | |
parent | f5046fbc1b6d8c5168d47a617f368f9d4a025e34 (diff) |
neighbour: Allocate skb in neigh_get().
We will remove RTNL for neigh_get() and run it under RCU instead.
neigh_get_reply() and pneigh_get_reply() allocate skb with GFP_KERNEL.
Let's move the allocation before __dev_get_by_index() in neigh_get().
Now, neigh_get_reply() and pneigh_get_reply() are inlined and
rtnl_unicast() is factorised.
We will convert pneigh_lookup() to __pneigh_lookup() later.
Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20250716221221.442239-4-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions