diff mbox series

[v1,1/1] fix: cls: invalid CoS index

Message ID 1516294808-4916-2-git-send-email-odpbot@yandex.ru
State Superseded
Headers show
Series [v1,1/1] fix: cls: invalid CoS index | expand

Commit Message

Github ODP bot Jan. 18, 2018, 5 p.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: fe7f186494001dc1d890cc1e04496bea0b98aa99
 **/
 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);