]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: enable timestamp static key if CPU
authorMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Apr 2024 15:36:40 +0000 (12:36 -0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 4 Apr 2024 02:14:53 +0000 (19:14 -0700)
commit2f3c7195a702178629575b637f3f9a91eabdab73
tree2e29ca607c9b48d7bab415405e3cc303ca27078b
parent34c58c89feb3eefaf64e9ddf69b7e0f7c807414a
net: enable timestamp static key if CPU

For systems that use CPU isolation (via nohz_full), creating or destroying
a socket with SO_TIMESTAMP, SO_TIMESTAMPNS or SO_TIMESTAMPING with flag
SOF_TIMESTAMPING_RX_SOFTWARE will cause a static key to be enabled/disabled.
This in turn causes undesired IPIs to isolated CPUs.

So enable the static key unconditionally, if CPU isolation is enabled,
thus avoiding the IPIs.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://lore.kernel.org/r/ZgrUiLLtbEUf9SFn@tpad
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/dev.c