diff options
author | alex.bluesman.smirnov@gmail.com | 2012-07-10 21:22:45 +0000 |
---|---|---|
committer | David S. Miller | 2012-07-12 07:54:45 -0700 |
commit | 79ff1db6d9661974186d51c1ef14d1cab521df49 (patch) | |
tree | 0df7e86ce570122dd302b1fe2a26cd59afd23621 /net/ieee802154 | |
parent | e885a47a474fe53ed7d952af4b6e9a5cf86d9a07 (diff) |
6lowpan: get extra headroom in allocated frame
Use netdev_alloc_skb_ip_align() instead of alloc_skb() to get some
extra headroom in case we need to forward this frame in a tunnel or
something else.
Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ieee802154')
-rw-r--r-- | net/ieee802154/6lowpan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c index b872515f2137..ae3f4eb02064 100644 --- a/net/ieee802154/6lowpan.c +++ b/net/ieee802154/6lowpan.c @@ -661,8 +661,8 @@ lowpan_alloc_new_frame(struct sk_buff *skb, u8 iphc0, u8 len, u8 tag) frame->tag = tag; /* allocate buffer for frame assembling */ - frame->skb = alloc_skb(frame->length + - sizeof(struct ipv6hdr), GFP_ATOMIC); + frame->skb = netdev_alloc_skb_ip_align(skb->dev, frame->length + + sizeof(struct ipv6hdr)); if (!frame->skb) goto skb_err; |