fix typos using codespell utility
[dpdk.git] / examples / ethtool / ethtool-app / main.c
index e21abcd..f79b962 100644 (file)
@@ -36,7 +36,7 @@
 #include <stdlib.h>
 
 #include <rte_common.h>
-#include <rte_rwlock.h>
+#include <rte_spinlock.h>
 #include <rte_eal.h>
 #include <rte_ethdev.h>
 #include <rte_ether.h>
@@ -172,7 +172,6 @@ static void setup_ports(struct app_config *app_cfg, int cnt_ports)
                                 "%s:%i: rte_eth_dev_start failed",
                                 __FILE__, __LINE__
                                );
-               rte_eth_promiscuous_enable(idx_port);
                rte_eth_macaddr_get(idx_port, &ptr_port->mac_addr);
                rte_spinlock_init(&ptr_port->lock);
        }
@@ -265,7 +264,7 @@ int main(int argc, char **argv)
        uint32_t id_core;
        uint32_t cnt_ports;
 
-       /* Init runtime enviornment */
+       /* Init runtime environment */
        cnt_args_parsed = rte_eal_init(argc, argv);
        if (cnt_args_parsed < 0)
                rte_exit(EXIT_FAILURE, "rte_eal_init(): Failed");