nvethernet: Fix error in assign default priority

Issue: Due to missing "continue" in loop, default priority
is overwritten with wrong value.

Fix: Add "continue" in if loop to avoid overwriting.

Bug 200512422

Change-Id: Ice32f948bba58ea774d37e7508853a5c058b13ad
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2183011
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Rakesh Goyal
2019-08-25 09:43:59 +05:30
committed by Revanth Kumar Uppala
parent 58301a3ef2
commit 9c4438324c

View File

@@ -2852,8 +2852,9 @@ static void ether_parse_queue_prio(struct ether_priv_data *pdata,
tval[i] = pval[i];
}
/* If Some priority is alreay give to queue or priority in DT more than
* MAX priority, assig default priority to queue with error message
/* If Some priority is already given to queue or priority in DT is
* more than MAX priority, assign default priority to queue with
* error message
*/
for (i = 0; i < num_entries; i++) {
mtlq = osi_core->mtl_queues[i];
@@ -2861,6 +2862,7 @@ static void ether_parse_queue_prio(struct ether_priv_data *pdata,
dev_err(pdata->dev, "%s():Wrong or duplicate priority"
" in DT entry for Q(%d)\n", __func__, mtlq);
pval[mtlq] = val_def;
continue;
}
pval[mtlq] = tval[i];
pmask |= 1U << tval[i];