From patchwork Fri Dec 11 12:44:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 58277 Delivered-To: patch@linaro.org Received: by 10.112.157.166 with SMTP id wn6csp108877lbb; Fri, 11 Dec 2015 04:45:27 -0800 (PST) X-Received: by 10.140.141.138 with SMTP id 132mr14517038qhn.74.1449837926930; Fri, 11 Dec 2015 04:45:26 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id q15si19940860qkh.128.2015.12.11.04.45.26; Fri, 11 Dec 2015 04:45:26 -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 6402C61D9E; Fri, 11 Dec 2015 12:45:26 +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 ACBBC61D2C; Fri, 11 Dec 2015 12:45:22 +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 1ECCD61D78; Fri, 11 Dec 2015 12:45:21 +0000 (UTC) Received: from mail-lf0-f47.google.com (mail-lf0-f47.google.com [209.85.215.47]) by lists.linaro.org (Postfix) with ESMTPS id A73BC61C8B for ; Fri, 11 Dec 2015 12:44:48 +0000 (UTC) Received: by lfed137 with SMTP id d137so27044111lfe.3 for ; Fri, 11 Dec 2015 04:44:47 -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=livQEfDhJswI00SrRTQvQtxzohL7DwKVHMgeSF4yLy4=; b=CI7KRrm8dPUvalmAY58P8lMDdrYmSdRO7HiOpHIdEKTLC7mH3gt6mxIdGC8QGVbSSf iBtBjkjx7160B4QEhUM9t2+6T7PAn7InO1buzOuDNhKZeXG5k8sqJS1yP8O0LKqjUuiO Vp54IUflmLt1+xSqIQB8SuGEh5PX00kpXhQpGBqd5vkZ0/xXajHbMY4A5csSKW9fGG0w YmoPGmGmKqzyO+7ywqrrHEuSBtqagMiLQmg1zwNToCIznMJdwvW3BTBsCiMQ6st4j95W CiWXp1BvbDTk3L2YzmHlhs5CUFGyY0FC1IIpf1lNgRbWs8N0nIRoQ8xXnM5yN+Ue3ik/ 13Ng== 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=livQEfDhJswI00SrRTQvQtxzohL7DwKVHMgeSF4yLy4=; b=HMbIJeolvmE33qSMeF7GyQTSM7kvDa4xXVNeNUoTU3Xsmnzk1SJ4QJCDk/ugXbLNSt KW+besKO7YYv9ytxZsU4Keq5fPYxkXKGtHucnhgly/auYSVLEY1D3pd8gREbCqZmo1NG HoQK7fcTRR32FyR7a/K/fAsNpxYqdn1nyFDqo/D0wSsTyDS0JU8EfM9gooKpH4y72CLw u0vR9helOoPhAMbiSQS//heabFtAVkj8B7w9iApvHiHYTEAG3d2pc1BucZaLFNTuAE93 Atf24XzgO1fGTiNn2yLEFRZwRw2oTlhEbhmaZ9K70GoBjZ2iflxuvUZQQr0GDgfFbOFu HA4Q== X-Gm-Message-State: ALoCoQnag20C6+AlmEXSyxZVhNCq3iTBEzFp6CxD1g/R1oau1w3Ttv3GFoHlfuEmjnvUmqLyUdeFF/Az2qoDqeyUwQ1C9iCTiw== X-Received: by 10.25.42.208 with SMTP id q199mr7867788lfq.67.1449837887525; Fri, 11 Dec 2015 04:44:47 -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 tv8sm3188580lbb.27.2015.12.11.04.44.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 11 Dec 2015 04:44:46 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Fri, 11 Dec 2015 15:44:41 +0300 Message-Id: <1449837881-3330-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCH] api: pktio link status 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 --- v1 was link_state(), now it's link_status(). 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..8999b2c 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 pktio link is up or down for a packet IO interface. + * + * @param pktio Packet IO handle. + * + * @retval 1 link is up + * @retval 0 link is down + * @retval <0 on failure +*/ +int odp_pktio_link_status(odp_pktio_t pktio); + +/** * @} */