diff options
Diffstat (limited to 'drivers/net/ixp2000/ixpdev.c')
-rw-r--r-- | drivers/net/ixp2000/ixpdev.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ixp2000/ixpdev.c b/drivers/net/ixp2000/ixpdev.c index 9aee0cc922c9..e9d9d595e1b7 100644 --- a/drivers/net/ixp2000/ixpdev.c +++ b/drivers/net/ixp2000/ixpdev.c | |||
@@ -109,9 +109,8 @@ static int ixpdev_rx(struct net_device *dev, int processed, int budget) | |||
109 | if (unlikely(!netif_running(nds[desc->channel]))) | 109 | if (unlikely(!netif_running(nds[desc->channel]))) |
110 | goto err; | 110 | goto err; |
111 | 111 | ||
112 | skb = netdev_alloc_skb(dev, desc->pkt_length + 2); | 112 | skb = netdev_alloc_skb_ip_align(dev, desc->pkt_length); |
113 | if (likely(skb != NULL)) { | 113 | if (likely(skb != NULL)) { |
114 | skb_reserve(skb, 2); | ||
115 | skb_copy_to_linear_data(skb, buf, desc->pkt_length); | 114 | skb_copy_to_linear_data(skb, buf, desc->pkt_length); |
116 | skb_put(skb, desc->pkt_length); | 115 | skb_put(skb, desc->pkt_length); |
117 | skb->protocol = eth_type_trans(skb, nds[desc->channel]); | 116 | skb->protocol = eth_type_trans(skb, nds[desc->channel]); |