Re: [RFC v2 bpf-next 5/9] net/ipv6: Add fib6_lookup

2018-05-01 Thread David Ahern
On 5/1/18 12:15 PM, Vincent Bernat wrote: > ❦ 29 avril 2018 11:07 -0700, David Ahern  : > >> +struct fib6_info *fib6_lookup(struct net *net, int oif, struct flowi6 *fl6, >> + int flags) > > Maybe an EXPORT_SYMBOL_GPL? There is one for __fib_lookup

Re: [RFC v2 bpf-next 5/9] net/ipv6: Add fib6_lookup

2018-05-01 Thread Vincent Bernat
❦ 29 avril 2018 11:07 -0700, David Ahern  : > +struct fib6_info *fib6_lookup(struct net *net, int oif, struct flowi6 *fl6, > + int flags) Maybe an EXPORT_SYMBOL_GPL? There is one for __fib_lookup (fib_lookup is an inline function). -- Use the

[RFC v2 bpf-next 5/9] net/ipv6: Add fib6_lookup

2018-04-29 Thread David Ahern
Add IPv6 equivalent to fib_lookup. Does a fib lookup, including rules, but returns a FIB entry, fib6_info, rather than a dst based rt6_info. fib6_lookup is on the order of 40% faster than any of the dst based lookup methods without custom rules and 25% faster with custom rules. Since the lookup