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>
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)