X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_lpm%2Frte_lpm6.c;h=37baabb26d6e236100f6ab00cff27fedfd19b850;hb=81a6b7fe068f64d1381ea4d6fce5088a1bcc7f81;hp=f5979fb15981e7b4fb24359c3a57ab2b5cf660cb;hpb=64c46bacf48550f09ef758a15cee9d3b6f443f59;p=dpdk.git 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) {