net: restore call to netdev_queue_numa_node_write when resetting XPS
authorSabrina Dubroca <sd@queasysnail.net>
Thu, 29 Nov 2018 13:14:48 +0000 (14:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Dec 2018 08:24:29 +0000 (09:24 +0100)
commitb4b8a71c72badf9a33cb0ae092141a601e69d223
tree6631c2be9ea4a92e56b71739fee8630663cee7d0
parenta275c66b4d81ba9284bea79a125018a1cbe70db1
net: restore call to netdev_queue_numa_node_write when resetting XPS

[ Upstream commit f28c020fb488e1a8b87469812017044bef88aa2b ]

Before commit 80d19669ecd3 ("net: Refactor XPS for CPUs and Rx queues"),
netif_reset_xps_queues() did netdev_queue_numa_node_write() for all the
queues being reset. Now, this is only done when the "active" variable in
clean_xps_maps() is false, ie when on all the CPUs, there's no active
XPS mapping left.

Fixes: 80d19669ecd3 ("net: Refactor XPS for CPUs and Rx queues")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/core/dev.c