Re: [PATCH net v2 1/2] ipv6: Dump route exceptions too in rt6_dump_route()

2019-06-07 Thread Stefano Brivio
On Sat, 8 Jun 2019 06:15:51 + Martin Lau wrote: > > @@ -473,12 +473,22 @@ static int fib6_dump_node(struct fib6_walker *w) > > struct fib6_info *rt; > > > > for_each_fib6_walker_rt(w) { > > - res = rt6_dump_route(rt, w->args); > > - if (res < 0) { > > +

Re: [PATCH net v2 1/2] ipv6: Dump route exceptions too in rt6_dump_route()

2019-06-07 Thread Martin Lau
On Fri, Jun 07, 2019 at 04:14:56AM +0200, Stefano Brivio wrote: > Since commit 2b760fcf5cfb ("ipv6: hook up exception table to store dst > cache"), route exceptions reside in a separate hash table, and won't be > found by walking the FIB, so they won't be dumped to userspace on a > RTM_GETROUTE mes

[PATCH net v2 1/2] ipv6: Dump route exceptions too in rt6_dump_route()

2019-06-06 Thread Stefano Brivio
Since commit 2b760fcf5cfb ("ipv6: hook up exception table to store dst cache"), route exceptions reside in a separate hash table, and won't be found by walking the FIB, so they won't be dumped to userspace on a RTM_GETROUTE message. This causes 'ip -6 route list cache' and 'ip -6 route flush cache