libmemif: fix for memif_init_queues slot math 77/40077/6
authormbly <mbly@ciena.com>
Wed, 6 Dec 2023 20:22:14 +0000 (12:22 -0800)
committerDave Wallace <dwallacelf@gmail.com>
Fri, 12 Jan 2024 03:22:30 +0000 (03:22 +0000)
commit00e9fe6ca771bfbe7ee62e80a44903ffb227cae2
tree7e831e35240435a058a431d175ece17306339b5e
parenta90877982011966740ddba106ef7bd624ecea6c1
libmemif: fix for memif_init_queues slot math

Increase slot variable to u32 to address combinations of num-queues and queue-size that cause slot variable to wrap when declared as u16, e.g. num-queues > 8 && queue-size is 2^12

Type: fix
Change-Id: I5bd6198d60395156a06f1a280ea2594824ceaa9d
Signed-off-by: mbly <mbly@ciena.com>
extras/libmemif/src/main.c