From patchwork Mon Apr 25 12:31:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balasubramanian Manoharan X-Patchwork-Id: 66572 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp1009419qge; Mon, 25 Apr 2016 05:32:29 -0700 (PDT) X-Received: by 10.107.179.136 with SMTP id c130mr22623474iof.99.1461587545550; Mon, 25 Apr 2016 05:32:25 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 11si10658359ioj.13.2016.04.25.05.32.25; Mon, 25 Apr 2016 05:32:25 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 0C6DC61864; Mon, 25 Apr 2016 12:32:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 9621D61865; Mon, 25 Apr 2016 12:32:18 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 933B261865; Mon, 25 Apr 2016 12:32:13 +0000 (UTC) Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by lists.linaro.org (Postfix) with ESMTPS id D2F3361863 for ; Mon, 25 Apr 2016 12:32:12 +0000 (UTC) Received: by mail-pa0-f44.google.com with SMTP id zm5so64342779pac.0 for ; Mon, 25 Apr 2016 05:32:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=biL7iwJXhlLpR4NGXAZwdG2Sg6c3ZKnOEc0oteAMrjc=; b=gN4W/hvylc4duVVH5ddUnwb6LD6hDq8R79PDqxQcwLqGiCXvVaVB2njPLt9s0DNpto AfXlMofVM7AVuouepJjm6RzaTCNMD4R9GoQgeFWfg18liex+89bgof3n4rxtraWLezaE pqc/ItWW28vRNvlnrbhvchQUGUGlxizYVULQKbhqXHzHRSaMFWs+OAzmcva0fGwQkyib MLUIDC15WuVTFZSqB0WBLgGUEw1dCNqs/PyHD9r18TYmv/n7B4NBSx6Iik9/j0eZmCCa SUEIhnRcSL6mS28dkQIsYoEvYSjPxPVrcZzQXQ7P687KIyqb4JdxJwHq9RIhPmuof5hH lnuA== X-Gm-Message-State: AOPr4FVmxhiJwvtvgeGkoML7YNEtI1HG/2du+FYiOmbJS7J7XRs9yCvtuVkinTf7BrBNAD5SIec= X-Received: by 10.66.122.139 with SMTP id ls11mr48706992pab.14.1461587532198; Mon, 25 Apr 2016 05:32:12 -0700 (PDT) Received: from localhost.localdomain ([122.166.219.57]) by smtp.gmail.com with ESMTPSA id xd14sm10535762pac.6.2016.04.25.05.32.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Apr 2016 05:32:11 -0700 (PDT) From: Balasubramanian Manoharan To: lng-odp@lists.linaro.org Date: Mon, 25 Apr 2016 18:01:55 +0530 Message-Id: <1461587516-22980-1-git-send-email-bala.manoharan@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: Classification Subject: [lng-odp] [RFC 1/2] api: classification: Add queue group to classification X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Adds queue group to classification Signed-off-by: Balasubramanian Manoharan --- include/odp/api/spec/classification.h | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/include/odp/api/spec/classification.h b/include/odp/api/spec/classification.h index 6eca9ab..cf56852 100644 --- a/include/odp/api/spec/classification.h +++ b/include/odp/api/spec/classification.h @@ -126,6 +126,12 @@ typedef struct odp_cls_capability_t { /** A Boolean to denote support of PMR range */ odp_bool_t pmr_range_supported; + + /** A Boolean to denote support of queue group */ + odp_bool_t queue_group_supported; + + /** A Boolena to denote support of queue */ + odp_bool_t queue_supported; } odp_cls_capability_t; /** @@ -162,7 +168,18 @@ typedef enum { * Used to communicate class of service creation options */ typedef struct odp_cls_cos_param { - odp_queue_t queue; /**< Queue associated with CoS */ + /** If True, odp_queue_t is linked with CoS, + * if False odp_queue_group_t is linked with CoS. + */ + odp_bool_t enable_queue; + + typedef union { + /** Queue associated with CoS */ + odp_queue_t queue; + + /** Queue Group associated with CoS */ + odp_queue_group_t queue_group; + }; odp_pool_t pool; /**< Pool associated with CoS */ odp_cls_drop_t drop_policy; /**< Drop policy associated with CoS */ } odp_cls_cos_param_t;