Re: [dpdk-dev] [PATCH v4] lpm: skip table entries update if rules found

2020-04-24 Thread Thomas Monjalon
21/04/2020 17:44, Medvedkin, Vladimir: > Hi Yangchao, > > Thanks for the patch. > This might be useful for control plane implementations that don't track > inserted routes. > I have just a one nit inlined below. Also, could you do the same for lpm6? > > P.S. Please have a look at rte_fib library

Re: [dpdk-dev] [PATCH v4] lpm: skip table entries update if rules found

2020-04-21 Thread Medvedkin, Vladimir
Hi Yangchao, Thanks for the patch. This might be useful for control plane implementations that don't track inserted routes. I have just a one nit inlined below. Also, could you do the same for lpm6? P.S. Please have a look at rte_fib library, there are more optimizations compared to lpm libra

[dpdk-dev] [PATCH v4] lpm: skip table entries update if rules found

2020-04-19 Thread Yangchao Zhou
Table entries do not need to be updated if the same rules can be found. Signed-off-by: Yangchao Zhou --- v1-v2: Skip updating when the next hop is the same as the current one v2-v4: Coding style fix --- lib/librte_lpm/rte_lpm.c | 9 + 1 file changed, 9 insertions(+) diff --git a/lib/lib