From patchwork Mon Jun 20 11:01:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balasubramanian Manoharan X-Patchwork-Id: 70439 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp1448991qgy; Mon, 20 Jun 2016 04:02:01 -0700 (PDT) X-Received: by 10.55.217.148 with SMTP id q20mr20907195qkl.62.1466420521564; Mon, 20 Jun 2016 04:02:01 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id w18si9886775qtb.129.2016.06.20.04.02.01; Mon, 20 Jun 2016 04:02:01 -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 DAC9D61788; Mon, 20 Jun 2016 11:02:00 +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 E59B66166C; Mon, 20 Jun 2016 11:01:56 +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 A75C061673; Mon, 20 Jun 2016 11:01:55 +0000 (UTC) Received: from mail-pf0-f172.google.com (mail-pf0-f172.google.com [209.85.192.172]) by lists.linaro.org (Postfix) with ESMTPS id E7E0661605 for ; Mon, 20 Jun 2016 11:01:54 +0000 (UTC) Received: by mail-pf0-f172.google.com with SMTP id t190so53292415pfb.3 for ; Mon, 20 Jun 2016 04:01:54 -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=rhOOWjm7aPzZipjl83LQakpJztg4thLNe3eAKL+J/oY=; b=BkhdELQgqyubHqXifZJBfiHvapRuQ9rYimO5KOzc9B3S87QNGVp5Syxcz04+8YzKFb rtYtid4OPksY/DsPBQ5Ao2eOR2D5Ao3y8gWzesj6wR3Am4B/VH3iFbV0eGss6EZcRIvl 4lmQ1JtLLAMM+qp38/2wZhJpj5hKkaMjSeDdrDsGpyzX5mnGiqBmC0FT2Hv7O+L4FYqs 5CekXsYtS1DC6xwhuZi9Nxc+VCxT7G71t5FSoGPygrjUoyH9LvV+kluLBNSZbqxQ8Lei VJZvPLmLHZM/D4gpJjw0bXhNEauNkqhLFzRhDjT3YRolKcJ8/IErNfg0hKt3KX7Y59eF bb6g== X-Gm-Message-State: ALyK8tKXpCs2E4TZFnEwB0WUCmJYMIozE8/e5SpKJTey8Ajq1GzOrX1xHD/zsP38e1F5gdWsXZw= X-Received: by 10.98.58.203 with SMTP id v72mr21327743pfj.113.1466420514141; Mon, 20 Jun 2016 04:01:54 -0700 (PDT) Received: from localhost.localdomain ([122.166.219.57]) by smtp.gmail.com with ESMTPSA id r7sm30267838pfa.3.2016.06.20.04.01.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 20 Jun 2016 04:01:53 -0700 (PDT) From: Balasubramanian Manoharan To: lng-odp@lists.linaro.org Date: Mon, 20 Jun 2016 16:31:37 +0530 Message-Id: <1466420499-25796-1-git-send-email-bala.manoharan@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Cc: petri.savolainen@nokia.com, spinney@mellanox.com Subject: [lng-odp] [PATCH/API-NEXT 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 --- 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..8c4be4b 100644 --- a/include/odp/api/spec/traffic_mngr.h +++ b/include/odp/api/spec/traffic_mngr.h @@ -280,6 +280,12 @@ typedef struct { * expected to do. */ odp_bool_t tm_queue_shaper_supported; + /** egress_fcn_supported indicates whether the tm system supports + * egress function. It is an optional features used to receive the + * packet from the tm system and its performance might be limited. + */ + odp_bool_t egress_fcn_supported; + /** tm_queue_wred_supported indicates that the tm_queues support some * form of Random Early Detection. */ odp_bool_t tm_queue_wred_supported; @@ -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;