]> git.baikalelectronics.ru Git - kernel.git/commit
sh-eth: use netdev stats structure and fix dma_map_single
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 6 Feb 2012 22:17:21 +0000 (22:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Feb 2012 18:38:57 +0000 (13:38 -0500)
commit22ff6bc31c5d992f811eec0bf5d867b7749eb0ea
tree2c0868d909efc6d8c71252382640399192617c34
parentd8ba053b1c8e969cfb8fad08d0d2dafc2bd258f6
sh-eth: use netdev stats structure and fix dma_map_single

No need to maintain a parallel net_device_stats structure in
sh_eth_private, since we have a generic one in netdev

Fix two dma_map_single() incorrect parameters, passing skb->tail instead
of skb->data. Seems that there is no corresponding dmap_unmap_single()
calls for the moment in this driver.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c
drivers/net/ethernet/renesas/sh_eth.h