On 8/12/19 4:58 PM, Stefano Brivio wrote: > How so, actually? I don't see how that would happen. On the forwarding > path, 'iif' is set (not to loopback interface), so that's not affected. > > Is there any other route lookup possibility I'm missing?
Use case is saddr is set and FLOWI_FLAG_ANYSRC is not set and that seems pretty common to me. From a quick look, icmp_route_lookup, ipv4_update_pmtu, ipv4_redirect, inet_csk_route_req, ... Enable trace_fib_table_lookup and look at the flags for various use cases.