Re: [PATCH net-next v3 3/4] nexthop: flush cached routes when a nexthop leaves a group

From: Jakub Kicinski

Date: Mon Nov 16 2026 - 18:13:24 EST


On Mon, 09 Nov 2026 03:18:14 -0500 Qiliang Yuan wrote:
> @@ -2109,6 +2109,9 @@ remove_nh_grp_entry(struct net *net, struct nh_grp_entry *nhge,
> return false;
> }
>
> +static void nh_rt_cache_flush(struct net *net, struct nexthop *nh,
> + struct nexthop *replaced_nh);

Nit: is the fwd declaration unavoidable? Can you just re-order
the functions?