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/enic/enic_main.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/enic/enic_main.c')
-rw-r--r-- | drivers/net/enic/enic_main.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c index d69d52ed7726..f875751af15e 100644 --- a/drivers/net/enic/enic_main.c +++ b/drivers/net/enic/enic_main.c | |||
@@ -870,19 +870,6 @@ static void enic_free_rq_buf(struct vnic_rq *rq, struct vnic_rq_buf *buf) | |||
870 | dev_kfree_skb_any(buf->os_buf); | 870 | dev_kfree_skb_any(buf->os_buf); |
871 | } | 871 | } |
872 | 872 | ||
873 | static inline struct sk_buff *enic_rq_alloc_skb(struct net_device *netdev, | ||
874 | unsigned int size) | ||
875 | { | ||
876 | struct sk_buff *skb; | ||
877 | |||
878 | skb = netdev_alloc_skb(netdev, size + NET_IP_ALIGN); | ||
879 | |||
880 | if (skb) | ||
881 | skb_reserve(skb, NET_IP_ALIGN); | ||
882 | |||
883 | return skb; | ||
884 | } | ||
885 | |||
886 | static int enic_rq_alloc_buf(struct vnic_rq *rq) | 873 | static int enic_rq_alloc_buf(struct vnic_rq *rq) |
887 | { | 874 | { |
888 | struct enic *enic = vnic_dev_priv(rq->vdev); | 875 | struct enic *enic = vnic_dev_priv(rq->vdev); |
@@ -892,7 +879,7 @@ static int enic_rq_alloc_buf(struct vnic_rq *rq) | |||
892 | unsigned int os_buf_index = 0; | 879 | unsigned int os_buf_index = 0; |
893 | dma_addr_t dma_addr; | 880 | dma_addr_t dma_addr; |
894 | 881 | ||
895 | skb = enic_rq_alloc_skb(netdev, len); | 882 | skb = netdev_alloc_skb_ip_align(netdev, len); |
896 | if (!skb) | 883 | if (!skb) |
897 | return -ENOMEM; | 884 | return -ENOMEM; |
898 | 885 | ||