Jakub Kicinski says:
====================
net: lockless stop/wake combo macros
A lot of drivers follow the same scheme to stop / start queues
without introducing locks between xmit and NAPI tx completions.
I'm guessing they all copy'n'paste each other's code.
The original code dates back all the way to e1000 and Linux 2.6.19.
v3: https://lore.kernel.org/all/
20230405223134.94665-1-kuba@kernel.org/
v2: https://lore.kernel.org/all/
20230401051221.
3160913-2-kuba@kernel.org/
v1: https://lore.kernel.org/all/
20230322233028.269410-1-kuba@kernel.org/
rfc: https://lore.kernel.org/all/
20230311050130.115138-1-kuba@kernel.org/
====================
Link: https://lore.kernel.org/r/20230407012536.273382-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>