From patchwork Wed Dec 9 15:21:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 58151 Delivered-To: patch@linaro.org Received: by 10.112.147.194 with SMTP id tm2csp737565lbb; Wed, 9 Dec 2015 07:21:39 -0800 (PST) X-Received: by 10.140.222.79 with SMTP id s76mr13703836qhb.21.1449674499659; Wed, 09 Dec 2015 07:21:39 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id k6si9320106qhc.54.2015.12.09.07.21.39; Wed, 09 Dec 2015 07:21:39 -0800 (PST) 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; dkim=neutral (body hash did not verify) header.i=@linaro-org.20150623.gappssmtp.com Received: by lists.linaro.org (Postfix, from userid 109) id 1DABC61DAF; Wed, 9 Dec 2015 15:21:39 +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.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, 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 D952B61D46; Wed, 9 Dec 2015 15:21:35 +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 49BC761D49; Wed, 9 Dec 2015 15:21:34 +0000 (UTC) Received: from mail-lf0-f41.google.com (mail-lf0-f41.google.com [209.85.215.41]) by lists.linaro.org (Postfix) with ESMTPS id 49ED461D23 for ; Wed, 9 Dec 2015 15:21:33 +0000 (UTC) Received: by lfaz4 with SMTP id z4so36649180lfa.0 for ; Wed, 09 Dec 2015 07:21:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=scI9c8mxCbLyGtEMmVgcCE3BjTANI1P+7YQE66GhzAc=; b=YKiGBs6rTSdJin72XVB4UAGaecOGxxXYX77UHh2ne0u7MmRPdFwzijTVzHYI2xho2q HwGJftI2VAtmCnJOM074PFtjH2W5612sj5VXxcSFYC1ve87OHzAKgdNYg+0hBgpzhhB3 Ggl371F70wv7irssl6FNbz0ZxeKqveVnvGTTkve1s7K0+W1+9UZ8x2F4D8TO476C6vds T1U4he/1UjT/1GUMvvqxvhfUvVQJzcq6uM3tvnQW2H94XSpGb9VcjhWZZHvdv1yP/yZg fFOnQofFHprtOGjWBEby2h7b4rP1+EXCs/bR3ZOk6xAkurzfBhANx/HSKuRbm1p4+XB5 CzmA== 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=scI9c8mxCbLyGtEMmVgcCE3BjTANI1P+7YQE66GhzAc=; b=MUKgM3KwE7YaIVccTWMZrRj1BxTY4pnbzULLoficevPoDnJL7scuGQkUzma5Tt4l8J c1piMxGmTKorZt+RsQkj3dI0b36wLNdD4odRV81nNRsZJsKishDqUKN6N0WsTaVZusJl 7gvBrPogZjVHpfaY4EQ7vQq8DYBfVKcil4D1CWc3BJCRwB+Nyc8sD1SY1YzeE+7xs6Jk AoXTA1jyhfOTbk0PaORzIyhjYSa1EzwtOF5QKql4KEcP3rfBJrPUsZUoA2U7doRzcibj /6Qt7BxzyL0JnHlGiLGZS37jsmfn2iFHp09yOPb1Wbw0xWegCXAEHz4DGJomxhYUW8Yt WoSQ== X-Gm-Message-State: ALoCoQm6XNCAMLq8YkLjOMxHwFKr6tbZDvRMpA16LL0yR0dPInrRbs8cfGV3QmI7xRr3NFNSxIib1rDx2vzh2O/b2bRaX9Otgg== X-Received: by 10.25.160.213 with SMTP id j204mr2713552lfe.85.1449674492143; Wed, 09 Dec 2015 07:21:32 -0800 (PST) Received: from localhost.localdomain (ppp91-76-173-134.pppoe.mtu-net.ru. [91.76.173.134]) by smtp.gmail.com with ESMTPSA id a2sm1499322lbp.37.2015.12.09.07.21.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Dec 2015 07:21:31 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Wed, 9 Dec 2015 18:21:23 +0300 Message-Id: <1449674483-13657-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv3] api: pktio link 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" Signed-off-by: Maxim Uvarov --- include/odp/api/packet_io.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/odp/api/packet_io.h b/include/odp/api/packet_io.h index 443841e..0df46ba 100644 --- a/include/odp/api/packet_io.h +++ b/include/odp/api/packet_io.h @@ -673,6 +673,17 @@ void odp_pktio_output_queue_param_init(odp_pktio_output_queue_param_t *param); void odp_pktio_print(odp_pktio_t pktio); /** + * Determine if pktio link is up or down for a packet IO interface. + * + * @param[in] pktio Packet IO handle. + * + * @retval 1 link is up + * @retval 0 link is down + * @retval <0 on failure +*/ +int odp_pktio_link(odp_pktio_t pktio); + +/** * @} */