]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: rps: add rps_input_queue_head_add() helper
authorEric Dumazet <edumazet@google.com>
Fri, 29 Mar 2024 15:42:24 +0000 (15:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Apr 2024 10:28:32 +0000 (11:28 +0100)
commitc62fdf5b11ef12b89ac2450c25c12bffc3d924c5
treed2e567fd8a48d2b68c7f8d6d9dbaedb99f9a2c1c
parent36b83ffcf209a2e6099dae1070df6a2001dfab27
net: rps: add rps_input_queue_head_add() helper

process_backlog() can batch increments of sd->input_queue_head,
saving some memory bandwidth.

Also add READ_ONCE()/WRITE_ONCE() annotations around
sd->input_queue_head accesses.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/rps.h
net/core/dev.c