net: Refactor removal of queues from XPS map and apply on num_tc changes
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 28 Oct 2016 15:46:49 +0000 (11:46 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Oct 2016 19:00:48 +0000 (15:00 -0400)
commit6234f87407cb2c02a5828e161225e5a84163dc85
tree18b414bc9795bb4356938bbff7c31debd4cfbd14
parent8d059b0f6f5b1d3acf829454e1087818ad660058
net: Refactor removal of queues from XPS map and apply on num_tc changes

This patch updates the code for removing queues from the XPS map and makes
it so that we can apply the code any time we change either the number of
traffic classes or the mapping of a given block of queues.  This way we
avoid having queues pulling traffic from a foreign traffic class.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c