rib: constify arguments
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 25 Jun 2020 20:32:06 +0000 (13:32 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 7 Jul 2020 21:22:05 +0000 (23:22 +0200)
commit7bd83e60bf0f3362ca6dd733ab089ee0789585bb
tree3e8c22b9ccc78fcd506c234110aa3bc4518ea094
parent041a3971c8f47f7850586c601b7002652dc9327c
rib: constify arguments

The getter functions should take a constant pointer
to make it clear that node is not modified.

The rib create functions do not modify their config structure.
Mark the config as constant so that programs can pass
simple constant data.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
lib/librte_rib/rte_rib.c
lib/librte_rib/rte_rib.h
lib/librte_rib/rte_rib6.c
lib/librte_rib/rte_rib6.h