net/xps: Fix calculation of initial number of xps queues
authorHelge Deller <deller@gmx.de>
Sun, 25 Oct 2015 09:00:32 +0000 (10:00 +0100)
committerHelge Deller <deller@gmx.de>
Sun, 25 Oct 2015 09:00:32 +0000 (10:00 +0100)
commitc59f419bdd1f056e1ceacbd29f7be7bcff746a5d
treec2c07b8db121953681fcd7b94c1622f883263629
parentb696e5e93835cee114f24b5b106c73f9f8503ec0
net/xps: Fix calculation of initial number of xps queues

The existing code breaks on architectures where the L1 cache size
(L1_CACHE_BYTES) is smaller or equal the size of struct xps_map.

The new code ensures that we get at minimum one initial xps queue, or even more
as long as it fits into the next multiple of L1_CACHE_SIZE.

Signed-off-by: Helge Deller <deller@gmx.de>
Acked-by: Alexander Duyck <aduyck@mirantis.com>
include/linux/netdevice.h
This page took 0.024764 seconds and 5 git commands to generate.