add preliminary Marvell Kirkwood support
[openwrt.git] / target / linux / rb532 / patches-2.6.28 / 018-korina_adjust_headroom.patch
1 This is copy and paste from the original driver. As skb_reserve() is
2 also called within korina_alloc_ring() when initially allocating the
3 receive descriptors, the same should be done when allocating new space
4 after passing an skb to upper layers.
5
6 Signed-off-by: Phil Sutter <n0-1@freewrt.org>
7 ---
8 drivers/net/korina.c | 3 +++
9 1 files changed, 3 insertions(+), 0 deletions(-)
10
11 diff --git a/drivers/net/korina.c b/drivers/net/korina.c
12 index 67fbdf4..60ae7bf 100644
13 --- a/drivers/net/korina.c
14 +++ b/drivers/net/korina.c
15 @@ -416,6 +416,9 @@ static int korina_rx(struct net_device *dev, int limit)
16 if (devcs & ETH_RX_MP)
17 dev->stats.multicast++;
18
19 + /* 16 bit align */
20 + skb_reserve(skb_new, 2);
21 +
22 lp->rx_skb[lp->rx_next_done] = skb_new;
23 }
24
25 --
26 1.5.6.4
27
28
This page took 0.041727 seconds and 5 git commands to generate.