From patchwork Mon Jun 20 11:01:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balasubramanian Manoharan X-Patchwork-Id: 70441 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp1449458qgy; Mon, 20 Jun 2016 04:02:59 -0700 (PDT) X-Received: by 10.55.42.12 with SMTP id q12mr21922466qkh.38.1466420579075; Mon, 20 Jun 2016 04:02:59 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id g192si47249217qke.187.2016.06.20.04.02.58; Mon, 20 Jun 2016 04:02:59 -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 BE3CB68019; Mon, 20 Jun 2016 11:02:58 +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 2767D61799; Mon, 20 Jun 2016 11:02:32 +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 DAB5461799; Mon, 20 Jun 2016 11:02:25 +0000 (UTC) Received: from mail-pa0-f51.google.com (mail-pa0-f51.google.com [209.85.220.51]) by lists.linaro.org (Postfix) with ESMTPS id B0603635C5 for ; Mon, 20 Jun 2016 11:02:04 +0000 (UTC) Received: by mail-pa0-f51.google.com with SMTP id hl6so49998169pac.2 for ; Mon, 20 Jun 2016 04:02:04 -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:in-reply-to :references; bh=ZFNEQZBMAK7qbQInq42xKLdiVmAfGOZ4Ajd//yLtWTE=; b=cR4hfRL9PjxSSerrRneRNeWhl5M7MNJl514GYXm+yc5xiRAWr+REN9JKloMQVrkvAz 0pB8ggYBnDfLy71xsYwh7YXj4GuX6G0bw9HMqZs3RmP/UVJEBKStfekAQ3iywB50nu5R NLcBq0RdbNOzF77pt52tS9RJ9pow8SD1krRndXgNpFwDqM3pSvXBIOyXwQ08WXREQIF1 V8i9gtBzdzqiWSwAptkwqqL63Ej1lv0kPxryKUTWUMGr+EZ8SRgZwhPvYWwU+pHUS+iP mRxRFPcTKUNizLDCxOr8sykbI2ANGK0wvOO11UuHZ75DJhqG/FxdOIehD/Pij2GHXnwq 4IIw== X-Gm-Message-State: ALyK8tILaexDH2CqjZ3i/efgY+xtl/h6J2Z3hSR84x9AgyGKw1MIu3C+iRGaMh4pXlYrq6ToYgk= X-Received: by 10.66.12.102 with SMTP id x6mr21298696pab.151.1466420523905; Mon, 20 Jun 2016 04:02:03 -0700 (PDT) Received: from localhost.localdomain ([122.166.219.57]) by smtp.gmail.com with ESMTPSA id r7sm30267838pfa.3.2016.06.20.04.02.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 20 Jun 2016 04:02:03 -0700 (PDT) From: Balasubramanian Manoharan To: lng-odp@lists.linaro.org Date: Mon, 20 Jun 2016 16:31:39 +0530 Message-Id: <1466420499-25796-3-git-send-email-bala.manoharan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1466420499-25796-1-git-send-email-bala.manoharan@linaro.org> References: <1466420499-25796-1-git-send-email-bala.manoharan@linaro.org> X-Topics: patch Cc: petri.savolainen@nokia.com, spinney@mellanox.com Subject: [lng-odp] [PATCH/API-NEXT 3/3] example: traffic_mngr: support for pktio interface in 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" Example modifications to support pktio interface in TM system Signed-off-by: Balasubramanian Manoharan --- test/validation/traffic_mngr/traffic_mngr.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/validation/traffic_mngr/traffic_mngr.c b/test/validation/traffic_mngr/traffic_mngr.c index 0645370..2fcf2fa 100644 --- a/test/validation/traffic_mngr/traffic_mngr.c +++ b/test/validation/traffic_mngr/traffic_mngr.c @@ -323,7 +323,7 @@ static odp_pktio_t pktios[MAX_NUM_IFACES]; static odp_pktin_queue_t pktins[MAX_NUM_IFACES]; static odp_pktout_queue_t pktouts[MAX_NUM_IFACES]; static odp_pktin_queue_t rcv_pktin; -static odp_pktout_queue_t xmt_pktout; +static odp_pktio_t xmt_pktio; static odph_ethaddr_t src_mac; static odph_ethaddr_t dst_mac; @@ -543,7 +543,7 @@ static int open_pktios(void) } if (2 <= num_ifaces) { - xmt_pktout = pktouts[0]; + xmt_pktio = pktios[0]; rcv_pktin = pktins[1]; ret = odp_pktio_start(pktios[1]); if (ret != 0) { @@ -551,7 +551,7 @@ static int open_pktios(void) return -1; } } else { - xmt_pktout = pktouts[0]; + xmt_pktio = pktios[0]; rcv_pktin = pktins[0]; } @@ -1627,7 +1627,7 @@ static int create_tm_system(void) } egress.egress_kind = ODP_TM_EGRESS_PKT_IO; - egress.pktout = xmt_pktout; + egress.pktio = xmt_pktio; snprintf(tm_name, sizeof(tm_name), "TM_system_%u", num_odp_tm_systems); odp_tm = odp_tm_create(tm_name, &requirements, &egress);