seg6: Cleanup duplicates of skb_dst_drop calls
authorYuya Tajima <yuya.tajimaa@gmail.com>
Mon, 15 May 2023 15:34:27 +0000 (15:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 May 2023 08:05:47 +0000 (09:05 +0100)
commitfa0583c202433c3d359a1b0579f52da16e25e4df
tree5cefd694152d86f670848865b92e2289f5fe474b
parent81cf1ade0bb3a42023dd1694ed080c4adb7dafd3
seg6: Cleanup duplicates of skb_dst_drop calls

In processing IPv6 segment routing header (SRH), several functions call
skb_dst_drop before ip6_route_input. However, ip6_route_input calls
skb_dst_drop within it, so there is no need to call skb_dst_drop in advance.

Signed-off-by: Yuya Tajima <yuya.tajimaa@gmail.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/exthdrs.c
net/ipv6/seg6_iptunnel.c