]> 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)
commit4c5916ae38ee8698ab3a02ffaea8db0986df9bad
treee6a41fc8606acda115f3ba838c6a488a5c9d3057
parent210f6a5f15cb8ca27ddd2debea1a2f518970c6be
net: restore call to netdev_queue_numa_node_write when resetting XPS

Before commit bd0f638886ab ("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: bd0f638886ab ("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