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/ks8842.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/ks8842.c')
-rw-r--r-- | drivers/net/ks8842.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/ks8842.c b/drivers/net/ks8842.c index 99e954167fa6..5c45cb58d023 100644 --- a/drivers/net/ks8842.c +++ b/drivers/net/ks8842.c | |||
@@ -357,7 +357,7 @@ static void ks8842_rx_frame(struct net_device *netdev, | |||
357 | 357 | ||
358 | /* check the status */ | 358 | /* check the status */ |
359 | if ((status & RXSR_VALID) && !(status & RXSR_ERROR)) { | 359 | if ((status & RXSR_VALID) && !(status & RXSR_ERROR)) { |
360 | struct sk_buff *skb = netdev_alloc_skb(netdev, len + 2); | 360 | struct sk_buff *skb = netdev_alloc_skb_ip_align(netdev, len); |
361 | 361 | ||
362 | dev_dbg(&adapter->pdev->dev, "%s, got package, len: %d\n", | 362 | dev_dbg(&adapter->pdev->dev, "%s, got package, len: %d\n", |
363 | __func__, len); | 363 | __func__, len); |
@@ -369,9 +369,6 @@ static void ks8842_rx_frame(struct net_device *netdev, | |||
369 | if (status & RXSR_MULTICAST) | 369 | if (status & RXSR_MULTICAST) |
370 | netdev->stats.multicast++; | 370 | netdev->stats.multicast++; |
371 | 371 | ||
372 | /* Align socket buffer in 4-byte boundary for | ||
373 | better performance. */ | ||
374 | skb_reserve(skb, 2); | ||
375 | data = (u32 *)skb_put(skb, len); | 372 | data = (u32 *)skb_put(skb, len); |
376 | 373 | ||
377 | ks8842_select_bank(adapter, 17); | 374 | ks8842_select_bank(adapter, 17); |