lpm6: fix comments spelling
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 10 Mar 2020 16:26:22 +0000 (09:26 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 24 Apr 2020 17:29:02 +0000 (19:29 +0200)
Fix spelling errors in comments.

Fixes: e480688dce6d ("lpm6: add incremental update on delete")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
lib/librte_lpm/rte_lpm6.c

index f5979fb..37baabb 100644 (file)
@@ -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) {