diff mbox series

[v2,1/2] fix: cls: invalid CoS index

Message ID 1516348819-27675-2-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [v2,1/2] fix: cls: invalid CoS index | expand

Commit Message

Github ODP bot Jan. 19, 2018, 8 a.m. UTC
From: Balasubramanian Manoharan <bala.manoharan@linaro.org>


Fixes: https://bugs.linaro.org/show_bug.cgi?id=3576

Signed-off-by: Balasubramanian Manoharan <bala.manoharan@linaro.org>

---
/** Email created from pull request 405 (bala-manoharan:bug3576)
 ** https://github.com/Linaro/odp/pull/405
 ** Patch: https://github.com/Linaro/odp/pull/405.patch
 ** Base sha: 77ff03881d844a9d6a4bc773086bd8aaecace541
 ** Merge commit sha: 0d984e3e700ae418eafe1fe25444d1a5508b56c0
 **/
 platform/linux-generic/odp_classification.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/platform/linux-generic/odp_classification.c b/platform/linux-generic/odp_classification.c
index 276430923..9b867576a 100644
--- a/platform/linux-generic/odp_classification.c
+++ b/platform/linux-generic/odp_classification.c
@@ -250,7 +250,7 @@  odp_cos_t odp_cls_cos_create(const char *name, odp_cls_cos_param_t *param)
 				cos->s.num_queue = param->num_queue;
 				_odp_cls_update_hash_proto(cos,
 							   param->hash_proto);
-				tbl_index = cos->s.index * CLS_COS_QUEUE_MAX;
+				tbl_index = i * CLS_COS_QUEUE_MAX;
 				for (j = 0; j < CLS_COS_QUEUE_MAX; j++) {
 					queue = odp_queue_create(NULL, &cos->s.
 								 queue_param);