Multiple spelling problems found by codespell.

Signed-off-by: Stephen Hemminger <step...@networkplumber.org>
---
 app/test-pmd/cmdline.c    | 11 ++++++-----
 app/test-pmd/config.c     |  4 ++--
 app/test-pmd/csumonly.c   |  2 +-
 app/test-pmd/softnicfwd.c |  2 +-
 4 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c
index d1e0d4402c94..85db61e0033c 100644
--- a/app/test-pmd/cmdline.c
+++ b/app/test-pmd/cmdline.c
@@ -100,7 +100,7 @@ static void cmd_help_brief_parsed(__attribute__((unused)) 
void *parsed_result,
                "    help ports                      : Configuring ports.\n"
                "    help registers                  : Reading and setting port 
registers.\n"
                "    help filters                    : Filters configuration 
help.\n"
-               "    help traffic_management         : Traffic Management 
commmands.\n"
+               "    help traffic_management         : Traffic Management 
commands.\n"
                "    help all                        : All of the above 
sections.\n\n"
        );
 
@@ -3503,7 +3503,7 @@ parse_item_list(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++) {
@@ -5010,7 +5010,7 @@ cmd_gso_size_parsed(void *parsed_result,
 
        if (test_done == 0) {
                printf("Before setting GSO segsz, please first"
-                               " stop fowarding\n");
+                               " stop forwarding\n");
                return;
        }
 
@@ -6942,7 +6942,7 @@ cmd_link_flow_ctrl_set_parsed(void *parsed_result,
 
        ret = rte_eth_dev_flow_ctrl_set(res->port_id, &fc_conf);
        if (ret != 0)
-               printf("bad flow contrl parameter, return code = %d \n", ret);
+               printf("bad flow control parameter, return code = %d\n", ret);
 }
 
 /* *** SETUP ETHERNET PRIORITY FLOW CONTROL *** */
@@ -6990,7 +6990,8 @@ cmd_priority_flow_ctrl_set_parsed(void *parsed_result,
 
        ret = rte_eth_dev_priority_flow_ctrl_set(res->port_id, &pfc_conf);
        if (ret != 0)
-               printf("bad priority flow contrl parameter, return code = %d 
\n", ret);
+               printf("bad priority flow control parameter, return code = 
%d\n",
+                      ret);
 }
 
 cmdline_parse_token_string_t cmd_pfc_set_set =
diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
index ab458c8d2837..5ab71d1eaf45 100644
--- a/app/test-pmd/config.c
+++ b/app/test-pmd/config.c
@@ -1745,7 +1745,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
@@ -3492,7 +3492,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);
diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c
index e1cb7fb708b7..1ec2d8f62712 100644
--- a/app/test-pmd/csumonly.c
+++ b/app/test-pmd/csumonly.c
@@ -685,7 +685,7 @@ pkt_copy_split(const struct rte_mbuf *pkt)
  *
  * The testpmd command line for this forward engine sets the flags
  * TESTPMD_TX_OFFLOAD_* in ports[tx_port].tx_ol_flags. They control
- * wether a checksum must be calculated in software or in hardware. The
+ * whether a checksum must be calculated in software or in hardware. The
  * IP, UDP, TCP and SCTP flags always concern the inner layer. The
  * OUTER_IP is only useful for tunnel packets.
  */
diff --git a/app/test-pmd/softnicfwd.c b/app/test-pmd/softnicfwd.c
index 94e6669d3852..1890ab96938b 100644
--- a/app/test-pmd/softnicfwd.c
+++ b/app/test-pmd/softnicfwd.c
@@ -277,7 +277,7 @@ softport_tm_subport_node_add(portid_t port_id,
                snp.nonleaf.n_sp_priorities = 1;
                snp.stats_mask = STATS_MASK_DEFAULT;
 
-               /* Add Node to TM Hiearchy */
+               /* Add Node to TM Hierarchy */
                if (rte_tm_node_add(port_id,
                                h->subport_node_id[i],
                                subport_parent_node_id,
-- 
2.20.1

Reply via email to