Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256255
b: refs/heads/master
c: 4915a0d
h: refs/heads/master
i:
  256253: 3c794d3
  256251: f0e095f
  256247: c240629
  256239: 5db29da
  256223: 67041c9
  256191: c23d2f5
  256127: 1707a06
  255999: 8b6a99d
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Jul 12, 2011
1 parent 2082344 commit 2ecb7d6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 039f02ebd9c2f3f3cb95c00b763fb70870c9116e
refs/heads/master: 4915a0de43c3e9aef92005c1f94a8ff3a6cfced5
12 changes: 9 additions & 3 deletions trunk/include/linux/skbuff.h
Original file line number Diff line number Diff line change
Expand Up @@ -1579,16 +1579,22 @@ 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)
static inline struct sk_buff *__netdev_alloc_skb_ip_align(struct net_device *dev,
unsigned int length, gfp_t gfp)
{
struct sk_buff *skb = netdev_alloc_skb(dev, length + NET_IP_ALIGN);
struct sk_buff *skb = __netdev_alloc_skb(dev, length + NET_IP_ALIGN, gfp);

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

static inline struct sk_buff *netdev_alloc_skb_ip_align(struct net_device *dev,
unsigned int length)
{
return __netdev_alloc_skb_ip_align(dev, length, GFP_ATOMIC);
}

/**
* __netdev_alloc_page - allocate a page for ps-rx on a specific device
* @dev: network device to receive on
Expand Down

0 comments on commit 2ecb7d6

Please sign in to comment.