diff options
author | Dai Haruki <dai.haruki@freescale.com> | 2008-12-16 18:30:20 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-16 18:30:20 -0500 |
commit | 12dea57be552a291e93827baeffbb91e33f587a6 (patch) | |
tree | dba9874cf9a930a729aac0f30f7fe50824b9e76a /drivers/net/gianfar.c | |
parent | b46a8454cd304b5376ba00d3457a612720e47269 (diff) |
gianfar: Fix eTSEC configuration procedure
Fix some bugs in the ethtool configuration functions:
* gfar_clean_rx_ring should not be called with interrupts disabled.
* Update last transmission time to avoid tx timeout.
* Delete redundant NETIF_F_IP_CSUM check in gfar_start_xmit
* Use netif_tx_lock_bh when reconfiguring the tx csum
Signed-off-by: Dai Haruki <dai.haruki@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/gianfar.c')
-rw-r--r-- | drivers/net/gianfar.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c index 5100f75238af..19fdf93e0ec2 100644 --- a/drivers/net/gianfar.c +++ b/drivers/net/gianfar.c | |||
@@ -892,6 +892,8 @@ void gfar_start(struct net_device *dev) | |||
892 | 892 | ||
893 | /* Unmask the interrupts we look for */ | 893 | /* Unmask the interrupts we look for */ |
894 | gfar_write(®s->imask, IMASK_DEFAULT); | 894 | gfar_write(®s->imask, IMASK_DEFAULT); |
895 | |||
896 | dev->trans_start = jiffies; | ||
895 | } | 897 | } |
896 | 898 | ||
897 | /* Bring the controller up and running */ | 899 | /* Bring the controller up and running */ |
@@ -1233,8 +1235,7 @@ static int gfar_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
1233 | status = txbdp->status & TXBD_WRAP; | 1235 | status = txbdp->status & TXBD_WRAP; |
1234 | 1236 | ||
1235 | /* Set up checksumming */ | 1237 | /* Set up checksumming */ |
1236 | if (likely((dev->features & NETIF_F_IP_CSUM) | 1238 | if (CHECKSUM_PARTIAL == skb->ip_summed) { |
1237 | && (CHECKSUM_PARTIAL == skb->ip_summed))) { | ||
1238 | fcb = gfar_add_fcb(skb, txbdp); | 1239 | fcb = gfar_add_fcb(skb, txbdp); |
1239 | status |= TXBD_TOE; | 1240 | status |= TXBD_TOE; |
1240 | gfar_tx_checksum(skb, fcb); | 1241 | gfar_tx_checksum(skb, fcb); |