From: Eric Dumazet Date: Tue, 3 Apr 2012 12:02:11 +0000 (+0000) Subject: net: lpc_eth: no need to reserve 8 extra bytes in rx skb X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e7f8c1fe1705e78f56ca4c8350545ad58d73451a;p=openwrt%2Fstaging%2Fblogic.git net: lpc_eth: no need to reserve 8 extra bytes in rx skb Probably a leftover from ancient code... Signed-off-by: Eric Dumazet Cc: Roland Stigge Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/nxp/lpc_eth.c b/drivers/net/ethernet/nxp/lpc_eth.c index 6dfc26d85e47..d3469d8e3f0d 100644 --- a/drivers/net/ethernet/nxp/lpc_eth.c +++ b/drivers/net/ethernet/nxp/lpc_eth.c @@ -990,10 +990,10 @@ static int __lpc_handle_recv(struct net_device *ndev, int budget) ndev->stats.rx_errors++; } else { /* Packet is good */ - skb = dev_alloc_skb(len + 8); - if (!skb) + skb = dev_alloc_skb(len); + if (!skb) { ndev->stats.rx_dropped++; - else { + } else { prdbuf = skb_put(skb, len); /* Copy packet from buffer */