This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "".
The branch, master has been updated via 27480d82bd93a881ae683a3c314c11042a68ce29 (commit) from fbcf3e60c699c5f450fd6a4e7a5c78980b3512c5 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit 27480d82bd93a881ae683a3c314c11042a68ce29 Author: Balasubramanian Manoharan bala.manoharan@linaro.org Date: Fri Jan 19 01:44:15 2018 +0530
linux-gen: cls: fix: update capability to return max hash queues
updates cls capability to return max supported hash queues Fixes: https://bugs.linaro.org/show_bug.cgi?id=3579
Signed-off-by: Balasubramanian Manoharan bala.manoharan@linaro.org Reviewed-by: Bill Fischofer bill.fischofer@linaro.org Signed-off-by: Maxim Uvarov maxim.uvarov@linaro.org
diff --git a/platform/linux-generic/odp_classification.c b/platform/linux-generic/odp_classification.c index b41a5fd8..df49d0e4 100644 --- a/platform/linux-generic/odp_classification.c +++ b/platform/linux-generic/odp_classification.c @@ -194,6 +194,7 @@ int odp_cls_capability(odp_cls_capability_t *capability) capability->back_pressure = ODP_SUPPORT_NO; capability->threshold_red.all_bits = 0; capability->threshold_bp.all_bits = 0; + capability->max_hash_queues = CLS_COS_QUEUE_MAX; return 0; }
@@ -226,8 +227,8 @@ odp_cos_t odp_cls_cos_create(const char *name, odp_cls_cos_param_t *param) cos_t *cos; uint32_t tbl_index;
- /* Packets are dropped if Queue or Pool is invalid*/ - if (param->num_queue > CLS_COS_QUEUE_MAX) + /* num_queue should not be zero */ + if (param->num_queue > CLS_COS_QUEUE_MAX || param->num_queue < 1) return ODP_COS_INVALID;
drop_policy = param->drop_policy;
-----------------------------------------------------------------------
Summary of changes: platform/linux-generic/odp_classification.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
hooks/post-receive