From patchwork Thu Sep 17 13:56:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 53821 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by patches.linaro.org (Postfix) with ESMTPS id 0AB2A22A0D for ; Thu, 17 Sep 2015 13:56:22 +0000 (UTC) Received: by lbbmp1 with SMTP id mp1sf6606467lbb.2 for ; Thu, 17 Sep 2015 06:56:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=Cq9LLgdzzBw8EgJw4WYZLDMM5FhhDs/Hwz3iip4cY1I=; b=LCgc+Hw9tP2TK8FHJfXuf985aVvBWYak3WR74XY8Oh8ykAa/RmZ1MS4vckf4mWzHv3 NnKYFaTXCE0Cxu15B+dC73y6tORdl+O4+ELLzGDdZz9ikPiqwY1ssUZ0w8fOXZEaI/B6 6smyXVSpgzjdkaIrgfv84QvDGKTH0bvyvOlYRSSyX6ELQy7uBoy2pd5izXedwUF0jkyu LgoPTNYcBu+hnc7PeNhnubPJyegNxOi1p9nLd1TJIbT140tXnhYplSaA7upvRP874TLj huwo2/Tj566zqiuIB5rsl33Q4030/GARqLplZfWt09qqG8WkNjX538APpM2TGdVjxXJW kLJA== X-Gm-Message-State: ALoCoQnOtmWeInfGKpqxnyV5gN+DBy7AFv/I+tK2FMAg+qDnQH/x7kCAyNgeRcGXvbQJ5vcJ/Qiz X-Received: by 10.112.63.165 with SMTP id h5mr6758731lbs.18.1442498181061; Thu, 17 Sep 2015 06:56:21 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.161.234 with SMTP id xv10ls89660lab.51.gmail; Thu, 17 Sep 2015 06:56:20 -0700 (PDT) X-Received: by 10.152.191.137 with SMTP id gy9mr2644933lac.55.1442498180885; Thu, 17 Sep 2015 06:56:20 -0700 (PDT) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com. [209.85.217.174]) by mx.google.com with ESMTPS id jc10si2356101lac.135.2015.09.17.06.56.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Sep 2015 06:56:20 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; Received: by lbcao8 with SMTP id ao8so9646156lbc.3 for ; Thu, 17 Sep 2015 06:56:20 -0700 (PDT) X-Received: by 10.152.170.225 with SMTP id ap1mr27327989lac.72.1442498180784; Thu, 17 Sep 2015 06:56:20 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp3085611lbq; Thu, 17 Sep 2015 06:56:19 -0700 (PDT) X-Received: by 10.140.83.202 with SMTP id j68mr51867150qgd.46.1442498179797; Thu, 17 Sep 2015 06:56:19 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id y107si2688296qgd.98.2015.09.17.06.56.18; Thu, 17 Sep 2015 06:56:19 -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; Received: by lists.linaro.org (Postfix, from userid 109) id E708262D5B; Thu, 17 Sep 2015 13:56:17 +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_H3, RCVD_IN_MSPIKE_WL, 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 69FD162006; Thu, 17 Sep 2015 13:56:13 +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 EBA2862006; Thu, 17 Sep 2015 13:56:10 +0000 (UTC) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com [209.85.215.47]) by lists.linaro.org (Postfix) with ESMTPS id EEA35619E8 for ; Thu, 17 Sep 2015 13:56:09 +0000 (UTC) Received: by lagj9 with SMTP id j9so11814130lag.2 for ; Thu, 17 Sep 2015 06:56:09 -0700 (PDT) X-Received: by 10.152.22.73 with SMTP id b9mr36466168laf.83.1442498168958; Thu, 17 Sep 2015 06:56:08 -0700 (PDT) Received: from localhost.localdomain (ppp91-76-161-180.pppoe.mtu-net.ru. [91.76.161.180]) by smtp.gmail.com with ESMTPSA id xt10sm549267lbb.9.2015.09.17.06.56.07 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 Sep 2015 06:56:08 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Thu, 17 Sep 2015 16:56:02 +0300 Message-Id: <1442498163-12390-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH 1/2] api: pktio link X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: 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" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: maxim.uvarov@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Signed-off-by: Maxim Uvarov --- include/odp/api/packet_io.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/include/odp/api/packet_io.h b/include/odp/api/packet_io.h index 9b930bd..631aec2 100644 --- a/include/odp/api/packet_io.h +++ b/include/odp/api/packet_io.h @@ -345,6 +345,28 @@ int odp_pktio_headroom_set(odp_pktio_t pktio, uint32_t headroom); uint64_t odp_pktio_to_u64(odp_pktio_t pktio); /** + * Determine if 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); + +/** + * Up/Down link on a packet IO interface. + * + * @param[in] pktio Packet IO handle. + * @param[in] enable 1 to link up, 0 to link down. + * + * @retval 0 on success + * @retval <0 on failure + */ +int odp_pktio_link_set(odp_pktio_t pktio, odp_bool_t up); + +/** * @} */