From e2635408a0e3e190c22362e8dd4f8226f6e73308 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 10 Mar 2020 09:26:22 -0700 Subject: [PATCH] lpm6: fix comments spelling Fix spelling errors in comments. Fixes: e480688dce6d ("lpm6: add incremental update on delete") Cc: stable@dpdk.org Signed-off-by: Stephen Hemminger --- lib/librte_lpm/rte_lpm6.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/librte_lpm/rte_lpm6.c b/lib/librte_lpm/rte_lpm6.c index f5979fb159..37baabb26d 100644 --- a/lib/librte_lpm/rte_lpm6.c +++ b/lib/librte_lpm/rte_lpm6.c @@ -814,7 +814,7 @@ add_step(struct rte_lpm6 *lpm, struct rte_lpm6_tbl_entry *tbl, * * Returns: * 0 on success - * -ENOSPC not enought tbl8 left + * -ENOSPC not enough tbl8 left */ static int simulate_add(struct rte_lpm6 *lpm, const uint8_t *masked_ip, uint8_t depth) @@ -844,7 +844,7 @@ simulate_add(struct rte_lpm6 *lpm, const uint8_t *masked_ip, uint8_t depth) } if (tbl8_available(lpm) < total_need_tbl_nb) - /* not enought tbl8 to add a rule */ + /* not enough tbl8 to add a rule */ return -ENOSPC; return 0; @@ -1212,7 +1212,7 @@ rule_find_range(struct rte_lpm6 *lpm, const uint8_t *ip, uint8_t depth, /* minus top level */ depth -= 24; - /* interate through levels (tbl8s) + /* iterate through levels (tbl8s) * until we reach the last one */ while (depth > 8) { -- 2.20.1