Re: [PATCH net-next 2/2] ipv6: fib6: avoid indirect calls from fib6_rule_lookup

2020-06-23 Thread Paolo Abeni
On Mon, 2020-06-22 at 12:26 -0700, Brian Vazquez wrote: > > > On Mon, Jun 22, 2020 at 11:00 AM Paolo Abeni wrote: > > On Mon, 2020-06-22 at 09:25 -0700, Brian Vazquez wrote: > > > > > > Hi Paolo > > > On Mon, Jun 22, 2020 at 3:13 AM Paolo Abeni wrote: > > > > Hi, > > > > > > > > On Fri, 2020-

Re: [PATCH net-next 2/2] ipv6: fib6: avoid indirect calls from fib6_rule_lookup

2020-06-22 Thread Paolo Abeni
On Mon, 2020-06-22 at 09:25 -0700, Brian Vazquez wrote: > > Hi Paolo > On Mon, Jun 22, 2020 at 3:13 AM Paolo Abeni wrote: > > Hi, > > > > On Fri, 2020-06-19 at 20:14 -0700, Brian Vazquez wrote: > > > @@ -111,11 +111,13 @@ struct dst_entry *fib6_rule_lookup(struct net *net, > > > struct flowi6 *

Re: [PATCH net-next 2/2] ipv6: fib6: avoid indirect calls from fib6_rule_lookup

2020-06-22 Thread Paolo Abeni
Hi, On Fri, 2020-06-19 at 20:14 -0700, Brian Vazquez wrote: > @@ -111,11 +111,13 @@ struct dst_entry *fib6_rule_lookup(struct net *net, > struct flowi6 *fl6, > } else { > struct rt6_info *rt; > > - rt = lookup(net, net->ipv6.fib6_local_tbl, fl6, skb, flags); > +

[PATCH net-next 2/2] ipv6: fib6: avoid indirect calls from fib6_rule_lookup

2020-06-19 Thread Brian Vazquez
It was reported that a considerable amount of cycles were spent on the expensive indirect calls on fib6_rule_lookup. This patch introduces an inline helper called pol_route_func that uses the indirect_call_wrappers to avoid the indirect calls. This patch saves around 50ns per call. Performance wa