Re: [PATCH net-next] net: avoid a full fib lookup when rp_filter is disabled.

2017-09-21 Thread David Miller
From: Paolo Abeni Date: Wed, 20 Sep 2017 18:26:53 +0200 > Since commit 1dced6a85482 ("ipv4: Restore accept_local behaviour > in fib_validate_source()") a full fib lookup is needed even if > the rp_filter is disabled, if accept_local is false - which is > the default. > > What

Re: [PATCH net-next] net: avoid a full fib lookup when rp_filter is disabled.

2017-09-20 Thread Paolo Abeni
Dumb me and dumb my scripts. This is actually a v2, v1 was at: https://patchwork.ozlabs.org/project/netdev/list/?series=3835 David, please let me know if you prefer I'll repost with a more appropriate subject line. Sorry for the noise, Paolo

Re: [PATCH net-next] net: avoid a full fib lookup when rp_filter is disabled.

2017-09-19 Thread Paolo Abeni
Hi, On Tue, 2017-09-19 at 05:00 -0700, Eric Dumazet wrote: > On Tue, 2017-09-19 at 12:46 +0200, Paolo Abeni wrote: > .. > > > Acked-by: Hannes Frederic Sowa > > Signed-off-by: Paolo Abeni > > --- > > +/* called under RCU lock */ > > +struct

Re: [PATCH net-next] net: avoid a full fib lookup when rp_filter is disabled.

2017-09-19 Thread Eric Dumazet
On Tue, 2017-09-19 at 12:46 +0200, Paolo Abeni wrote: .. > Acked-by: Hannes Frederic Sowa > Signed-off-by: Paolo Abeni > --- > +/* called under RCU lock */ > +struct in_ifaddr *inet_lookup_ifaddr_rcu(struct net *net, __be32 addr) > +{ > + u32