From patchwork Thu Apr 11 12:40:23 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Hesselbarth X-Patchwork-Id: 2428161 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork2.kernel.org (Postfix) with ESMTP id 25C40DF230 for ; Thu, 11 Apr 2013 12:41:31 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UQGo7-0004Vj-UB; Thu, 11 Apr 2013 12:40:52 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UQGns-0008RT-Rw; Thu, 11 Apr 2013 12:40:36 +0000 Received: from mail-bk0-x22f.google.com ([2a00:1450:4008:c01::22f]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UQGnp-0008Qq-5T for linux-arm-kernel@lists.infradead.org; Thu, 11 Apr 2013 12:40:34 +0000 Received: by mail-bk0-f47.google.com with SMTP id ik5so780713bkc.20 for ; Thu, 11 Apr 2013 05:40:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=tICNxonY6hgumEw5GPVkv7H3ApJHqIjDplGPIAwadNM=; b=TfYHqbfxU+v5zQ9PrqtZjXSk7DyuA/gqX5I9zW0Sfdf2LcJVWKcwFn27B5iZiNzZQE /lGGGURJOmhqci6wZLBMWNI+S3Dd4aeWogafBfIUY4BXOlREV/P2CWZ/mxPmtDmEaNfq IoE1qVr78pEYZz2q/AoE2qS6d8N9HOqBB+5Rfi6S6Vg1pSEWDUpQXKx2h5v3uk2TDN+i msDBeigCGGp9sbaq9P31jW3pAyRnLXn8oxs9gbPz5nrm0X8YieeaxSBrVFwxv8R/WizC xFDDp09JJYPLzrZSYsacR3B/kinEs+KHHlv2O269+KIwomdwcRJOh+trj1aorVPvprKg ymCQ== X-Received: by 10.204.190.81 with SMTP id dh17mr2464982bkb.15.1365684030658; Thu, 11 Apr 2013 05:40:30 -0700 (PDT) Received: from edge.mip.uni-hannover.de ([130.75.249.235]) by mx.google.com with ESMTPS id gm14sm1832108bkc.7.2013.04.11.05.40.28 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 11 Apr 2013 05:40:29 -0700 (PDT) From: Sebastian Hesselbarth To: Sebastian Hesselbarth Subject: [PATCH] net: mv643xx_eth: Add GRO support Date: Thu, 11 Apr 2013 14:40:23 +0200 Message-Id: <1365684023-9967-1-git-send-email-sebastian.hesselbarth@gmail.com> X-Mailer: git-send-email 1.7.10.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130411_084033_338098_73428FBF X-CRM114-Status: GOOD ( 13.28 ) X-Spam-Score: -0.3 (/) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-0.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- 1.7 KHOP_BIG_TO_CC Sent to 10+ recipients instaed of Bcc or a list 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (sebastian.hesselbarth[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Andrew Lunn , Jason Cooper , Benjamin Herrenschmidt , linux-kernel@vger.kernel.org, "David S. Miller" , Soeren Moch , Paul Mackerras , linux-arm-kernel@lists.infradead.org, Dale Farnsworth , netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Florian Fainelli , Lennert Buytenhek X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This patch adds GRO support to mv643xx_eth by making it invoke napi_gro_receive instead of netif_receive_skb. Signed-off-by: Soeren Moch Signed-off-by: Sebastian Hesselbarth Acked-by: Eric Dumazet --- Cc: "David S. Miller" Cc: Lennert Buytenhek Cc: Andrew Lunn Cc: Jason Cooper Cc: Florian Fainelli Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Dale Farnsworth Cc: netdev@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org --- drivers/net/ethernet/marvell/mv643xx_eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/mv643xx_eth.c b/drivers/net/ethernet/marvell/mv643xx_eth.c index 305038f..c850d04 100644 --- a/drivers/net/ethernet/marvell/mv643xx_eth.c +++ b/drivers/net/ethernet/marvell/mv643xx_eth.c @@ -604,7 +604,7 @@ static int rxq_process(struct rx_queue *rxq, int budget) lro_receive_skb(&rxq->lro_mgr, skb, (void *)cmd_sts); lro_flush_needed = 1; } else - netif_receive_skb(skb); + napi_gro_receive(&mp->napi, skb); continue;