diff options
author | David S. Miller <davem@davemloft.net> | 2009-05-25 04:42:21 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-05-25 04:42:21 -0400 |
commit | c649c0e31d5736a4b7c5c3454182091dda4bbe62 (patch) | |
tree | 93da11bf4ea828611ab5277a7dbadf57724c2b1e /drivers/net/gianfar.c | |
parent | daebafed7fef54fcc73d2d01431122cfd578d1e0 (diff) | |
parent | 4e2fd555199977c5994d1a4d2d3b8761b20ca4c7 (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
drivers/net/wireless/ath/ath5k/phy.c
drivers/net/wireless/iwlwifi/iwl-agn.c
drivers/net/wireless/iwlwifi/iwl3945-base.c
Diffstat (limited to 'drivers/net/gianfar.c')
-rw-r--r-- | drivers/net/gianfar.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c index 2bb038b98cc4..4ae1d259fced 100644 --- a/drivers/net/gianfar.c +++ b/drivers/net/gianfar.c | |||
@@ -1851,8 +1851,17 @@ int gfar_clean_rx_ring(struct net_device *dev, int rx_work_limit) | |||
1851 | 1851 | ||
1852 | if (unlikely(!newskb)) | 1852 | if (unlikely(!newskb)) |
1853 | newskb = skb; | 1853 | newskb = skb; |
1854 | else if (skb) | 1854 | else if (skb) { |
1855 | /* | ||
1856 | * We need to reset ->data to what it | ||
1857 | * was before gfar_new_skb() re-aligned | ||
1858 | * it to an RXBUF_ALIGNMENT boundary | ||
1859 | * before we put the skb back on the | ||
1860 | * recycle list. | ||
1861 | */ | ||
1862 | skb->data = skb->head + NET_SKB_PAD; | ||
1855 | __skb_queue_head(&priv->rx_recycle, skb); | 1863 | __skb_queue_head(&priv->rx_recycle, skb); |
1864 | } | ||
1856 | } else { | 1865 | } else { |
1857 | /* Increment the number of packets */ | 1866 | /* Increment the number of packets */ |
1858 | dev->stats.rx_packets++; | 1867 | dev->stats.rx_packets++; |