Re: [dpdk-dev] bug in LPM handling (16.04+)

2017-03-29 Thread Bruce Richardson
On Wed, Mar 29, 2017 at 02:38:13PM +0200, László Molnár wrote: > --- rte_lpm.c~3 2017-03-29 12:19:06.146933973 +0200 > +++ rte_lpm.c 2017-03-29 12:19:06.0 +0200 > @@ -1034,7 +1034,7 @@ >*/ > > struct rte_lpm_tbl_entry new_tbl24_entry = { > -

Re: [dpdk-dev] bug in LPM handling (16.04+)

2017-03-29 Thread László Molnár
--- rte_lpm.c~3 2017-03-29 12:19:06.146933973 +0200 +++ rte_lpm.c 2017-03-29 12:19:06.0 +0200 @@ -1034,7 +1034,7 @@ */ struct rte_lpm_tbl_entry new_tbl24_entry = { - .group_idx = (uint8_t)tbl8_group_index, + .gr

[dpdk-dev] bug in LPM handling (16.04+)

2017-03-29 Thread László Molnár
Hi, While testing the LPM implementation of DPDK (16.04+), I found that in some cases prefixes are not added correctly to the table. This problem seems to be caused by incorrect casts. See attached patch. L