From patchwork Mon May 25 09:53:40 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 25790 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n4P9rhkC027536 for ; Mon, 25 May 2009 09:53:43 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753141AbZEYJxk (ORCPT ); Mon, 25 May 2009 05:53:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753169AbZEYJxk (ORCPT ); Mon, 25 May 2009 05:53:40 -0400 Received: from mail.renesas.com ([202.234.163.13]:61095 "EHLO mail04.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753141AbZEYJxj (ORCPT ); Mon, 25 May 2009 05:53:39 -0400 X-AuditID: ac140387-0000000a000005fd-3d-4a1a6aa346d7 Received: from guardian03.idc.renesas.com ([172.20.8.202]) by mail04.idc.renesas.com (sendmail) with ESMTP id n4P9rd0U026793; Mon, 25 May 2009 18:53:39 +0900 (JST) Received: (from root@localhost) by guardian03.idc.renesas.com with id n4P9rdX7016123; Mon, 25 May 2009 18:53:39 +0900 (JST) Received: from mta02.idc.renesas.com (localhost [127.0.0.1]) by mta02.idc.renesas.com with ESMTP id n4P9rfxo004702; Mon, 25 May 2009 18:53:41 +0900 (JST) Received: from [172.30.8.157] by ims05.idc.renesas.com (Sendmail) with ESMTPA id <0KK7006C425FHX@ims05.idc.renesas.com>; Mon, 25 May 2009 18:53:39 +0900 (JST) Date: Mon, 25 May 2009 18:53:40 +0900 From: Yoshihiro Shimoda Subject: [PATCH 3/5] net: sh_eth: fix receive desciptor loop To: netdev@vger.kernel.org Cc: SH-Linux , Nobuhiro Iwamatsu Message-id: <4A1A6AA4.3030507@renesas.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) X-Brightmail-Tracker: AAAAAA== Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org Fix the problem that this driver not update rxdesc in sh_eth_rx. Signed-off-by: Yoshihiro Shimoda Signed-off-by: Nobuhiro Iwamatsu --- drivers/net/sh_eth.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c index eb76835..728c419 100644 --- a/drivers/net/sh_eth.c +++ b/drivers/net/sh_eth.c @@ -536,6 +536,7 @@ static int sh_eth_rx(struct net_device *ndev) } rxdesc->status |= cpu_to_edmac(mdp, RD_RACT); entry = (++mdp->cur_rx) % RX_RING_SIZE; + rxdesc = &mdp->rx_ring[entry]; } /* Refill the Rx ring buffers. */