Commit 5a78a812 authored by David Ahern's avatar David Ahern Committed by Paolo Abeni

net/ipv6: Remove gc_link warn on in fib6_info_release

A revert of
   3dec89b1 ("net/ipv6: Remove expired routes with a separated list of routes")
was sent for net-next. Revert the remainder of 5a08d006
which added a warn on if a fib entry is still on the gc_link list
to avoid compile failures when net is merged to net-next
Signed-off-by: default avatarDavid Ahern <dsahern@kernel.org>
Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20231219030742.25715-1-dsahern@kernel.orgSigned-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 3ab57208
...@@ -328,10 +328,8 @@ static inline bool fib6_info_hold_safe(struct fib6_info *f6i) ...@@ -328,10 +328,8 @@ static inline bool fib6_info_hold_safe(struct fib6_info *f6i)
static inline void fib6_info_release(struct fib6_info *f6i) static inline void fib6_info_release(struct fib6_info *f6i)
{ {
if (f6i && refcount_dec_and_test(&f6i->fib6_ref)) { if (f6i && refcount_dec_and_test(&f6i->fib6_ref))
DEBUG_NET_WARN_ON_ONCE(!hlist_unhashed(&f6i->gc_link));
call_rcu(&f6i->rcu, fib6_info_destroy_rcu); call_rcu(&f6i->rcu, fib6_info_destroy_rcu);
}
} }
enum fib6_walk_state { enum fib6_walk_state {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment