Re: bgpd, optimize bgpctl show rib 10.0.0.1 or-shorter

2022-09-09 Thread Claudio Jeker
On Fri, Sep 09, 2022 at 03:20:00PM +0200, Theo Buehler wrote: > On Fri, Sep 09, 2022 at 02:49:12PM +0200, Claudio Jeker wrote: > > So bgpctl has the or-shorter flag to indicate that not only the best > > matching prefix should be shown, instead all matching prefixes are shown. > > Currently this

Re: bgpd, optimize bgpctl show rib 10.0.0.1 or-shorter

2022-09-09 Thread Theo Buehler
On Fri, Sep 09, 2022 at 02:49:12PM +0200, Claudio Jeker wrote: > So bgpctl has the or-shorter flag to indicate that not only the best > matching prefix should be shown, instead all matching prefixes are shown. > Currently this is done by a full table walk which is super expensive. > There is no

bgpd, optimize bgpctl show rib 10.0.0.1 or-shorter

2022-09-09 Thread Claudio Jeker
So bgpctl has the or-shorter flag to indicate that not only the best matching prefix should be shown, instead all matching prefixes are shown. Currently this is done by a full table walk which is super expensive. There is no real reason to do that. One can just start the lookup with prefixlen = 0