lpm6: make IPv6 address immutable
authorAndrzej Ostruszka <aostruszka@marvell.com>
Tue, 10 Mar 2020 09:13:26 +0000 (10:13 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 31 Mar 2020 19:45:43 +0000 (21:45 +0200)
commit10c69730a4b4910b4d57c365329a6c26479d25cd
tree49af488d63cde0ba45799d4e61d3cef27e443176
parent5f60d38b5a22808a7dd46a16572c4374ebae86a3
lpm6: make IPv6 address immutable

None of the public functions modify IPv6 address passed.  So their
parameters are made const - with the exception of bulk functions.
This exception is due to compatibility problems - some compilers report
problems with const-casting of array of arrays.

Previously only lookup and add were updated to have addresses passed as
const so I'm adding this fixline.

Fixes: d82927d2f81d ("lpm6: make IPv6 address immutable")
Cc: stable@dpdk.org
Signed-off-by: Andrzej Ostruszka <aostruszka@marvell.com>
Acked-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
lib/librte_lpm/rte_lpm6.c
lib/librte_lpm/rte_lpm6.h