net: move the xps maps to an array
authorAntoine Tenart <atenart@kernel.org>
Thu, 18 Mar 2021 18:37:46 +0000 (19:37 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Mar 2021 21:56:22 +0000 (14:56 -0700)
commit044ab86d431b59b88966457dbb62679f274ec442
tree1b7b15ba3b79d8b2cc18fa2245659112980d1259
parent6f36158e058409ec5ceb4290541e77ae2648fc86
net: move the xps maps to an array

Move the xps maps (xps_cpus_map and xps_rxqs_map) to an array in
net_device. That will simplify a lot the code removing the need for lots
of if/else conditionals as the correct map will be available using its
offset in the array.

This should not modify the xps maps behaviour in any way.

Suggested-by: Alexander Duyck <alexander.duyck@gmail.com>
Signed-off-by: Antoine Tenart <atenart@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c
include/linux/netdevice.h
net/core/dev.c
net/core/net-sysfs.c