]> git.baikalelectronics.ru Git - kernel.git/commit
net: sh_eth: Fix timing of RACT setting in sh_eth_rx()
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tue, 10 Jun 2014 00:40:24 +0000 (09:40 +0900)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Jun 2014 22:15:31 +0000 (15:15 -0700)
commit7fa372e79166b85ed270906ab59c3fa7632af4e1
tree45da1ff04a2cb00ed47220e7fc7b263a0fe98c60
parent5ccbb88cad38bb1a0a8311361df6f409a408d308
net: sh_eth: Fix timing of RACT setting in sh_eth_rx()

This patch fixes an issue that we cannot use nfs rootfs correctly
on r8a7790 when the command below runs on a host PC.

 $ sudo ping -f -l 8 $BOARD_IP_ADDR

Since the driver sets the RACT to 1 in the first while loop of
sh_eth_rx(), the controller accepts a next frame into the next RX
descriptor during the while loop. But, in the first while loop
doesn't allocate a next skb. So, this patch removes the RACT setting
in the first while loop of sh_eth_rx().

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c