lpm: fix free of data structure
authorRuifeng Wang <ruifeng.wang@arm.com>
Fri, 23 Oct 2020 09:38:17 +0000 (11:38 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Sat, 24 Oct 2020 17:08:06 +0000 (19:08 +0200)
commit0e8aa9970c9f1f44f4925b855f74c474a5f084e1
tree6dface9c811dae8f4031c8462177a9025a6814d0
parent2b8e4418ed4f85e44494981e9c6ae6a0e37dfc3a
lpm: fix free of data structure

The container structure should be freed instead of rte_lpm structure
after wrapping rte_lpm into internal structure __rte_lpm.

Fixes: 8a9f8564e9f9 ("lpm: implement RCU rule reclamation")

Signed-off-by: Ruifeng Wang <ruifeng.wang@arm.com>
Reviewed-by: Phil Yang <phil.yang@arm.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
Acked-by: Kevin Traynor <ktraynor@redhat.com>
lib/librte_lpm/rte_lpm.c