From: David Ahern Date: Thu, 26 Jan 2017 22:08:36 +0000 (-0800) Subject: net: ipv6: remove skb_reserve in getroute X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3b7b2b0acdbf9ffe4d3a7915e59e6127988b05db;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git net: ipv6: remove skb_reserve in getroute Remove skb_reserve and skb_reset_mac_header from inet6_rtm_getroute. The allocated skb is not passed through the routing engine (like it is for IPv4) and has not since the beginning of git time. Signed-off-by: David Ahern Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 4b1f0f98a0e9..74bb1190800e 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -3416,12 +3416,6 @@ static int inet6_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh) goto errout; } - /* Reserve room for dummy headers, this skb can pass - through good chunk of routing engine. - */ - skb_reset_mac_header(skb); - skb_reserve(skb, MAX_HEADER + sizeof(struct ipv6hdr)); - skb_dst_set(skb, &rt->dst); err = rt6_fill_node(net, skb, rt, &fl6.daddr, &fl6.saddr, iif,