summaryrefslogtreecommitdiff
path: root/drivers/platform/surface/aggregator/ssh_parser.c
diff options
context:
space:
mode:
authorYinjun Zhang <yinjun.zhang@corigine.com>2021-12-15 20:37:01 -0500
committerJakub Kicinski <kuba@kernel.org>2021-12-16 20:25:56 -0800
commit7ffd9041de76756665df060c266891325426836f (patch)
tree68d29ace60b637f8c27fc8a04388cc3d3c180037 /drivers/platform/surface/aggregator/ssh_parser.c
parent7cd2802d7496c1fc76f42dc045b48cc16d11df39 (diff)
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 'drivers/platform/surface/aggregator/ssh_parser.c')
0 files changed, 0 insertions, 0 deletions