event/dlb2: fix CQ weight array overflow
authorTimothy McDaniel <timothy.mcdaniel@intel.com>
Wed, 6 Jul 2022 21:46:27 +0000 (16:46 -0500)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 11 Jul 2022 20:29:27 +0000 (22:29 +0200)
commitd0e3744b01704ca4883f305fd71433f2cfa5d72b
tree3f7b10f87ef1c9e971a6b68cd52ff016d5d88f60
parent25450594574399ee77105632072e56793c44c7aa
event/dlb2: fix CQ weight array overflow

The cq_weight array must be sized for the maximum number
of eventdev ports, not the maximum number of DLB2
load balanced ports.

This commit fixes the above array sizing bug and resultant
coverity warning.

Coverity issue: 379234
Fixes: ffa46fc4a2b5 ("event/dlb2: support CQ weight")
Cc: stable@dpdk.org
Signed-off-by: Timothy McDaniel <timothy.mcdaniel@intel.com>
drivers/event/dlb2/dlb2.c
drivers/event/dlb2/dlb2_priv.h