From patchwork Tue Jun 28 12:05:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balasubramanian Manoharan X-Patchwork-Id: 71072 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp1547066qgy; Tue, 28 Jun 2016 05:06:20 -0700 (PDT) X-Received: by 10.200.57.116 with SMTP id t49mr1197829qtb.58.1467115580808; Tue, 28 Jun 2016 05:06:20 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 124si3573070qkk.34.2016.06.28.05.06.20; Tue, 28 Jun 2016 05:06:20 -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 0EE8E6886C; Tue, 28 Jun 2016 12:06:20 +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 65BCB6885D; Tue, 28 Jun 2016 12:06:16 +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 5A98668864; Tue, 28 Jun 2016 12:06:14 +0000 (UTC) Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by lists.linaro.org (Postfix) with ESMTPS id 6EED968577 for ; Tue, 28 Jun 2016 12:06:13 +0000 (UTC) Received: by mail-pa0-f47.google.com with SMTP id wo6so6073319pac.3 for ; Tue, 28 Jun 2016 05:06:13 -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=jK0HSDok//FB0wiB1KkUAP9Z9RcC4qpvQHYy/4SqRRs=; b=C4zirdtB58i8ojQ8uZfixbqO2Z35jzWV9CW8jYLeJkDPVH8U8+Xrl1u9TD+b9FWAKD BQN8CzyTXnWPrgqdDGsnqINvsRNPTW6sQtZnI42awf+WV5uIITRQoTb9VQdKqEZzvwEP 3NQ3/I65pBgr/QicuKCTixCNam7FD+S2zBCau8Sek2Y8XxLJylFq8hvZ+Pmty8z531QP Ehm+Ynq2jN9kvQjY7W0HC42RaXjZIzWpj6OCzLe1fvLnXWfVIO2YH0O3btNx03dRrKP7 FY1vjqYe0rFfBradW9NbRhLDGjGcyhAzJt8SVM7DT3SBC3dV7J5k3gRfqKZ19X54Fdt5 u+yA== X-Gm-Message-State: ALyK8tKs5OHIzVo0Oe0YfC85QFwbgFBIKB96k4nR9OLK/DYcKPGg2SyJMcWC5+4R7y5gDuJeEcg= X-Received: by 10.66.27.41 with SMTP id q9mr1181948pag.45.1467115572698; Tue, 28 Jun 2016 05:06:12 -0700 (PDT) Received: from localhost.localdomain ([122.166.219.57]) by smtp.gmail.com with ESMTPSA id i68sm6437057pfe.64.2016.06.28.05.06.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Jun 2016 05:06:12 -0700 (PDT) From: Balasubramanian Manoharan To: lng-odp@lists.linaro.org Date: Tue, 28 Jun 2016 17:35:54 +0530 Message-Id: <1467115556-8187-1-git-send-email-bala.manoharan@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCH/API-NEXTv2 1/3] api: traffic_mngr: Add pktio interface to odp_tm_egress_t struct 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" Replaces pktio interface as input to TM system instead of odp_pktout_queue_t.This creates an 1 to 1 mapping between a TM system and pktio interface. Signed-off-by: Balasubramanian Manoharan --- v2: Incorporates review comments from Petri include/odp/api/spec/traffic_mngr.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/odp/api/spec/traffic_mngr.h b/include/odp/api/spec/traffic_mngr.h index 83b89e7..c9e6f8f 100644 --- a/include/odp/api/spec/traffic_mngr.h +++ b/include/odp/api/spec/traffic_mngr.h @@ -270,6 +270,12 @@ typedef struct { * have their fan_in only from tm_queues. */ uint8_t max_levels; + /** egress_fcn_supported indicates whether the tm system supports + * egress function. It is an optional feature used to receive the + * packet from the tm system and its performance might be limited. + */ + odp_bool_t egress_fcn_supported; + /** tm_queue_shaper_supported indicates that the tm_queues support * proper TM shaping. Note that TM Shaping is NOT the same thing as * Ingress Metering/Policing as specified by RFC 2697 (A Single Rate @@ -467,7 +473,7 @@ typedef struct { odp_tm_egress_kind_t egress_kind; /**< Union discriminator */ union { - odp_pktout_queue_t pktout; + odp_pktio_t pktio; odp_tm_egress_fcn_t egress_fcn; }; } odp_tm_egress_t;