]> git.droids-corp.org - dpdk.git/commitdiff
fix spelling in comments and doxygen
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 12 Nov 2021 00:02:09 +0000 (16:02 -0800)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 16 Nov 2021 16:57:09 +0000 (17:57 +0100)
Fix spelling errors in comments including doxygen found using codespell.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Acked-by: Ray Kinsella <mdr@ashroe.eu>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
Acked-by: Chenbo Xia <chenbo.xia@intel.com>
47 files changed:
app/test-pmd/cmdline.c
app/test-pmd/config.c
app/test-pmd/icmpecho.c
app/test/test_atomic.c
app/test/test_barrier.c
app/test/test_bpf.c
app/test/test_compressdev.c
app/test/test_func_reentrancy.c
app/test/test_ipsec.c
app/test/test_link_bonding.c
app/test/test_lpm.c
app/test/test_lpm6.c
app/test/test_malloc.c
app/test/test_mbuf.c
app/test/test_mempool.c
app/test/test_mempool_perf.c
app/test/test_meter.c
app/test/test_pmd_perf.c
app/test/test_timer.c
lib/acl/acl.h
lib/acl/acl_bld.c
lib/acl/acl_run_avx2.h
lib/bbdev/rte_bbdev.c
lib/bpf/bpf_jit_x86.c
lib/bpf/bpf_load_elf.c
lib/bpf/bpf_pkt.c
lib/bpf/bpf_validate.c
lib/eal/include/rte_function_versioning.h
lib/eal/windows/include/fnmatch.h
lib/eventdev/rte_event_timer_adapter.c
lib/hash/rte_thash.c
lib/ip_frag/rte_ipv4_reassembly.c
lib/ipsec/esp_inb.c
lib/ipsec/esp_outb.c
lib/ipsec/ipsec_sad.c
lib/ipsec/sa.c
lib/ipsec/sa.h
lib/net/rte_gtp.h
lib/node/ethdev_rx_priv.h
lib/node/ethdev_tx_priv.h
lib/node/ip4_rewrite_priv.h
lib/pipeline/rte_swx_pipeline.h
lib/power/power_acpi_cpufreq.c
lib/rcu/rte_rcu_qsbr.h
lib/rib/rte_rib6.c
lib/sched/rte_sched.c
lib/vhost/rte_vhost.h

index 4f51b259fed1ca10ecceb1c66ea84d142c4184bd..fb5433fd5b2b753b72f16883b78e482fc4198128 100644 (file)
@@ -3653,7 +3653,7 @@ parse_item_list(const char *str, const char *item_name, unsigned int max_items,
                return nb_item;
 
        /*
-        * Then, check that all values in the list are differents.
+        * Then, check that all values in the list are different.
         * No optimization here...
         */
        for (i = 0; i < nb_item; i++) {
index 26cadf39f7a944e6c686b57cf215058c7899f6c2..26318b4f14b31d1e2efd613c97d8472524265919 100644 (file)
@@ -2965,7 +2965,7 @@ port_rss_reta_info(portid_t port_id,
 }
 
 /*
- * Displays the RSS hash functions of a port, and, optionaly, the RSS hash
+ * Displays the RSS hash functions of a port, and, optionally, the RSS hash
  * key of the port.
  */
 void
@@ -5250,7 +5250,7 @@ mcast_addr_pool_remove(struct rte_port *port, uint32_t addr_idx)
 {
        port->mc_addr_nb--;
        if (addr_idx == port->mc_addr_nb) {
-               /* No need to recompact the set of multicast addressses. */
+               /* No need to recompact the set of multicast addresses. */
                if (port->mc_addr_nb == 0) {
                        /* free the pool of multicast addresses. */
                        free(port->mc_addr_pool);
index 8f1d68a83afdc262a72e6b3dfab86fea1c8dd7f6..d6620f5f6a47ab78443a4930388f0ffbdf6a0885 100644 (file)
@@ -54,7 +54,7 @@ arp_op_name(uint16_t arp_op)
        default:
                break;
        }
-       return "Unkwown ARP op";
+       return "Unknown ARP op";
 }
 
 static const char *
index ce0c259bd7852df2124e99e49b97484a9d875b20..e4b997827ea8886f204e6a9fcb45896d427b05eb 100644 (file)
@@ -88,7 +88,7 @@
  *
  *   - Invoke ``test_atomic_exchange`` on each lcore.  Before doing
  *     anything else, the cores wait for a synchronization event.
- *     Each core then does the follwoing for N iterations:
+ *     Each core then does the following for N iterations:
  *
  *       Generate a new token with a data integrity check
  *       Exchange the new token for previously generated token
index c27f8a0742f2f682d64a965a1ccbf79cac3fe4f9..8fa93c00329a4d0b2c80bbb4f698251e6be5e02b 100644 (file)
@@ -66,7 +66,7 @@ struct plock_test {
 struct lcore_plock_test {
        struct plock_test *pt[2]; /* shared, lock-protected data */
        uint64_t sum[2];          /* local copy of the shared data */
-       uint64_t iter;            /* number of iterations to perfom */
+       uint64_t iter;            /* number of iterations to perform */
        uint32_t lc;              /* given lcore id */
 };
 
index 8f2414eb2b5adbf596b760fae908691909d7bc52..8b287225152ae4eebb2e49bae758dddb16115423 100644 (file)
@@ -2407,7 +2407,7 @@ static const struct ebpf_insn test_call5_prog[] = {
        },
 };
 
-/* String comparision impelementation, return 0 if equal else difference */
+/* String comparison implementation, return 0 if equal else difference */
 static uint32_t
 dummy_func5(const char *s1, const char *s2)
 {
index a1b9f062501fe7a9fbc76742f6b44a37ff138ed0..c63b5b6737a4df40a647b83d265f64925011f354 100644 (file)
@@ -2033,7 +2033,7 @@ test_deflate_comp_decomp(const struct interim_data_params *int_data,
        test_priv_data.all_decomp_data = &all_decomp_data;
        test_priv_data.decomp_produced_data_size = &decomp_produced_data_size;
 
-       test_priv_data.num_priv_xforms = 0; /* it's used for deompression only */
+       test_priv_data.num_priv_xforms = 0; /* it's used for decompression only */
 
        capa = rte_compressdev_capability_get(0, RTE_COMP_ALGO_DEFLATE);
        if (capa == NULL) {
index 838ab6f0f90b03303becc71a4e8bef7d58f832c1..36e83bc5872b32476aab86ada9cfb8a9b4fa9215 100644 (file)
@@ -253,7 +253,7 @@ hash_create_free(__rte_unused void *arg)
                        rte_atomic32_inc(&obj_count);
        }
 
-       /* create mutiple times simultaneously */
+       /* create multiple times simultaneously */
        for (i = 0; i < MAX_ITER_MULTI; i++) {
                snprintf(hash_name, sizeof(hash_name), "fr_test_%d_%d", lcore_self, i);
                hash_params.name = hash_name;
@@ -321,7 +321,7 @@ fbk_create_free(__rte_unused void *arg)
                        rte_atomic32_inc(&obj_count);
        }
 
-       /* create mutiple fbk tables simultaneously */
+       /* create multiple fbk tables simultaneously */
        for (i = 0; i < MAX_ITER_MULTI; i++) {
                snprintf(fbk_name, sizeof(fbk_name), "fr_test_%d_%d", lcore_self, i);
                fbk_params.name = fbk_name;
@@ -387,7 +387,7 @@ lpm_create_free(__rte_unused void *arg)
                        rte_atomic32_inc(&obj_count);
        }
 
-       /* create mutiple fbk tables simultaneously */
+       /* create multiple fbk tables simultaneously */
        for (i = 0; i < MAX_LPM_ITER_TIMES; i++) {
                snprintf(lpm_name, sizeof(lpm_name), "fr_test_%d_%d", lcore_self, i);
                lpm = rte_lpm_create(lpm_name, SOCKET_ID_ANY, &config);
index 1bec63b0e872eec4e4219e68258860be9e728b74..bc2a3dbc2e0a84af4c13780bc960b0565abd52d2 100644 (file)
@@ -653,7 +653,7 @@ create_crypto_session(struct ipsec_unitest_params *ut,
        if (s == NULL)
                return -ENOMEM;
 
-       /* initiliaze SA crypto session for device */
+       /* initialize SA crypto session for device */
        rc = rte_cryptodev_sym_session_init(dev_id, s,
                        ut->crypto_xforms, qp->mp_session_private);
        if (rc == 0) {
index 8a9ef851789f9aa516447a1ca4543c8b13e3f6ee..dc6fc46b9c93ab45f1ddc0bd7743647cfa962309 100644 (file)
@@ -3040,7 +3040,7 @@ test_balance_tx_burst_slave_tx_fail(void)
        first_tx_fail_idx = TEST_BAL_SLAVE_TX_FAIL_BURST_SIZE_1 -
                        TEST_BAL_SLAVE_TX_FAIL_PACKETS_COUNT;
 
-       /* copy mbuf referneces for expected transmission failures */
+       /* copy mbuf references for expected transmission failures */
        for (i = 0; i < TEST_BAL_SLAVE_TX_FAIL_PACKETS_COUNT; i++)
                expected_fail_pkts[i] = pkts_burst_1[i + first_tx_fail_idx];
 
index 556f5a67baf1ffdf1623289bdd8c23330115ebd9..37b460af3a962d1694afdaa540431a21a094285e 100644 (file)
@@ -179,7 +179,7 @@ test3(void)
        status = rte_lpm_add(NULL, ip, depth, next_hop);
        TEST_LPM_ASSERT(status < 0);
 
-       /*Create vaild lpm to use in rest of test. */
+       /*Create valid lpm to use in rest of test. */
        lpm = rte_lpm_create(__func__, SOCKET_ID_ANY, &config);
        TEST_LPM_ASSERT(lpm != NULL);
 
@@ -217,7 +217,7 @@ test4(void)
        status = rte_lpm_delete(NULL, ip, depth);
        TEST_LPM_ASSERT(status < 0);
 
-       /*Create vaild lpm to use in rest of test. */
+       /*Create valid lpm to use in rest of test. */
        lpm = rte_lpm_create(__func__, SOCKET_ID_ANY, &config);
        TEST_LPM_ASSERT(lpm != NULL);
 
@@ -255,7 +255,7 @@ test5(void)
        status = rte_lpm_lookup(NULL, ip, &next_hop_return);
        TEST_LPM_ASSERT(status < 0);
 
-       /*Create vaild lpm to use in rest of test. */
+       /*Create valid lpm to use in rest of test. */
        lpm = rte_lpm_create(__func__, SOCKET_ID_ANY, &config);
        TEST_LPM_ASSERT(lpm != NULL);
 
index 0d664546fa471b4ba8e5671e6c3d38178310ae0d..17221f992aee04cc80d572cc257bc89ab2764941 100644 (file)
@@ -261,7 +261,7 @@ test4(void)
        status = rte_lpm6_add(NULL, ip, depth, next_hop);
        TEST_LPM_ASSERT(status < 0);
 
-       /*Create vaild lpm to use in rest of test. */
+       /*Create valid lpm to use in rest of test. */
        lpm = rte_lpm6_create(__func__, SOCKET_ID_ANY, &config);
        TEST_LPM_ASSERT(lpm != NULL);
 
@@ -299,7 +299,7 @@ test5(void)
        status = rte_lpm6_delete(NULL, ip, depth);
        TEST_LPM_ASSERT(status < 0);
 
-       /*Create vaild lpm to use in rest of test. */
+       /*Create valid lpm to use in rest of test. */
        lpm = rte_lpm6_create(__func__, SOCKET_ID_ANY, &config);
        TEST_LPM_ASSERT(lpm != NULL);
 
@@ -337,7 +337,7 @@ test6(void)
        status = rte_lpm6_lookup(NULL, ip, &next_hop_return);
        TEST_LPM_ASSERT(status < 0);
 
-       /*Create vaild lpm to use in rest of test. */
+       /*Create valid lpm to use in rest of test. */
        lpm = rte_lpm6_create(__func__, SOCKET_ID_ANY, &config);
        TEST_LPM_ASSERT(lpm != NULL);
 
@@ -375,7 +375,7 @@ test7(void)
        status = rte_lpm6_lookup_bulk_func(NULL, ip, next_hop_return, 10);
        TEST_LPM_ASSERT(status < 0);
 
-       /*Create vaild lpm to use in rest of test. */
+       /*Create valid lpm to use in rest of test. */
        lpm = rte_lpm6_create(__func__, SOCKET_ID_ANY, &config);
        TEST_LPM_ASSERT(lpm != NULL);
 
@@ -413,7 +413,7 @@ test8(void)
        status = rte_lpm6_delete_bulk_func(NULL, ip, depth, 10);
        TEST_LPM_ASSERT(status < 0);
 
-       /*Create vaild lpm to use in rest of test. */
+       /*Create valid lpm to use in rest of test. */
        lpm = rte_lpm6_create(__func__, SOCKET_ID_ANY, &config);
        TEST_LPM_ASSERT(lpm != NULL);
 
@@ -433,7 +433,7 @@ test8(void)
 /*
  * Call add, lookup and delete for a single rule with depth < 24.
  * Check all the combinations for the first three bytes that result in a hit.
- * Delete the rule and check that the same test returs a miss.
+ * Delete the rule and check that the same test returns a miss.
  */
 int32_t
 test9(void)
@@ -1738,7 +1738,7 @@ test27(void)
  * Call add, lookup and delete for a single rule with maximum 21bit next_hop
  * size.
  * Check that next_hop returned from lookup is equal to provisioned value.
- * Delete the rule and check that the same test returs a miss.
+ * Delete the rule and check that the same test returns a miss.
  */
 int32_t
 test28(void)
index afff0de9f05a4a0913237ef07f064af55ad9265b..6d9249f831be19d940d8af65874e3a5ce375c1f8 100644 (file)
@@ -603,7 +603,7 @@ test_realloc_numa(void)
                }
        }
 
-       /* Print warnign if only a single socket, but don't fail the test */
+       /* Print warning if only a single socket, but don't fail the test */
        if (socket_count < 2)
                printf("WARNING: realloc_socket test needs memory on multiple sockets!\n");
 
@@ -971,7 +971,7 @@ test_alloc_socket(void)
                }
        }
 
-       /* Print warnign if only a single socket, but don't fail the test */
+       /* Print warning if only a single socket, but don't fail the test */
        if (socket_count < 2) {
                printf("WARNING: alloc_socket test needs memory on multiple sockets!\n");
        }
index f93bcef8a9bb2017b4fe1dfd87bc6d544fdae7a8..75f3453946653d4a2cd6a9389c7f5301674f91cc 100644 (file)
@@ -1148,7 +1148,7 @@ test_refcnt_mbuf(void)
 
        rte_eal_mp_wait_lcore();
 
-       /* check that we porcessed all references */
+       /* check that we processed all references */
        tref = 0;
        main_lcore = rte_get_main_lcore();
 
index a451608558f8d20e13523e697eb6fea3e54ce5ba..f6c650d11f35aecafb7f3afc9b7e4e7ad339c1b0 100644 (file)
@@ -994,7 +994,7 @@ test_mempool(void)
        if (test_mempool_basic_ex(mp_nocache) < 0)
                GOTO_ERR(ret, err);
 
-       /* mempool operation test based on single producer and single comsumer */
+       /* mempool operation test based on single producer and single consumer */
        if (test_mempool_sp_sc() < 0)
                GOTO_ERR(ret, err);
 
index 8f629736e8fd31ebaea2ba85a9804c617c1df6d2..87ad25136796cc0857ac6bb3a212963c68f19d5b 100644 (file)
@@ -88,7 +88,7 @@ static uint32_t synchro;
 static unsigned n_get_bulk;
 static unsigned n_put_bulk;
 
-/* number of objects retrived from mempool before putting them back */
+/* number of objects retrieved from mempool before putting them back */
 static unsigned n_keep;
 
 /* number of enqueues / dequeues */
index f6fe6494ab63096b9b50c30b6b4477c32d090153..15d5a4839b4b91c6741ff24db1202ea372f89c01 100644 (file)
@@ -444,7 +444,7 @@ tm_test_srtcm_color_aware_check(void)
          * if using blind check
          */
 
-       /* previouly have a green, test points should keep unchanged */
+       /* previously have a green, test points should keep unchanged */
        in[0] = in[1] = in[2] = in[3] = RTE_COLOR_GREEN;
        out[0] = RTE_COLOR_GREEN;
        out[1] = RTE_COLOR_YELLOW;
@@ -551,7 +551,7 @@ tm_test_trtcm_color_aware_check(void)
          * if using blind check
          */
 
-       /* previouly have a green, test points should keep unchanged */
+       /* previously have a green, test points should keep unchanged */
        in[0] = in[1] = in[2] = in[3] = RTE_COLOR_GREEN;
        out[0] = RTE_COLOR_GREEN;
        out[1] = RTE_COLOR_YELLOW;
@@ -648,7 +648,7 @@ tm_test_trtcm_rfc4115_color_aware_check(void)
          * if using blind check
          */
 
-       /* previouly have a green, test points should keep unchanged */
+       /* previously have a green, test points should keep unchanged */
        in[0] = in[1] = in[2] = in[3] = RTE_COLOR_GREEN;
        out[0] = RTE_COLOR_GREEN;
        out[1] = RTE_COLOR_YELLOW;
index 1df86ce080e5eb19d7a66e507ae24d89d5c0e57c..aac6c97cebd32bc213d6736eb4165f159c3b44ab 100644 (file)
@@ -752,7 +752,7 @@ test_pmd_perf(void)
                                "rte_eth_dev_start: err=%d, port=%d\n",
                                ret, portid);
 
-               /* always eanble promiscuous */
+               /* always enable promiscuous */
                ret = rte_eth_promiscuous_enable(portid);
                if (ret != 0)
                        rte_exit(EXIT_FAILURE,
index a10b2fe9daf4c8e898c068c0b2176b8712e8c82c..631b737d169dbe678302fc9dcf3e31151df41be7 100644 (file)
@@ -432,7 +432,7 @@ timer_basic_cb(struct rte_timer *tim, void *arg)
                return;
        }
 
-       /* Explicitelly stop timer 0. Once stop() called, we can even
+       /* Explicitly stop timer 0. Once stop() called, we can even
         * erase the content of the structure: it is not referenced
         * anymore by any code (in case of dynamic structure, it can
         * be freed) */
index 4089ab2a0462e3b5aaee6b500dbf6f2b054a7aed..f5739a475cf011aaf924fb4e78ab031957c84dd8 100644 (file)
@@ -45,7 +45,7 @@ struct rte_acl_bitset {
  * Each transition is 64 bit value with the following format:
  * | node_type_specific : 32 | node_type : 3 | node_addr : 29 |
  * For all node types except RTE_ACL_NODE_MATCH, node_addr is an index
- * to the start of the node in the transtions array.
+ * to the start of the node in the transitions array.
  * Few different node types are used:
  * RTE_ACL_NODE_MATCH:
  * node_addr value is and index into an array that contains the return value
@@ -66,7 +66,7 @@ struct rte_acl_bitset {
  * RTE_ACL_NODE_SINGLE:
  * always transitions to the same node regardless of the input value.
  * RTE_ACL_NODE_DFA:
- * that node consits of up to 256 transitions.
+ * that node consists of up to 256 transitions.
  * In attempt to conserve space all transitions are divided into 4 consecutive
  * groups, by 64 transitions per group:
  * group64[i] contains transitions[i * 64, .. i * 64 + 63].
index da10864cd870ad520bf60343c3f35bf9454f3dd1..f316d3e875ef1d4263eeffcc67fca1a95d2f11d7 100644 (file)
@@ -1494,7 +1494,7 @@ acl_set_data_indexes(struct rte_acl_ctx *ctx)
 /*
  * Internal routine, performs 'build' phase of trie generation:
  * - setups build context.
- * - analizes given set of rules.
+ * - analyzes given set of rules.
  * - builds internal tree(s).
  */
 static int
index d06d2e8782d698dbbbdef2d9b128b2a3871f98d7..0b8967f22e70ec2d82ca30cd7a9e05fa5eefc839 100644 (file)
@@ -125,7 +125,7 @@ acl_process_matches_avx2x8(const struct rte_acl_ctx *ctx,
        /* For each transition: put low 32 into tr_lo and high 32 into tr_hi */
        ACL_TR_HILO(mm256, __m256, t0, t1, lo, hi);
 
-       /* Keep transitions wth NOMATCH intact. */
+       /* Keep transitions with NOMATCH intact. */
        *tr_lo = _mm256_blendv_epi8(*tr_lo, lo, matches);
        *tr_hi = _mm256_blendv_epi8(*tr_hi, hi, matches);
 }
index b86c5fdcc0cbe5cf6be3e4893eacd062a070404e..7f353d4f7e7d77bcbaf3cc3ff9894d88c8d91d71 100644 (file)
@@ -138,7 +138,7 @@ rte_bbdev_data_alloc(void)
 }
 
 /*
- * Find data alocated for the device or if not found return first unused bbdev
+ * Find data allocated for the device or if not found return first unused bbdev
  * data. If all structures are in use and none is used by the device return
  * NULL.
  */
index aa22ea78a01df8e3e0dd64881fb454273a5b5b94..518513376a674cc05536ab4337744e6449c76f67 100644 (file)
@@ -1245,7 +1245,7 @@ emit_epilog(struct bpf_jit_state *st)
        uint32_t i;
        int32_t spil, ofs;
 
-       /* if we allready have an epilog generate a jump to it */
+       /* if we already have an epilog generate a jump to it */
        if (st->exit.num++ != 0) {
                emit_abs_jmp(st, st->exit.off);
                return;
index 2b11adeb5eb1a296a7248b1631a0b118620ddbcb..02a5d8ba0d07be6831702e9210568914a277c6cd 100644 (file)
@@ -80,7 +80,7 @@ resolve_xsym(const char *sn, size_t ofs, struct ebpf_insn *ins, size_t ins_sz,
        if (type == RTE_BPF_XTYPE_FUNC) {
 
                /* we don't support multiple functions per BPF module,
-                * so treat EBPF_PSEUDO_CALL to extrernal function
+                * so treat EBPF_PSEUDO_CALL to external function
                 * as an ordinary EBPF_CALL.
                 */
                if (ins[idx].src_reg == EBPF_PSEUDO_CALL) {
index 08eebd99b3718562d0d10bbc9b1045b4e996fc7d..af422afc072abeb612766d2c7a322c38c0c27601 100644 (file)
@@ -166,7 +166,7 @@ bpf_eth_cbh_add(struct bpf_eth_cbh *cbh, uint16_t port, uint16_t queue)
 }
 
 /*
- * BPF packet processing routinies.
+ * BPF packet processing routines.
  */
 
 static inline uint32_t
index 853279fee5577d0f275491454d6d6a351a67fe78..09331258ebf6a109cd6335a36efd40a5a53fac76 100644 (file)
@@ -1730,7 +1730,7 @@ static const struct bpf_ins_check ins_chk[UINT8_MAX + 1] = {
 
 /*
  * make sure that instruction syntax is valid,
- * and it fields don't violate partciular instrcution type restrictions.
+ * and its fields don't violate particular instruction type restrictions.
  */
 static const char *
 check_syntax(const struct ebpf_insn *ins)
@@ -1961,7 +1961,7 @@ log_loop(const struct bpf_verifier *bvf)
  * First pass goes though all instructions in the set, checks that each
  * instruction is a valid one (correct syntax, valid field values, etc.)
  * and constructs control flow graph (CFG).
- * Then deapth-first search is performed over the constructed graph.
+ * Then depth-first search is performed over the constructed graph.
  * Programs with unreachable instructions and/or loops will be rejected.
  */
 static int
@@ -1988,7 +1988,7 @@ validate(struct bpf_verifier *bvf)
 
                /*
                 * construct CFG, jcc nodes have to outgoing edges,
-                * 'exit' nodes - none, all others nodes have exaclty one
+                * 'exit' nodes - none, all other nodes have exactly one
                 * outgoing edge.
                 */
                switch (ins->code) {
@@ -2258,7 +2258,7 @@ evaluate(struct bpf_verifier *bvf)
                        idx = get_node_idx(bvf, node);
                        op = ins[idx].code;
 
-                       /* for jcc node make a copy of evaluatoion state */
+                       /* for jcc node make a copy of evaluation state */
                        if (node->nb_edge > 1)
                                rc |= save_eval_state(bvf, node);
 
index 746a1e19923ea8c11ec8cddff7ea790a4db5e43d..eb6dd2bc172775d3c9deb654be9f8b1d74a92512 100644 (file)
@@ -15,7 +15,7 @@
 
 /*
  * Provides backwards compatibility when updating exported functions.
- * When a symol is exported from a library to provide an API, it also provides a
+ * When a symbol is exported from a library to provide an API, it also provides a
  * calling convention (ABI) that is embodied in its name, return type,
  * arguments, etc.  On occasion that function may need to change to accommodate
  * new functionality, behavior, etc.  When that occurs, it is desirable to
index 142753c3568d39780f39e4e6c7c4aee5145bf988..c272f65ccdc320048700c594227e6689c1d6e776 100644 (file)
@@ -30,7 +30,7 @@ extern "C" {
  * with the given regular expression pattern.
  *
  * @param pattern
- *     regular expression notation decribing the pattern to match
+ *     regular expression notation describing the pattern to match
  *
  * @param string
  *     source string to searcg for the pattern
index e5572e2add6d768892c79d02083a4fb1731ab543..9dad170b5a7287687231b28a9e38d15fbb8d22d8 100644 (file)
@@ -525,7 +525,7 @@ event_buffer_flush(struct event_buffer *bufp, uint8_t dev_id, uint8_t port_id,
 
        RTE_ASSERT(head_idx < EVENT_BUFFER_SZ && tail_idx < EVENT_BUFFER_SZ);
 
-       /* Determine the largest contigous run we can attempt to enqueue to the
+       /* Determine the largest contiguous run we can attempt to enqueue to the
         * event device.
         */
        if (head_idx > tail_idx)
index 394e1328c531eebf8ba70aef147fea837488594c..6847e36f4b10c3225fee330fca67c259d0250375 100644 (file)
@@ -28,7 +28,7 @@ EAL_REGISTER_TAILQ(rte_thash_tailq)
 
 /**
  * Table of some irreducible polinomials over GF(2).
- * For lfsr they are reperesented in BE bit order, and
+ * For lfsr they are represented in BE bit order, and
  * x^0 is masked out.
  * For example, poly x^5 + x^2 + 1 will be represented
  * as (101001b & 11111b) = 01001b = 0x9
index 69666c8b82712622f4514507ca46f0051003380a..4a89a5f5365a8b59c2bcea89a00d758578e98e9e 100644 (file)
@@ -80,7 +80,7 @@ ipv4_frag_reassemble(struct ip_frag_pkt *fp)
 
 /*
  * Process new mbuf with fragment of IPV4 packet.
- * Incoming mbuf should have it's l2_len/l3_len fields setuped correclty.
+ * Incoming mbuf should have it's l2_len/l3_len fields setup correctly.
  * @param tbl
  *   Table where to lookup/add the fragmented packet.
  * @param mb
index 99e9c43f2f689682e7a26bf91fa84bb80ae28ea8..636c850fa6a9e724811983f0bd4e61c30a7bb14b 100644 (file)
@@ -475,7 +475,7 @@ trs_process_check(struct rte_mbuf *mb, struct rte_mbuf **ml,
 
 /*
  * packet checks for tunnel mode:
- * - same as for trasnport mode
+ * - same as for transport mode
  * - esp tail next proto contains expected for that SA value
  */
 static inline int32_t
@@ -561,7 +561,7 @@ trs_process_step3(struct rte_mbuf *mb)
 static inline void
 tun_process_step3(struct rte_mbuf *mb, uint64_t txof_msk, uint64_t txof_val)
 {
-       /* reset mbuf metatdata: L2/L3 len, packet type */
+       /* reset mbuf metadata: L2/L3 len, packet type */
        mb->packet_type = RTE_PTYPE_UNKNOWN;
        mb->tx_offload = (mb->tx_offload & txof_msk) | txof_val;
 
index b7a70fd001863a378e03bf540734445d829f89d9..672e56aba08400f9f5bccb18c5da3045efc00a51 100644 (file)
@@ -614,7 +614,7 @@ cpu_outb_trs_pkt_prepare(const struct rte_ipsec_session *ss,
 
 /*
  * process outbound packets for SA with ESN support,
- * for algorithms that require SQN.hibits to be implictly included
+ * for algorithms that require SQN.hibits to be implicitly included
  * into digest computation.
  * In that case we have to move ICV bytes back to their proper place.
  */
index 3f9533c80a682d274572948354233234d534db6f..531e1e323cdc1f855810133742f455c9053b6d9c 100644 (file)
@@ -62,7 +62,7 @@ EAL_REGISTER_TAILQ(rte_ipsec_sad_tailq)
  * Inserts a rule into an appropriate hash table,
  * updates the value for a given SPI in SPI_ONLY hash table
  * reflecting presence of more specific rule type in two LSBs.
- * Updates a counter that reflects the number of rules whith the same SPI.
+ * Updates a counter that reflects the number of rules with the same SPI.
  */
 static inline int
 add_specific(struct rte_ipsec_sad *sad, const void *key,
index a19819f9f179b89119f79feaa5aa9ee86d5e0666..1e51482c92426f796aebc51c8c1582cfe6d22e5a 100644 (file)
@@ -136,7 +136,7 @@ ipsec_sa_size(uint64_t type, uint32_t *wnd_sz, uint32_t *nb_bucket)
                /*
                 * RFC 4303 recommends 64 as minimum window size.
                 * there is no point to use ESN mode without SQN window,
-                * so make sure we have at least 64 window when ESN is enalbed.
+                * so make sure we have at least 64 window when ESN is enabled.
                 */
                wsz = ((type & RTE_IPSEC_SATP_ESN_MASK) ==
                        RTE_IPSEC_SATP_ESN_DISABLE) ?
index 6e59f18e160293ed8447813edc8c65047693a7c9..7503587b5004638a65b1b62de9c23f22f99d5859 100644 (file)
@@ -122,7 +122,7 @@ struct rte_ipsec_sa {
         * In case of SA handled by multiple threads *sqn* cacheline
         * could be shared by multiple cores.
         * To minimise performance impact, we try to locate in a separate
-        * place from other frequently accesed data.
+        * place from other frequently accessed data.
         */
        union {
                uint64_t outb;
index 9f6deb9c7ef3a9d650357b02ad966ed86a46f2ac..dca940c2c5ab89b271a7c8df1e898e8c71835d06 100644 (file)
@@ -142,9 +142,9 @@ struct rte_gtp_psc_type1_hdr {
 /** GTP header length */
 #define RTE_ETHER_GTP_HLEN \
        (sizeof(struct rte_udp_hdr) + sizeof(struct rte_gtp_hdr))
-/* GTP next protocal type */
-#define RTE_GTP_TYPE_IPV4 0x40 /**< GTP next protocal type IPv4 */
-#define RTE_GTP_TYPE_IPV6 0x60 /**< GTP next protocal type IPv6 */
+/* GTP next protocol type */
+#define RTE_GTP_TYPE_IPV4 0x40 /**< GTP next protocol type IPv4 */
+#define RTE_GTP_TYPE_IPV6 0x60 /**< GTP next protocol type IPv6 */
 /* GTP destination port number */
 #define RTE_GTPC_UDP_PORT 2123 /**< GTP-C UDP destination port */
 #define RTE_GTPU_UDP_PORT 2152 /**< GTP-U UDP destination port */
index 21dcba51fc4753300b4bfb59f8cef20cdfd3c5d0..7f24cf962e55ecae4f6fc61a2a9dd1e688e0ef71 100644 (file)
@@ -67,7 +67,7 @@ struct ethdev_rx_node_main *ethdev_rx_get_node_data_get(void);
  *
  * Get the Ethernet Rx node.
  *
- * @retrun
+ * @return
  *   Pointer to the Ethernet Rx node.
  */
 struct rte_node_register *ethdev_rx_node_get(void);
index e3a6fdb8afc64709d7be9e60a6fc3a9190f38506..93744df56afb54cd6f603144a70dbf850b39c2d6 100644 (file)
@@ -46,7 +46,7 @@ struct ethdev_tx_node_main *ethdev_tx_node_data_get(void);
  *
  * Get the Ethernet Tx node.
  *
- * @retrun
+ * @return
  *   Pointer to the Ethernet Tx node.
  */
 struct rte_node_register *ethdev_tx_node_get(void);
index a1fb8668c5437ced8a5b58722abee5b1e6327b7c..5105ec1d296f2990b964ed31f14ac3a55e77757f 100644 (file)
@@ -49,7 +49,7 @@ struct ip4_rewrite_node_main {
  *
  * Get the ipv4 rewrite node.
  *
- * @retrun
+ * @return
  *   Pointer to the ipv4 rewrite node.
  */
 struct rte_node_register *ip4_rewrite_node_get(void);
index 9c3d08199ce8dad425d70cf5fc0bc04996f1fbee..77141bd3415bfd39250dc6463e3c56d3441d51cc 100644 (file)
@@ -647,7 +647,7 @@ struct rte_swx_pipeline_selector_params {
        const char *group_id_field_name;
 
        /** The set of fields used to select (through a hashing scheme) the
-        * member within the current group. Inputs into the seletion operation.
+        * member within the current group. Inputs into the selection operation.
         * Restriction: All the selector fields must be part of the same struct,
         * i.e. part of the same header or part of the meta-data structure.
         */
index 1e8aeb84037cf61f5588c7894c4be1d68fbbea40..402ed8c99b428eb5dce37cc2de297f61bef3bff8 100644 (file)
@@ -159,7 +159,7 @@ power_get_available_freqs(struct acpi_power_info *pi)
                goto out;
        }
 
-       /* Store the available frequncies into power context */
+       /* Store the available frequencies into power context */
        for (i = 0, pi->nb_freqs = 0; i < count; i++) {
                POWER_DEBUG_TRACE("Lcore %u frequency[%d]: %s\n", pi->lcore_id,
                                i, freqs[i]);
index 18811c1cc10638e1f12267078891f9aa4fc7b2b8..62a420a785fca8bcb8836aad84c5509b11abbbb7 100644 (file)
@@ -362,7 +362,7 @@ rte_rcu_qsbr_thread_offline(struct rte_rcu_qsbr *v, unsigned int thread_id)
 
        /* The reader can go offline only after the load of the
         * data structure is completed. i.e. any load of the
-        * data strcture can not move after this store.
+        * data structure can not move after this store.
         */
 
        __atomic_store_n(&v->qsbr_cnt[thread_id].cnt,
index b00c7fbf5ab0b911fc1b1597eb24497498f328cc..70405113b4191072db3ca169813faac649296cf1 100644 (file)
@@ -199,7 +199,7 @@ rte_rib6_lookup_exact(struct rte_rib6 *rib,
 }
 
 /*
- *  Traverses on subtree and retreeves more specific routes
+ *  Traverses on subtree and retrieves more specific routes
  *  for a given in args ip/depth prefix
  *  last = NULL means the first invocation
  */
index 2fe32bbd33d5c2acefaa0e8b8c0aac8e0cb324c5..ed44808f7b38d714579c30081081a9b07e97c32f 100644 (file)
@@ -590,7 +590,7 @@ rte_sched_subport_config_qsize(struct rte_sched_subport *subport)
 
        subport->qsize_add[0] = 0;
 
-       /* Strict prority traffic class */
+       /* Strict priority traffic class */
        for (i = 1; i < RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE; i++)
                subport->qsize_add[i] = subport->qsize_add[i-1] + subport->qsize[i-1];
 
index af0afbcf60e066bc04bc4a8c0f2f7484adadbb6e..b454c05868e1d9f138b577c92cb712d0920a3383 100644 (file)
@@ -796,7 +796,7 @@ rte_vhost_get_vhost_ring_inflight(int vid, uint16_t vring_idx,
 /**
  * Set split inflight descriptor.
  *
- * This function save descriptors that has been comsumed in available
+ * This function save descriptors that has been consumed in available
  * ring
  *
  * @param vid
@@ -815,7 +815,7 @@ rte_vhost_set_inflight_desc_split(int vid, uint16_t vring_idx,
 /**
  * Set packed inflight descriptor and get corresponding inflight entry
  *
- * This function save descriptors that has been comsumed
+ * This function save descriptors that has been consumed
  *
  * @param vid
  *  vhost device ID