mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-12 20:22:05 +01:00
18 lines
597 B
Diff
18 lines
597 B
Diff
--- linux-2.6.32/net/ipv4/ip_gre.c.orig
|
|
+++ linux-2.6.32/net/ipv4/ip_gre.c
|
|
@@ -803,11 +803,13 @@
|
|
tunnel->err_count = 0;
|
|
}
|
|
|
|
- max_headroom = LL_RESERVED_SPACE(tdev) + gre_hlen;
|
|
+ max_headroom = LL_RESERVED_SPACE(tdev) + gre_hlen + rt->u.dst.header_len;
|
|
|
|
if (skb_headroom(skb) < max_headroom || skb_shared(skb)||
|
|
(skb_cloned(skb) && !skb_clone_writable(skb, 0))) {
|
|
struct sk_buff *new_skb = skb_realloc_headroom(skb, max_headroom);
|
|
+ if (max_headroom > dev->needed_headroom)
|
|
+ dev->needed_headroom = max_headroom;
|
|
if (!new_skb) {
|
|
ip_rt_put(rt);
|
|
stats->tx_dropped++;
|