From patchwork Thu Aug 21 06:57:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Santosh Shukla X-Patchwork-Id: 35723 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f72.google.com (mail-pa0-f72.google.com [209.85.220.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1CA2520540 for ; Thu, 21 Aug 2014 06:57:39 +0000 (UTC) Received: by mail-pa0-f72.google.com with SMTP id eu11sf72059711pac.3 for ; Wed, 20 Aug 2014 23:57:38 -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: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=oCuabYToMVKIrYSDpIevPUKJbIMWlCnoO1UWVsir1DI=; b=NKsaQmlxKFPEB71++J/GLvnxBWN3XDt8tiZhJJAnSxszctzKkgwlNYl1/bgKmeQOYt Vb2OM7VgQ1oHJpReDGWHW0O0t0uZ4FcwWk60GcEZDrXChru5avmpNYkcgVVuoZLEGXYO Rv9yC5ZlcY38KimxxRLUR/VbjCk5+eTIGhLXHjkBHLTkezSkbi227sBMp+RjWArJNWi6 w3rXCPAAH816og6fs9UVGvoq3YtLAociYJSXKK4Y7jXFDf4vllBM4pwpzFxJqFyNf5DN 2XCJvuKjzvu8by12EgfvMXOEdxkGqPrkRpJpG134Q1kJ5SWjdtJtL5M1Q5bryiqXbWzu 4/FA== X-Gm-Message-State: ALoCoQlwy/d6l08pMJC0RM78EyCfquNSSq4s9r5OUgPnqxoN0bSUrHYSOmX/YttyofdmJFiy342v X-Received: by 10.69.29.234 with SMTP id jz10mr18577397pbd.1.1408604258422; Wed, 20 Aug 2014 23:57:38 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.23.69 with SMTP id 63ls601820qgo.59.gmail; Wed, 20 Aug 2014 23:57:38 -0700 (PDT) X-Received: by 10.220.114.5 with SMTP id c5mr40532868vcq.28.1408604258316; Wed, 20 Aug 2014 23:57:38 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id fg6si12080059vcb.46.2014.08.20.23.57.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 20 Aug 2014 23:57:38 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.176 as permitted sender) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id id10so10132763vcb.7 for ; Wed, 20 Aug 2014 23:57:38 -0700 (PDT) X-Received: by 10.220.44.80 with SMTP id z16mr40543569vce.7.1408604258197; Wed, 20 Aug 2014 23:57:38 -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.221.45.67 with SMTP id uj3csp112213vcb; Wed, 20 Aug 2014 23:57:37 -0700 (PDT) X-Received: by 10.140.104.213 with SMTP id a79mr82314183qgf.46.1408604257763; Wed, 20 Aug 2014 23:57:37 -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 w107si37655993qgw.23.2014.08.20.23.57.37 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 20 Aug 2014 23:57:37 -0700 (PDT) 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-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XKMJU-000309-Qy; Thu, 21 Aug 2014 06:57:36 +0000 Received: from mail-pa0-f49.google.com ([209.85.220.49]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XKMJO-0002zx-13 for lng-odp@lists.linaro.org; Thu, 21 Aug 2014 06:57:30 +0000 Received: by mail-pa0-f49.google.com with SMTP id hz1so13839094pad.22 for ; Wed, 20 Aug 2014 23:57:24 -0700 (PDT) X-Received: by 10.70.45.97 with SMTP id l1mr35488280pdm.148.1408604243955; Wed, 20 Aug 2014 23:57:23 -0700 (PDT) Received: from santosh-Latitude-E5530-non-vPro.10.0.0.5 ([111.93.218.67]) by mx.google.com with ESMTPSA id a17sm24397703pbu.41.2014.08.20.23.57.21 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 20 Aug 2014 23:57:23 -0700 (PDT) From: Santosh Shukla To: lng-odp@lists.linaro.org Date: Thu, 21 Aug 2014 12:27:08 +0530 Message-Id: <1408604228-8167-1-git-send-email-santosh.shukla@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Topics: patch Subject: [lng-odp] [PATCH] linux-dpdk: Enable promiscous mode 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: santosh.shukla@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.220.176 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 Noticed that enabling promiscous mode helps l2fwd application work with pktgen or dpdk-pktgen Suggested-by: Venkatesh Vivekanandan Signed-off-by: Santosh Shukla --- platform/linux-dpdk/odp_packet_dpdk.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/linux-dpdk/odp_packet_dpdk.c b/platform/linux-dpdk/odp_packet_dpdk.c index d5c8e80..92edac5 100644 --- a/platform/linux-dpdk/odp_packet_dpdk.c +++ b/platform/linux-dpdk/odp_packet_dpdk.c @@ -135,6 +135,9 @@ int setup_pkt_dpdk(pkt_dpdk_t * const pkt_dpdk, const char *netdev, ODP_DBG("dpdk tx queue setup done\n"); } + /* Enable promiscous mode */ + rte_eth_promiscuous_enable(portid); + /* Start device */ ret = rte_eth_dev_start(portid); if (ret < 0)