net: Rename rps_lock to backlog_lock.
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 25 Mar 2024 07:40:31 +0000 (08:40 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 26 Mar 2024 11:17:18 +0000 (12:17 +0100)
commit765b11f8f4e20b7433e4ba4a3e9106a0d59501ed
tree42437207987d5da82b6b362a4d845acb78b73cd1
parent80d2eefcb4c84aa9018b2a997ab3a4c567bc821a
net: Rename rps_lock to backlog_lock.

The rps_lock.*() functions use the inner lock of a sk_buff_head for
locking. This lock is used if RPS is enabled, otherwise the list is
accessed lockless and disabling interrupts is enough for the
synchronisation because it is only accessed CPU local. Not only the list
is protected but also the NAPI state protected.
With the addition of backlog threads, the lock is also needed because of
the cross CPU access even without RPS. The clean up of the defer_list
list is also done via backlog threads (if enabled).

It has been suggested to rename the locking function since it is no
longer just RPS.

Rename the rps_lock*() functions to backlog_lock*().

Suggested-by: Jakub Kicinski <kuba@kernel.org>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/core/dev.c