aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/korina.c
diff options
context:
space:
mode:
authorPhil Sutter <n0-1@freewrt.org>2009-01-15 07:29:56 -0500
committerDavid S. Miller <davem@davemloft.net>2009-01-19 19:23:00 -0500
commit63a66c6c0debcae70183849121734fd4809e1dde (patch)
tree6213f4aa1c84fae5ef7e7db78ef065707cfcec3a /drivers/net/korina.c
parent6a2fe9834e578590f4a2fbe18a574465ab0e127c (diff)
korina: adjust headroom for new skb's also
This is copy and paste from the original driver. As skb_reserve() is also called within korina_alloc_ring() when initially allocating the receive descriptors, the same should be done when allocating new space after passing an skb to upper layers. Signed-off-by: Phil Sutter <n0-1@freewrt.org> Acked-by: Florian Fainelli <florian@openwrt.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/korina.c')
-rw-r--r--drivers/net/korina.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/korina.c b/drivers/net/korina.c
index 67fbdf40aceb..60ae7bfb1d9b 100644
--- a/drivers/net/korina.c
+++ b/drivers/net/korina.c
@@ -416,6 +416,9 @@ static int korina_rx(struct net_device *dev, int limit)
416 if (devcs & ETH_RX_MP) 416 if (devcs & ETH_RX_MP)
417 dev->stats.multicast++; 417 dev->stats.multicast++;
418 418
419 /* 16 bit align */
420 skb_reserve(skb_new, 2);
421
419 lp->rx_skb[lp->rx_next_done] = skb_new; 422 lp->rx_skb[lp->rx_next_done] = skb_new;
420 } 423 }
421 424