diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h index f390c3bb05c5d2189d169d31038fd5cb991bebaa..6c67b9391fc0e3ecd1716dc7db7f068e99e396d9 100644 --- a/include/net/ip_fib.h +++ b/include/net/ip_fib.h @@ -397,6 +397,11 @@ static inline void fib_combine_itag(u32 *itag, const struct fib_result *res) void free_fib_info(struct fib_info *fi); +static inline void fib_info_hold(struct fib_info *fi) +{ + atomic_inc(&fi->fib_clntref); +} + static inline void fib_info_put(struct fib_info *fi) { if (atomic_dec_and_test(&fi->fib_clntref))