Reactor idle optimal layout3/22/2023 ![]() 21:25 ` jump_label: Add static_key_fast_inc() Dmitry 21:25 ` Dmitry SafonovĢ siblings, 0 replies 8+ messages in threadĪdd a helper to allocate tcp_md5sig_info, that will help later toĭo/allocate things when info allocated, once per socket. 21:25 net/tcp: Dynamically disable TCP-MD5 static key Dmitry Safonov * net/tcp: Separate tcp_md5sig_info allocation into tcp_md5sig_info_add() #define static_key_slow_dec_cpuslocked(key) static_key_slow_dec(key) #define static_key_slow_inc_cpuslocked(key) static_key_slow_inc(key) +#define static_key_fast_inc(key) static_key_slow_inc(key) Return -290,6 +304,7 static inline void static_key_slow_dec(struct static_key *key) Static _always_inline int static_key_count(struct static_key *key) * the inclusion of atomic.h is problematic for inclusion of -251,9 +268,6 extern enum jump_label_type jump_label_init_type(struct jump_entry *entry) * We should be using ATOMIC_INIT() for initializing. + WARN_ON_ONCE(atomic_read(&key->enabled) enabled) +static inline void static_key_fast_inc(struct static_key *key) It doesn't patch jump labels, only adds a user to + * The caller must make sure that the static key can't get disabled while + * static key that must be already enabled + * static_key_fast_inc - adds a user for a static key Include/linux/jump_label.h | 21 ++++++++++++++++++-ġ file changed, 18 insertions(+), 3 deletions(-)ĭiff -git a/include/linux/jump_label.h b/include/linux/jump_label.hĮxtern bool -235,6 +237,21 extern void static_key_enable_cpuslocked(struct static_key *key) Įxtern void static_key_disable_cpuslocked(struct static_key *key) Įxtern enum jump_label_type jump_label_init_type(struct jump_entry *entry) Jason Baron, Josh Poimboeuf, Peter Zijlstra, Steven RostedtĪ helper to add another user for an existing enabled static key. Paolo Abeni, Salam Noureddine, netdev, Ard Biesheuvel, 21:25 ` net/tcp: Disable TCP-MD5 static key on tcp_md5sig_info destruction Dmitry SafonovĢ siblings, 3 replies 8+ messages in thread 21:25 ` net/tcp: Separate tcp_md5sig_info allocation into tcp_md5sig_info_add() Dmitry Safonov 21:25 net/tcp: Dynamically disable TCP-MD5 static key Dmitry 21:25 ` Dmitry Safonov ![]() Net/tcp: Disable TCP-MD5 static key on tcp_md5sig_info destruction Net/tcp: Separate tcp_md5sig_info allocation into Now in attempt to split 36 patches submission, I send this independently. Previously it was submitted as a part of TCP-AO patches set. The last tcp_md5sig_info in system is destroyed. Address this by disabling the static key when Once an MD5 key is introduced in the system the static key is enabledĪnd never disabled. Tcp_md5_needed jump label") is a fast-path optimization aimed at Version static key introduced by commit 6015c71e656b ("tcp: md5: add ![]() Add static_key_fast_inc() helper rather than open-coded atomic_inc() Miller, Dmitry Safonov,įrancesco Ruggeri, Hideaki YOSHIFUJI, Jakub Kicinski, To: linux-kernel, David Ahern, Eric DumazetĬc: Dmitry Safonov, Bob Gilligan, David S. ` (2 more replies) 0 siblings, 3 replies 8+ messages in threadįrom: Dmitry Safonov 21:25 UTC ( / raw) 21:25 ` jump_label: Add static_key_fast_inc() Dmitry Safonov Net/tcp: Dynamically disable TCP-MD5 static key LKML Archive on help / color / mirror / Atom feed * net/tcp: Dynamically disable TCP-MD5 static key 21:25 Dmitry Safonov
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |