From patchwork Wed Sep 7 10:31:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 75623 Delivered-To: patch@linaro.org Received: by 10.140.106.11 with SMTP id d11csp253027qgf; Wed, 7 Sep 2016 03:32:37 -0700 (PDT) X-Received: by 10.55.103.210 with SMTP id b201mr1521001qkc.15.1473244357077; Wed, 07 Sep 2016 03:32:37 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id q78si24607741qka.315.2016.09.07.03.32.29; Wed, 07 Sep 2016 03:32:37 -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 F35016083F; Wed, 7 Sep 2016 10:32:09 +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_H3, RCVD_IN_MSPIKE_WL 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 CCF646071D; Wed, 7 Sep 2016 10:32:06 +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 07ACD6065A; Wed, 7 Sep 2016 10:32:05 +0000 (UTC) Received: from mail-lf0-f49.google.com (mail-lf0-f49.google.com [209.85.215.49]) by lists.linaro.org (Postfix) with ESMTPS id BBA226065A for ; Wed, 7 Sep 2016 10:32:03 +0000 (UTC) Received: by mail-lf0-f49.google.com with SMTP id g62so7543625lfe.3 for ; Wed, 07 Sep 2016 03:32:03 -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=9YlKfKE84Bgzjx5JMRyscg1k8BNzUIRiTSEc+N86MP0=; b=SMi73ydxDkzVzjexj3fg3Q464uRk+/OhOWedGTJ4wBnhCmHNm/PG74llBXSpgcv30W wtmPogu8ZK2nSisgbBrF1xVzeAZsyteXrUakvHXIuDw6vAldmIaFmNhmPVjn3P0HcWSl feLV4dLUtP9J2ELr2/epL0D7lzvVJYErrEDUfEbu2KAAybk4BSa9Jq7fdw6Juo5Uv/0q FC2BQ6iqrTNHnnRkMW0/KA6d1eZcBpqrHtxGbMmDKHH4g3Q4HQVgZVAb5pS1yt8C2fEx 2u0Qv5HeIiXMhQDB6jatrZYvN98e+RxYrwR64nr0E/zQgw//fe66Y/p6Ja9b+yknkQ2P omBw== X-Gm-Message-State: AE9vXwPRs8sgevFNZOTYat6KXk3VOmtAVFWRxpz6d8tqM5t753gFg2RTa5HapnsBvMCaNqSBhq4= X-Received: by 10.25.210.205 with SMTP id j196mr2933451lfg.139.1473244322562; Wed, 07 Sep 2016 03:32:02 -0700 (PDT) Received: from Ubuntu15.localdomain ([194.251.119.207]) by smtp.gmail.com with ESMTPSA id g72sm6525104lji.43.2016.09.07.03.32.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Sep 2016 03:32:01 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Wed, 7 Sep 2016 13:31:58 +0300 Message-Id: <1473244319-11501-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.5.0 X-Topics: Classification Subject: [lng-odp] [RFC API-NEXT 1/2] api: classification: add reclassification input queue 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: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Extend the odp_cls_capability_t struct returned by odp_cls_capability() to indicate a reclassify_queue that can be used to reclassify a packet. Enqueueing a packet to this queue will cause the packet to be reparsed and reclassified and assigned to a new CoS. The packet will not be rebuffered into a new input pool. Signed-off-by: Bill Fischofer --- include/odp/api/spec/classification.h | 3 +++ 1 file changed, 3 insertions(+) -- 2.5.0 diff --git a/include/odp/api/spec/classification.h b/include/odp/api/spec/classification.h index 189c91f..376286d 100644 --- a/include/odp/api/spec/classification.h +++ b/include/odp/api/spec/classification.h @@ -128,6 +128,9 @@ typedef struct odp_cls_capability_t { /** A Boolean to denote support of PMR range */ odp_bool_t pmr_range_supported; + + /** Input queue for reclassification */ + odp_queue_t reclassify_queue; } odp_cls_capability_t; /**