aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/exthdrs.c
diff options
context:
space:
mode:
authorKuniyuki Iwashima <[email protected]>2023-07-10 21:35:11 +0000
committerJakub Kicinski <[email protected]>2023-07-13 00:12:29 +0000
commitc5ec13e38af5527f69f647c46ce15ebaa6b35e6c (patch)
treea58a8f832a3d34f8e1c62d1083c2943bd691c94c /net/ipv6/exthdrs.c
parentMerge branch 'mlxsw-add-port-range-matching-support' (diff)
downloadkernel-c5ec13e38af5527f69f647c46ce15ebaa6b35e6c.tar.gz
kernel-c5ec13e38af5527f69f647c46ce15ebaa6b35e6c.zip
ipv6: rpl: Remove redundant skb_dst_drop().
RPL code has a pattern where skb_dst_drop() is called before ip6_route_input(). However, ip6_route_input() calls skb_dst_drop() internally, so we need not call skb_dst_drop() before ip6_route_input(). Signed-off-by: Kuniyuki Iwashima <[email protected]> Reviewed-by: Simon Horman <[email protected]> Reviewed-by: David Ahern <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/ipv6/exthdrs.c')
-rw-r--r--net/ipv6/exthdrs.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ipv6/exthdrs.c b/net/ipv6/exthdrs.c
index 202fc3aaa83c..f4bfccae003c 100644
--- a/net/ipv6/exthdrs.c
+++ b/net/ipv6/exthdrs.c
@@ -612,8 +612,6 @@ looped_back:
kfree(buf);
- skb_dst_drop(skb);
-
ip6_route_input(skb);
if (skb_dst(skb)->error) {