Re: [ovs-dev] [PATCH ovn 1/2] nbctl: Cache to which switch or router particular port belongs.

2020-12-09 Thread Dumitru Ceara
On 12/8/20 1:56 PM, Ilya Maximets wrote: > nbctl always iterates over all ports in all logical switches or routers > to find to which logical router/switch current port belongs. This > could be optimized by iterating only once and caching the current > state. This should improve a little bit

[ovs-dev] [PATCH ovn 1/2] nbctl: Cache to which switch or router particular port belongs.

2020-12-08 Thread Ilya Maximets
nbctl always iterates over all ports in all logical switches or routers to find to which logical router/switch current port belongs. This could be optimized by iterating only once and caching the current state. This should improve a little bit performance of this utility in case where many