On 11/28/21 1:14 PM, Nikolay Aleksandrov wrote:
It duplicates a part of it but in a safe way because the fib6_nh could still be visible,
while fib6_nh_release does it in a way that assumes it's not. I could re-use
this helper in fib6_nh_release though, since it doesn't matter how the entries are
freed there. I'm guessing that is what you meant?
yes, that is what I meant - it duplicates a chunk of the code in
fib6_nh_release.
I'll take care of that and of the few possible optimizations for nexthop in net-next.
thanks!