]> git.hungrycats.org Git - linux/commit
ip6mr: plug drop_reason to ip6mr_cache_report()
authorEric Dumazet <edumazet@google.com>
Thu, 30 Apr 2026 07:40:04 +0000 (07:40 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 2 May 2026 00:02:45 +0000 (17:02 -0700)
commit8d59a7a188c0a7f6d52e4a829f3ce75534255d76
treeb5bdff15f26c318652873d12d532cb653999174c
parent4fe18ddd17d842f140312b55d3a0753601613cb8
ip6mr: plug drop_reason to ip6mr_cache_report()

- Check mrt->mroute_sk earlier in the function.

- Use sock_queue_rcv_skb_reason() instead of sock_queue_rcv_skb().
- Use sk_skb_reason_drop() instead of kfree_skb().
  Note that we return -ENOMEM if sock_queue_rcv_skb_reason() failed,
  as the precise error is not really needed for callers.

- Remove one net_warn_ratelimited().

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Link: https://patch.msgid.link/20260430074004.4133602-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv6/ip6mr.c