From patchwork Wed Apr 9 09:03:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Barbu X-Patchwork-Id: 28066 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f199.google.com (mail-vc0-f199.google.com [209.85.220.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0E86C2145A for ; Wed, 9 Apr 2014 09:04:30 +0000 (UTC) Received: by mail-vc0-f199.google.com with SMTP id lh14sf6160184vcb.2 for ; Wed, 09 Apr 2014 02:04:30 -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: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:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=ycClmItE5rQBb3EjSn/OV700DBT3Fl6kFQviFEy4udI=; b=ZhEm2g6JKJB3bmg/ZkvfjTfT8pawET3Lv9NTkLWU1ROALwN2hO0VhyaM9k6lKVD5DP nagnUf+vX3udQFNmNLBKdR0tq0v9XRgvUJgi+K821HQwvoXxkPUIv7/+mTnA1HHdy58z 2MrGnmc0kSdUnXdhA/waP48YZvJ8ceZnG0cGaEYhFe64GrRhy/sM8z033ryzcOiuc8Qf 7hURiyyw5TaOaAiqYPKkKuEUSHQ6ekk1CesbKHPVVxt35uDjbnvoLPLs8zCjR4tIpeyF 2aoHgYo7cCvZKh8y05dQjY7c5NKiazujvVNP1z6/24kEOM1qm14hWhjuXThHV1UfIfPP YWag== X-Gm-Message-State: ALoCoQluqMEaXi2VIuts6FV6ux/r3G67Ul9qHdJPF7xC9apwjgMrQtDJqvLK7pU7rC7ddJm8aVpE X-Received: by 10.236.182.230 with SMTP id o66mr3514960yhm.12.1397034270606; Wed, 09 Apr 2014 02:04:30 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.95.66 with SMTP id h60ls544866qge.54.gmail; Wed, 09 Apr 2014 02:04:30 -0700 (PDT) X-Received: by 10.221.58.144 with SMTP id wk16mr5648vcb.23.1397034270405; Wed, 09 Apr 2014 02:04:30 -0700 (PDT) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id xt2si45210vcb.141.2014.04.09.02.04.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 09 Apr 2014 02:04:30 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.179; Received: by mail-vc0-f179.google.com with SMTP id ij19so1858962vcb.10 for ; Wed, 09 Apr 2014 02:04:30 -0700 (PDT) X-Received: by 10.52.253.75 with SMTP id zy11mr6594426vdc.10.1397034270321; Wed, 09 Apr 2014 02:04:30 -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.220.12.8 with SMTP id v8csp312786vcv; Wed, 9 Apr 2014 02:04:29 -0700 (PDT) X-Received: by 10.229.17.69 with SMTP id r5mr10888388qca.7.1397034269816; Wed, 09 Apr 2014 02:04:29 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id d10si129500qaf.78.2014.04.09.02.04.29 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 09 Apr 2014 02:04:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WXoOQ-0001vx-Uv; Wed, 09 Apr 2014 09:02:02 +0000 Received: from mail-lb0-f173.google.com ([209.85.217.173]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WXoNx-00012l-8z for lng-odp@lists.linaro.org; Wed, 09 Apr 2014 09:01:33 +0000 Received: by mail-lb0-f173.google.com with SMTP id p9so897133lbv.4 for ; Wed, 09 Apr 2014 02:03:52 -0700 (PDT) X-Received: by 10.152.235.3 with SMTP id ui3mr6748689lac.2.1397034232338; Wed, 09 Apr 2014 02:03:52 -0700 (PDT) Received: from sestofb10.enea.se (sestofw01.enea.se. [192.36.1.252]) by mx.google.com with ESMTPSA id x5sm334267lbk.5.2014.04.09.02.03.51 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 09 Apr 2014 02:03:51 -0700 (PDT) From: Ciprian Barbu To: lng-odp@lists.linaro.org Date: Wed, 9 Apr 2014 11:03:34 +0200 Message-Id: <1397034218-2971-2-git-send-email-ciprian.barbu@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1397034218-2971-1-git-send-email-ciprian.barbu@linaro.org> References: <1397034218-2971-1-git-send-email-ciprian.barbu@linaro.org> Subject: [lng-odp] [PATCH 1/5] Fixed odp_pktio_open - added missing break for netmap 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: ciprian.barbu@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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 Before this fix the odp_pktio_open reported that the netmap pktio was not supported, even if it did. Signed-off-by: Ciprian Barbu --- platform/linux-generic/source/odp_packet_io.c | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/linux-generic/source/odp_packet_io.c b/platform/linux-generic/source/odp_packet_io.c index e04b130..23e2e40 100644 --- a/platform/linux-generic/source/odp_packet_io.c +++ b/platform/linux-generic/source/odp_packet_io.c @@ -237,6 +237,7 @@ odp_pktio_t odp_pktio_open(char *dev, odp_buffer_pool_t pool, free_pktio_entry(id); id = ODP_PKTIO_INVALID; } + break; #endif default: free_pktio_entry(id);