Re: [patch net] mlxsw: spectrum_router: Avoid expensive lookup during route removal

2017-10-08 Thread David Miller
From: Jiri Pirko Date: Sun, 8 Oct 2017 11:53:26 +0200 > From: Ido Schimmel > > In commit fc922bb0dd94 ("mlxsw: spectrum_router: Use one LPM tree for > all virtual routers") I increased the scale of supported VRFs by having > all of them share the same

[patch net] mlxsw: spectrum_router: Avoid expensive lookup during route removal

2017-10-08 Thread Jiri Pirko
From: Ido Schimmel In commit fc922bb0dd94 ("mlxsw: spectrum_router: Use one LPM tree for all virtual routers") I increased the scale of supported VRFs by having all of them share the same LPM tree. In order to avoid look-ups for prefix lengths that don't exist, each route