Skip to content

Commit 3b7b2b0

Browse files
David Aherndavem330
authored andcommitted
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 <[email protected]> Acked-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b95db66 commit 3b7b2b0

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

net/ipv6/route.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3416,12 +3416,6 @@ static int inet6_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh)
34163416
goto errout;
34173417
}
34183418

3419-
/* Reserve room for dummy headers, this skb can pass
3420-
through good chunk of routing engine.
3421-
*/
3422-
skb_reset_mac_header(skb);
3423-
skb_reserve(skb, MAX_HEADER + sizeof(struct ipv6hdr));
3424-
34253419
skb_dst_set(skb, &rt->dst);
34263420

34273421
err = rt6_fill_node(net, skb, rt, &fl6.daddr, &fl6.saddr, iif,

0 commit comments

Comments
 (0)