Skip to content

Commit

Permalink
lpm6: fix size of tbl8 group
Browse files Browse the repository at this point in the history
[ upstream commit 64c46ba ]

Fixes: e480688 ("lpm6: add incremental update on delete")

Signed-off-by: Alex Kiselev <alex@therouter.net>
Acked-by: Andrzej Ostruszka <aostruszka@marvell.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
  • Loading branch information
alexk99 authored and kevintraynor committed May 27, 2020
1 parent ce2659e commit 460ab46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/librte_lpm/rte_lpm6.c
Expand Up @@ -725,7 +725,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
Expand Down

0 comments on commit 460ab46

Please sign in to comment.