[dpdk-dev] [PATCH] lpm: fix freeing of rules_tbl in rte_lpm_free_v20

2016-05-02 Thread Thomas Monjalon
> > Back then when we fixed the missing free lpm I was to quickly to say yes > > if it applies not only to the lpm6 but also to all of the lpm code. > > > > It turned out to not apply to all of them. In rte_lpm_create_v20 there > > is an unexpected fused allocation: > > mem_size = sizeof(*lpm) + (s

[dpdk-dev] [PATCH] lpm: fix freeing of rules_tbl in rte_lpm_free_v20

2016-04-12 Thread Olivier MATZ
Hi, On 04/12/2016 03:49 PM, Christian Ehrhardt wrote: > Back then when we fixed the missing free lpm I was to quickly to say yes > if it applies not only to the lpm6 but also to all of the lpm code. > > It turned out to not apply to all of them. In rte_lpm_create_v20 there > is an unexpected fused

[dpdk-dev] [PATCH] lpm: fix freeing of rules_tbl in rte_lpm_free_v20

2016-04-12 Thread Christian Ehrhardt
Back then when we fixed the missing free lpm I was to quickly to say yes if it applies not only to the lpm6 but also to all of the lpm code. It turned out to not apply to all of them. In rte_lpm_create_v20 there is an unexpected fused allocation: mem_size = sizeof(*lpm) + (sizeof(lpm->rules_tbl[0]