diff options
author | David Ahern <dsa@cumulusnetworks.com> | 2017-01-26 14:08:36 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-26 18:36:58 -0500 |
commit | 3b7b2b0acdbf9ffe4d3a7915e59e6127988b05db (patch) | |
tree | 4f4fd5ae09f2f309e31bc80222519aec555dad81 /net | |
parent | b95db6687f9ecc1705e2de0be216ab78439dbbf3 (diff) | |
download | op-kernel-dev-3b7b2b0acdbf9ffe4d3a7915e59e6127988b05db.zip op-kernel-dev-3b7b2b0acdbf9ffe4d3a7915e59e6127988b05db.tar.gz |
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 <dsa@cumulusnetworks.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv6/route.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 4b1f0f9..74bb119 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, |