lpm: report error when defer queue overflows
authorRuifeng Wang <ruifeng.wang@arm.com>
Thu, 16 Jul 2020 15:49:19 +0000 (23:49 +0800)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 21 Jul 2020 18:48:40 +0000 (20:48 +0200)
commit4cdd49f9b02fa652d0b4ff1e1d56ecc8ca754978
treeb9fc34a91e8f8f218401df91ef6d8880620e0b6e
parente1187407b440e79426084a7b141f918c646ab9b1
lpm: report error when defer queue overflows

Coverity complains about unchecked return value of rte_rcu_qsbr_dq_enqueue.
By default, defer queue size is big enough to hold all tbl8 groups. When
enqueue fails, return error to the user to indicate system issue.

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

Signed-off-by: Ruifeng Wang <ruifeng.wang@arm.com>
Acked-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_lpm/rte_lpm.c