diff options
author | Martin Townsend <mtownsend1973@gmail.com> | 2014-10-13 12:00:56 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-10-25 07:56:25 +0200 |
commit | 11e3ff7072789ad4585870cbdde1be10c45f1cc4 (patch) | |
tree | 0a8e62cbf7eaeb33ac5931f9cea2321abf730ce5 /net/ieee802154/nl-mac.c | |
parent | Bluetooth: 6lowpan: remove unnecessary codes in give_skb_to_upper (diff) | |
download | linux-11e3ff7072789ad4585870cbdde1be10c45f1cc4.tar.xz linux-11e3ff7072789ad4585870cbdde1be10c45f1cc4.zip |
6lowpan: Use skb_cow in IPHC decompression.
Currently there are potentially 2 skb_copy_expand calls in IPHC
decompression. This patch replaces this with one call to
skb_cow which will check to see if there is enough headroom
first to ensure it's only done if necessary and will handle
alignment issues for cache.
As skb_cow uses pskb_expand_head we ensure the skb isn't shared from
bluetooth and ieee802.15.4 code that use the IPHC decompression.
Signed-off-by: Martin Townsend <martin.townsend@xsilon.com>
Acked-by: Alexander Aring <alex.aring@gmail.com>
Acked-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/ieee802154/nl-mac.c')
0 files changed, 0 insertions, 0 deletions