Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 170673
b: refs/heads/master
c: 61321bb
h: refs/heads/master
i:
  170671: 9472985
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Oct 13, 2009
1 parent 5a657bc commit 996f5e8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f373b53b5fe67aa4a6f28f921a529cc90f88e79b
refs/heads/master: 61321bbd6235ca9a40ba3bc249e8906cc66233c3
10 changes: 10 additions & 0 deletions trunk/include/linux/skbuff.h
Original file line number Diff line number Diff line change
Expand Up @@ -1491,6 +1491,16 @@ static inline struct sk_buff *netdev_alloc_skb(struct net_device *dev,
return __netdev_alloc_skb(dev, length, GFP_ATOMIC);
}

static inline struct sk_buff *netdev_alloc_skb_ip_align(struct net_device *dev,
unsigned int length)
{
struct sk_buff *skb = netdev_alloc_skb(dev, length + NET_IP_ALIGN);

if (NET_IP_ALIGN && skb)
skb_reserve(skb, NET_IP_ALIGN);
return skb;
}

extern struct page *__netdev_alloc_page(struct net_device *dev, gfp_t gfp_mask);

/**
Expand Down

0 comments on commit 996f5e8

Please sign in to comment.