summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorYinjun Zhang <yinjun.zhang@corigine.com>2021-12-16 04:37:01 +0300
committerJakub Kicinski <kuba@kernel.org>2021-12-17 07:25:56 +0300
commit7ffd9041de76756665df060c266891325426836f (patch)
tree68d29ace60b637f8c27fc8a04388cc3d3c180037 /include/linux
parent7cd2802d7496c1fc76f42dc045b48cc16d11df39 (diff)
downloadlinux-7ffd9041de76756665df060c266891325426836f.tar.xz
nfp: flower: refine the use of circular buffer
The current use of circular buffer to manage stats_context_id is very obscure, and it will cause problem if its element size is not power of two. So change the use more straightforward and scalable, and also change that for mask_id to keep consistency. Signed-off-by: Yinjun Zhang <yinjun.zhang@corigine.com> Signed-off-by: Simon Horman <simon.horman@corigine.com> Link: https://lore.kernel.org/r/1639618621-5857-1-git-send-email-yinjun.zhang@corigine.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions