net: rps: move received_rps field to a better location
authorEric Dumazet <edumazet@google.com>
Fri, 29 Mar 2024 15:42:25 +0000 (15:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Apr 2024 10:28:32 +0000 (11:28 +0100)
commitd3ae5f4632c107d3c2eeb97a60fecc6a6f9d6fbe
tree56a637e4861e796a3919c4f774c057ce3ab34534
parentc62fdf5b11ef12b89ac2450c25c12bffc3d924c5
net: rps: move received_rps field to a better location

Commit 14d898f3c1b3 ("dev: Move received_rps counter next
to RPS members in softnet data") was unfortunate:

received_rps is dirtied by a cpu and never read by other
cpus in fast path.

Its presence in the hot RPS cache line (shared by many cpus)
is hurting RPS/RFS performance.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h