kernel: use skb_cow_head() to deal with cloned skbs
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Sun, 23 Apr 2017 11:55:03 +0000 (13:55 +0200)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Sun, 23 Apr 2017 11:55:03 +0000 (13:55 +0200)
commit1ab41265c39354332630bcba0ec704abd2e790f0
tree737495bb08b3562e272442dad1579df2bca57e1c
parent1d1935b242e2a2e5d34b2342b90eb772857e90bb
kernel: use skb_cow_head() to deal with cloned skbs

We need to ensure there is enough headroom to push extra header,
but we also need to check if we are allowed to change headers.

skb_cow_head() is the proper helper to deal with this.

Fixes Ethernet<->WiFi bridge for Raspberry Pi and probably other devices.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
target/linux/generic/patches-4.4/030-1-smsc95xx-Use-skb_cow_head-to-deal-with-cloned-skbs.patch [new file with mode: 0644]
target/linux/generic/patches-4.4/030-2-smsc75xx-use-skb_cow_head-to-deal-with-cloned-skbs.patch [new file with mode: 0644]
target/linux/generic/patches-4.4/030-3-cx82310_eth-use-skb_cow_head-to-deal-with-cloned-skb.patch [new file with mode: 0644]
target/linux/generic/patches-4.4/030-4-sr9700-use-skb_cow_head-to-deal-with-cloned-skbs.patch [new file with mode: 0644]
target/linux/generic/patches-4.4/030-5-lan78xx-use-skb_cow_head-to-deal-with-cloned-skbs.patch [new file with mode: 0644]
target/linux/generic/patches-4.4/030-6-ch9200-use-skb_cow_head-to-deal-with-cloned-skbs.patch [new file with mode: 0644]
target/linux/generic/patches-4.4/030-7-kaweth-use-skb_cow_head-to-deal-with-cloned-skbs.patch [new file with mode: 0644]