Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c59f419b authored by Helge Deller's avatar Helge Deller
Browse files

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: default avatarHelge Deller <deller@gmx.de>
Acked-by: default avatarAlexander Duyck <aduyck@mirantis.com>
parent b696e5e9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment