diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2009-10-13 01:34:20 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-13 14:48:18 -0400 |
commit | 89d71a66c40d629e3b1285def543ab1425558cd5 (patch) | |
tree | 45159e85418170fe36e4e023d9617693625d1740 /drivers/net/ethoc.c | |
parent | bff1c09640b3006bca711e18ef08a5fb955ad9b5 (diff) |
net: Use netdev_alloc_skb_ip_align()
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethoc.c')
-rw-r--r-- | drivers/net/ethoc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethoc.c b/drivers/net/ethoc.c index 34d0c69e67f7..0c229a5fa82a 100644 --- a/drivers/net/ethoc.c +++ b/drivers/net/ethoc.c | |||
@@ -404,10 +404,10 @@ static int ethoc_rx(struct net_device *dev, int limit) | |||
404 | 404 | ||
405 | if (ethoc_update_rx_stats(priv, &bd) == 0) { | 405 | if (ethoc_update_rx_stats(priv, &bd) == 0) { |
406 | int size = bd.stat >> 16; | 406 | int size = bd.stat >> 16; |
407 | struct sk_buff *skb = netdev_alloc_skb(dev, size); | 407 | struct sk_buff *skb; |
408 | 408 | ||
409 | size -= 4; /* strip the CRC */ | 409 | size -= 4; /* strip the CRC */ |
410 | skb_reserve(skb, 2); /* align TCP/IP header */ | 410 | skb = netdev_alloc_skb_ip_align(dev, size); |
411 | 411 | ||
412 | if (likely(skb)) { | 412 | if (likely(skb)) { |
413 | void *src = phys_to_virt(bd.addr); | 413 | void *src = phys_to_virt(bd.addr); |