Skip to content

Commit

Permalink
korina: adjust headroom for new skb's also
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Phil Sutter authored and David S. Miller committed Jan 20, 2009
1 parent 6a2fe98 commit 63a66c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/korina.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,9 @@ static int korina_rx(struct net_device *dev, int limit)
if (devcs & ETH_RX_MP)
dev->stats.multicast++;

/* 16 bit align */
skb_reserve(skb_new, 2);

lp->rx_skb[lp->rx_next_done] = skb_new;
}

Expand Down

0 comments on commit 63a66c6

Please sign in to comment.