[dpdk-dev] [PATCH] rte_lpm6: fix incorrect size of tbl8 group
Bruce Richardson
bruce.richardson at intel.com
Wed Apr 8 14:28:07 CEST 2020
On Tue, Apr 07, 2020 at 02:52:57PM +0300, Alex Kiselev wrote:
> rte_lpm6: fix incorrect size of tbl8 group
>
Missing Cc: stable at dpdk.org and fixes line, which I believe should be:
Fixes: e480688dce6d ("lpm6: add incremental update on delete")
> Signed-off-by: Alex Kiselev <alex at therouter.net>
> ---
> lib/librte_lpm/rte_lpm6.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/lib/librte_lpm/rte_lpm6.c b/lib/librte_lpm/rte_lpm6.c
> index 1047efa8a..f5979fb15 100644
> --- a/lib/librte_lpm/rte_lpm6.c
> +++ b/lib/librte_lpm/rte_lpm6.c
> @@ -726,7 +726,8 @@ add_step(struct rte_lpm6 *lpm, struct rte_lpm6_tbl_entry *tbl,
> tbl8_group_start = tbl8_gindex *
> RTE_LPM6_TBL8_GROUP_NUM_ENTRIES;
> memset(&lpm->tbl8[tbl8_group_start], 0,
> - RTE_LPM6_TBL8_GROUP_NUM_ENTRIES);
> + RTE_LPM6_TBL8_GROUP_NUM_ENTRIES *
> + sizeof(struct rte_lpm6_tbl_entry));
>
> /* init the new table's header:
> * save the reference to the owner table
With fixes line and Cc of stable:
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
More information about the dev
mailing list