]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Nov 2018 19:06:08 +0000 (11:06 -0800)
commit12ae3871af6436cc5e64b0beb180dc0642d6c4cc
treee6a41fc8606acda115f3ba838c6a488a5c9d3057
parent2b1551bc385403b12a6eadbde9bfb7035a333e93
net: restore call to netdev_queue_numa_node_write when resetting XPS

Before commit 72c6d71aa833 ("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: 72c6d71aa833 ("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>
net/core/dev.c