rib: check for negative maximum of nodes
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 25 Jun 2020 20:32:07 +0000 (13:32 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 7 Jul 2020 21:22:18 +0000 (23:22 +0200)
commit58607c2e27b391b2a382a8316cb490ad78118153
treec6635d4144551b01ce204537d84f692862c746d3
parent7bd83e60bf0f3362ca6dd733ab089ee0789585bb
rib: check for negative maximum of nodes

Max_nodes in config is signed, but a negative value makes
no sense. Get rid of extra BSD style parens.

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_rib6.c