DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] rte_lpm_add in librte_lpm
@ 2014-09-06  0:14 Jan Sacha
  0 siblings, 0 replies; only message in thread
From: Jan Sacha @ 2014-09-06  0:14 UTC (permalink / raw)
  To: dev


Hi,

I've been playing with DPDK and I got some crashes in the LPM module. As 
far as I know, this problem has not been reported yet. These crashes 
happened in DPDK 1.7.0 and 1.6.0r2 (I didn't check other versions) when 
I added new LPM routes.

In the lib/librte_lpm/rte_lpm.c file, line 399 (add_depth_small 
function), there is the following condition:

if (!lpm->tbl24[i].valid || (lpm->tbl24[i].ext_entry == 0 && 
lpm->tbl24[i].depth <= depth))

If the new route has a lower depth than an existing non-extended entry, 
this condition is not met. We then skip to line 418, where we assume the 
entry is extended and use an uninitialized index. Is this a bug?

Thanks,
Jan

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-09-06  0:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-06  0:14 [dpdk-dev] rte_lpm_add in librte_lpm Jan Sacha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).