From patchwork Thu Nov 27 17:51:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 41637 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 37445244C2 for ; Thu, 27 Nov 2014 17:52:32 +0000 (UTC) Received: by mail-wi0-f200.google.com with SMTP id ex7sf3466216wid.11 for ; Thu, 27 Nov 2014 09:52:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references: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=eXEnAbpjCDVczwt+MiJmKXhpFrRftAlDAbNA2qCeM5I=; b=X1n04jOvcqosLxn/1gLO67HdA3GnTqgV9NmF9x/fNZ5zzhBu9nlv6QuNEaiJrGrpkK bF7py49vggvejgpGbtqM4knWo9rhxOMHTy3YlLsoOx49bJKMDJS3EtxWlE1yvOsIIn4w ZiyUWFWT30bnmv/IUVVJQgsApYShSr0ZdhHchftd8HQTrLZCJEr3p2vDzYvoFfE4Sftr aLjRWC5tRyDqM+n2AP/+vNw3H2Skzx4HmpD108EOK33AFbIOu24Mpgz9tORBzfEu3XCy hWnsJ7XhD8XTGUg8acH+ivrkQEKQF5i0xpfpB4QM7muLdClQHVDTGPH0ypcTfB8gNWzc L44A== X-Gm-Message-State: ALoCoQn1+h55N1vjV/1VDvAXCYKLTzoF9agM2qQfzzHZATan2KpjxYb6ytpED7Baesjb2k9lrOgW X-Received: by 10.152.42.196 with SMTP id q4mr1031666lal.6.1417110751511; Thu, 27 Nov 2014 09:52:31 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.88.1 with SMTP id bc1ls905307lab.24.gmail; Thu, 27 Nov 2014 09:52:31 -0800 (PST) X-Received: by 10.152.9.7 with SMTP id v7mr40287770laa.40.1417110751368; Thu, 27 Nov 2014 09:52:31 -0800 (PST) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com. [209.85.217.169]) by mx.google.com with ESMTPS id a3si7916149lbv.43.2014.11.27.09.52.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Nov 2014 09:52:31 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) client-ip=209.85.217.169; Received: by mail-lb0-f169.google.com with SMTP id p9so4529028lbv.0 for ; Thu, 27 Nov 2014 09:52:31 -0800 (PST) X-Received: by 10.153.7.170 with SMTP id dd10mr39771794lad.44.1417110751276; Thu, 27 Nov 2014 09:52:31 -0800 (PST) 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.184.201 with SMTP id ew9csp832691lbc; Thu, 27 Nov 2014 09:52:30 -0800 (PST) X-Received: by 10.229.90.72 with SMTP id h8mr55428591qcm.2.1417110750492; Thu, 27 Nov 2014 09:52:30 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id u10si9220723qcf.34.2014.11.27.09.52.29 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 27 Nov 2014 09:52:30 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Xu3Ey-0005mq-Cv; Thu, 27 Nov 2014 17:52:28 +0000 Received: from mail-lb0-f179.google.com ([209.85.217.179]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Xu3EX-0005hQ-6n for lng-odp@lists.linaro.org; Thu, 27 Nov 2014 17:52:01 +0000 Received: by mail-lb0-f179.google.com with SMTP id z11so4469212lbi.10 for ; Thu, 27 Nov 2014 09:51:55 -0800 (PST) X-Received: by 10.112.146.37 with SMTP id sz5mr40180281lbb.27.1417110715559; Thu, 27 Nov 2014 09:51:55 -0800 (PST) Received: from localhost.localdomain (broadband-46-188-125-99.2com.net. [46.188.125.99]) by mx.google.com with ESMTPSA id ed8sm2020693lbb.41.2014.11.27.09.51.54 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Nov 2014 09:51:54 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Thu, 27 Nov 2014 20:51:23 +0300 Message-Id: <1417110685-2931-7-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.8.5.1.163.gd7aced9 In-Reply-To: <1417110685-2931-1-git-send-email-maxim.uvarov@linaro.org> References: <1417110685-2931-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv2 6/8] API: odp_pktio_open loop back interface X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 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-bounces@lists.linaro.org 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.169 as permitted sender) smtp.mail=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 Define special name for loop back interface. That interface can be used mostly for testing. Each implementation can interpret that loop to any other device. Signed-off-by: Maxim Uvarov --- platform/linux-generic/include/api/odp_packet_io.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform/linux-generic/include/api/odp_packet_io.h b/platform/linux-generic/include/api/odp_packet_io.h index 38a537f..4e3548c 100644 --- a/platform/linux-generic/include/api/odp_packet_io.h +++ b/platform/linux-generic/include/api/odp_packet_io.h @@ -36,6 +36,10 @@ extern "C" { * @param pool Pool to use for packet IO * * @return ODP packet IO handle or ODP_PKTIO_INVALID on error + * + * @note dev name loop is specially pktio reserved name for + * device used for testing. Usually it's loop back + * interface. */ odp_pktio_t odp_pktio_open(const char *dev, odp_buffer_pool_t pool);