[dpdk-dev] [PATCH v3 1/2] librte_lpm: Improve performance of the delete and add functions

Alex Kiselev alex at therouter.net
Mon Jul 16 19:34:45 CEST 2018


> On Wed, 11 Jul 2018 20:53:46 +0300
> Alex Kiselev <alex at therouter.net> wrote:

>> librte_lpm: Improve lpm6 performance

>> Rework the lpm6 rule subsystem and replace
>> current rules algorithm complexity O(n)
>> with hashtables which allow dealing with
>> large (50k) rule sets.


> Wouldn't it make more sense to use something like tree, and use left/right
> in the rules entry. That way the memory is spread and scales with the number
> of rules.
I guess you are trying to propose using a radix tree. I agree, it uses memory
more efficient than hashtable. But, it would require to add a new dpdk library implementing a
radix tree, then we can talk about using it as a lpm rule storage.

-- 
Alex



More information about the dev mailing list