summaryrefslogtreecommitdiff
path: root/tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorPetr Machata <petrm@nvidia.com>2026-01-21 17:43:40 +0100
committerJakub Kicinski <kuba@kernel.org>2026-01-25 14:57:37 -0800
commit795258891c944f37075ab8d3bc7415f5875e897a (patch)
treeb3696c72c072d670e3eaa32f49dfe0f70198dac6 /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
parenta228a7e681b885147699cd4eed636a37e2212933 (diff)
net: core: neighbour: Reorder netlink & internal notification
The netlink message needs to be send inside the critical section where the neighbor is changed, so that it reflects the notified-upon neighbor state. On the other hand, there is no such need in case of notifier chain: the listeners do not assume lock, and often in fact just schedule a delayed work to act on the neighbor later. At least one in fact also takes the neighbor lock. This requires that the netlink notification be done before the internal notifier chain message is sent. That is safe to do, because the current listeners, as well as __neigh_notify(), only read the updated neighbor fields, and never modify them. (Apart from locking.) Signed-off-by: Petr Machata <petrm@nvidia.com> Reviewed-by: Ido Schimmel <idosch@nvidia.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/f3ef74d5460f14c4d102b8a5857d4a6624da9a5a.1769012464.git.petrm@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions