From patchwork Mon Dec 1 14:08:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 41777 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C32A020672 for ; Mon, 1 Dec 2014 14:09:44 +0000 (UTC) Received: by mail-la0-f71.google.com with SMTP id s18sf6598282lam.6 for ; Mon, 01 Dec 2014 06:09:43 -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=rFtelQXUdZIa/7A40Sfy5JvJZo2Hp/iIrJVWZO6I4EE=; b=TABhJ9hgLmcZNdVOfqH2uGbMCC9SgODKn34hMU3eb8dFkqWl6XoZsLG6ZWJ8MIq66h OJGwX+CGm0Ic2WyomYBiOfxcAs56dIt4p5ko+78/DrJuVtdxsA+L34TCoQRN2WMUagrS 5OdAQdL9+UMmcx5aF7CPNCPUwhhrYi97MUq67jboQ9qyf/+J3XY9FPb+ED+V632ITzxX s3yLsDpIbiDI3xpSZD6zoFgIWAZaQ9bo7mZ20JjCRAIlZ9xGiam/NVJxXdSvK56NSucW KqOJIE0UlyCDWvmWnOzowJhjVLaxwSMLebwpLhcTVMd47sDlMWkv/d0xDpqWPEUv+Bcs IELw== X-Gm-Message-State: ALoCoQkSZtFU2cJZHU/3/6aO1bpWFXoMdVdupnrwXWLI2IYVIxt1qlJ9jDUbkbwh/m91oApEjydF X-Received: by 10.112.40.71 with SMTP id v7mr22439lbk.20.1417442983722; Mon, 01 Dec 2014 06:09:43 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.28.193 with SMTP id d1ls1118505lah.85.gmail; Mon, 01 Dec 2014 06:09:43 -0800 (PST) X-Received: by 10.112.145.37 with SMTP id sr5mr58891435lbb.76.1417442983291; Mon, 01 Dec 2014 06:09:43 -0800 (PST) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id li6si17752375lbc.87.2014.12.01.06.09.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 01 Dec 2014 06:09:43 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by mail-la0-f52.google.com with SMTP id hs14so4152719lab.11 for ; Mon, 01 Dec 2014 06:09:43 -0800 (PST) X-Received: by 10.152.87.100 with SMTP id w4mr2685221laz.71.1417442983197; Mon, 01 Dec 2014 06:09:43 -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 ew9csp293264lbc; Mon, 1 Dec 2014 06:09:42 -0800 (PST) X-Received: by 10.170.72.7 with SMTP id o7mr66079302yko.73.1417442981379; Mon, 01 Dec 2014 06:09:41 -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 j7si4293773qce.45.2014.12.01.06.09.40 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 01 Dec 2014 06:09:41 -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 1XvRfW-0000ws-37; Mon, 01 Dec 2014 14:09:38 +0000 Received: from mail-la0-f47.google.com ([209.85.215.47]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XvRf6-0000rr-IM for lng-odp@lists.linaro.org; Mon, 01 Dec 2014 14:09:12 +0000 Received: by mail-la0-f47.google.com with SMTP id hz20so8905563lab.34 for ; Mon, 01 Dec 2014 06:09:07 -0800 (PST) X-Received: by 10.112.135.229 with SMTP id pv5mr56797870lbb.52.1417442947022; Mon, 01 Dec 2014 06:09:07 -0800 (PST) Received: from localhost.localdomain ([188.92.105.210]) by mx.google.com with ESMTPSA id or5sm4739750lbb.42.2014.12.01.06.09.05 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 01 Dec 2014 06:09:06 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Mon, 1 Dec 2014 17:08:44 +0300 Message-Id: <1417442928-20680-7-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.8.5.1.163.gd7aced9 In-Reply-To: <1417442928-20680-1-git-send-email-maxim.uvarov@linaro.org> References: <1417442928-20680-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv3 06/10] 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.215.52 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 65adbe5..1190355 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);