net: improve queue removal readability in __netif_set_xps_queue
Improve the readability of the loop removing tx-queue from unused CPUs/rx-queues in __netif_set_xps_queue. The change should only be cosmetic. Signed-off-by: Antoine Tenart <atenart@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
402fbb992e
commit
132f743b01
@ -2784,13 +2784,16 @@ out_no_new_maps:
|
|||||||
|
|
||||||
/* removes tx-queue from unused CPUs/rx-queues */
|
/* removes tx-queue from unused CPUs/rx-queues */
|
||||||
for (j = 0; j < dev_maps->nr_ids; j++) {
|
for (j = 0; j < dev_maps->nr_ids; j++) {
|
||||||
for (i = tc, tci = j * dev_maps->num_tc; i--; tci++)
|
tci = j * dev_maps->num_tc;
|
||||||
active |= remove_xps_queue(dev_maps, tci, index);
|
|
||||||
if (!netif_attr_test_mask(j, mask, dev_maps->nr_ids) ||
|
for (i = 0; i < dev_maps->num_tc; i++, tci++) {
|
||||||
!netif_attr_test_online(j, online_mask, dev_maps->nr_ids))
|
if (i == tc &&
|
||||||
active |= remove_xps_queue(dev_maps, tci, index);
|
netif_attr_test_mask(j, mask, dev_maps->nr_ids) &&
|
||||||
for (i = dev_maps->num_tc - tc, tci++; --i; tci++)
|
netif_attr_test_online(j, online_mask, dev_maps->nr_ids))
|
||||||
|
continue;
|
||||||
|
|
||||||
active |= remove_xps_queue(dev_maps, tci, index);
|
active |= remove_xps_queue(dev_maps, tci, index);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* free map if not active */
|
/* free map if not active */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user