[ar7] rework ar7 profiles to separate dsl firmwares, annex-a being now the default...
[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 --- a/drivers/net/korina.c
12 +++ b/drivers/net/korina.c
13 @@ -415,6 +415,9 @@ static int korina_rx(struct net_device *
14                         if (devcs & ETH_RX_MP)
15                                 dev->stats.multicast++;
16  
17 +                       /* 16 bit align */
18 +                       skb_reserve(skb_new, 2);
19 +
20                         lp->rx_skb[lp->rx_next_done] = skb_new;
21                 }
22                 rd->devcs = 0;