OSDN Git Service

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)
commitf28c020fb488e1a8b87469812017044bef88aa2b
treee6a41fc8606acda115f3ba838c6a488a5c9d3057
parentd7f7e0018b96fd1a30a968faa9464eb57372c1ec
net: restore call to netdev_queue_numa_node_write when resetting XPS

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>
net/core/dev.c