lpm6: fix size of tbl8 group
Fixes: e480688dce
("lpm6: add incremental update on delete")
Cc: stable@dpdk.org
Signed-off-by: Alex Kiselev <alex@therouter.net>
Acked-by: Andrzej Ostruszka <aostruszka@marvell.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
This commit is contained in:
parent
a26aa0d5e2
commit
64c46bacf4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user