Skip to content

Commit 3ee93ea

Browse files
tomratbertdavem330
authored andcommitted
ipv6: Don't reset inner headers in ip6_tnl_xmit
Since iptunnel_handle_offloads() is called in all paths we can probably drop the block in ip6_tnl_xmit that was checking for skb->encapsulation and resetting the inner headers. Signed-off-by: Tom Herbert <tom@herbertland.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent b8921ca commit 3ee93ea

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

net/ipv6/ip6_tunnel.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,11 +1120,6 @@ int ip6_tnl_xmit(struct sk_buff *skb, struct net_device *dev, __u8 dsfield,
11201120
ipv6_push_nfrag_opts(skb, &opt.ops, &proto, NULL);
11211121
}
11221122

1123-
if (likely(!skb->encapsulation)) {
1124-
skb_reset_inner_headers(skb);
1125-
skb->encapsulation = 1;
1126-
}
1127-
11281123
/* Calculate max headroom for all the headers and adjust
11291124
* needed_headroom if necessary.
11301125
*/

0 commit comments

Comments
 (0)