]> git.droids-corp.org - dpdk.git/commitdiff
event/dlb2: fix initialization of COS bandwidth args
authorTimothy McDaniel <timothy.mcdaniel@intel.com>
Sat, 2 Jul 2022 16:22:36 +0000 (11:22 -0500)
committerJerin Jacob <jerinj@marvell.com>
Mon, 4 Jul 2022 16:04:52 +0000 (18:04 +0200)
This commit fixes a typo and resultant bug that triggered a
coverity warning.

Coverity issue: 4607286
Fixes: bec8901bfe9f ("event/dlb2: support ldb port specific COS")
Cc: stable@dpdk.org
Signed-off-by: Timothy McDaniel <timothy.mcdaniel@intel.com>
drivers/event/dlb2/dlb2.c

index 78433d2fe00195f3e2800031d9abbb70be2ec4ee..a6182a1ac784a426658be4dec742aa5a2e2692ca 100644 (file)
@@ -4540,7 +4540,7 @@ dlb2_primary_eventdev_probe(struct rte_eventdev *dev,
 
                for (id = 0; id < DLB2_COS_NUM_VALS; id++) {
                        set_cos_bw_args.cos_id = id;
-                       set_cos_bw_args.cos_id = dlb2->cos_bw[id];
+                       set_cos_bw_args.bandwidth = dlb2->cos_bw[id];
                        ret = dlb2_iface_set_cos_bw(&dlb2->qm_instance,
                                                    &set_cos_bw_args);
                        if (ret != 0)