]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
spelling fixes
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 26 Jan 2024 00:49:10 +0000 (16:49 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 26 Jan 2024 00:49:10 +0000 (16:49 -0800)
Use codespell and ispell to fix some spelling errors
in comments and README's.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
devlink/devlink.c
examples/bpf/README
lib/json_print.c
lib/utils.c
rdma/rdma.h
tc/em_canid.c
tc/m_gact.c
tc/q_htb.c
tipc/README

index f999e5940c63045472c48903cbb15b19316bdd5b..dbeb6e397e8e2c7ab45bf6014be076e975745d0a 100644 (file)
@@ -2329,7 +2329,7 @@ static int dl_argv_dry_parse(struct dl *dl, uint64_t o_required,
        return err;
 }
 
-/* List of extented handles with two slashes. */
+/* List of extended handles with two slashes. */
 static const uint64_t dl_opt_extended_handle[] = {
        DL_OPT_HANDLEP,
        DL_OPT_HANDLE_REGION,
index b7261191fc1e4c9c6cf678e02db512dd08c241fa..4c27bb4e8cbeae90ff958b9e44f0aa01e2f31fd0 100644 (file)
@@ -15,4 +15,4 @@ with syntax and features:
 
 Note: Users should use new BTF way to defined the maps, the examples
 in legacy folder which is using struct bpf_elf_map defined maps is not
-recommanded.
+recommended.
index 7b3b6c3fafba97ef94a1748125647a4031c3f224..810d496e99c7ccea6d00083fd8dc1492f29cadbc 100644 (file)
@@ -217,7 +217,7 @@ int print_color_bool(enum output_type type,
 
 /* In JSON mode, acts like print_color_bool.
  * Otherwise, will print key with prefix of "no" if false.
- * The show flag is used to suppres printing in non-JSON mode
+ * The show flag is used to suppress printing in non-JSON mode
  */
 int print_color_bool_opt(enum output_type type,
                         enum color_attr color,
index 599e859ea39322c384df771719f2e7dca8ae0f0d..6c1c1a8d31fddc86ec1b5128928eb36c981ddb56 100644 (file)
@@ -1582,7 +1582,7 @@ size_t strlcat(char *dst, const char *src, size_t size)
 void drop_cap(void)
 {
 #ifdef HAVE_LIBCAP
-       /* don't harmstring root/sudo */
+       /* don't hamstring root/sudo */
        if (getuid() != 0 && geteuid() != 0) {
                cap_t capabilities;
                cap_value_t net_admin = CAP_NET_ADMIN;
index 1f8f8326945752e70c46ecd2bbd6789c88784359..df1852db59280e43896c842d90be9df5bb2dd4a0 100644 (file)
@@ -40,7 +40,7 @@ struct filter_entry {
        char *key;
        char *value;
        /*
-        * This field means that we can try to issue .doit calback
+        * This field means that we can try to issue .doit callback
         * on value above. This value can be converted to integer
         * with simple atoi(). Otherwise "is_doit" will be false.
         */
index 6d06b66a5944bd8722985eac4ab5b2b3ea2e160e..2285475291340978aad581a56b0e760d9f95a61a 100644 (file)
@@ -26,7 +26,7 @@
 #include <inttypes.h>
 #include "m_ematch.h"
 
-#define EM_CANID_RULES_MAX 400 /* Main reason for this number is Nelink
+#define EM_CANID_RULES_MAX 400 /* Main reason for this number is Netlink
        message size limit equal to Single memory page size. When dump()
        is invoked, there are even some ematch related headers sent from
        kernel to userspace together with em_canid configuration --
index e294a701bfd1a51922349dbd92bfc5517057a141..225ffce414123c7e90767620bbc997744d7e1d65 100644 (file)
@@ -18,7 +18,7 @@
 #include "tc_util.h"
 #include <linux/tc_act/tc_gact.h>
 
-/* define to turn on probablity stuff */
+/* define to turn on probability stuff */
 
 #ifdef CONFIG_GACT_PROB
 static const char *prob_n2a(int p)
index 63b9521b89de4bb5f2d3d9fada509409deeba0f5..9afb293d94559246cfe604d08624b70658a3c303 100644 (file)
@@ -224,7 +224,7 @@ static int htb_parse_class_opt(struct qdisc_util *qu, int argc, char **argv,
        opt.ceil.rate = (ceil64 >= (1ULL << 32)) ? ~0U : ceil64;
 
        /* compute minimal allowed burst from rate; mtu is added here to make
-          sute that buffer is larger than mtu and to have some safeguard space */
+          sure that buffer is larger than mtu and to have some safeguard space */
        if (!buffer)
                buffer = rate64 / get_hz() + mtu;
        if (!cbuffer)
index 578a0b7b58a7d0c3462b208cbae58e13a360f555..529d7814f125a83fb0c89904a7e6337618c2b426 100644 (file)
@@ -13,10 +13,10 @@ possible to create a vlan named "help" with the ip tool, but it's impossible
 to remove it, the command just shows help. This is an effect of treating
 bare words specially.
 
-Help texts are not dynamically generated. That is, we do not pass datastructures
+Help texts are not dynamically generated. That is, we do not pass data structures
 like command list or option lists and print them dynamically. This is
 intentional. There is always that exception and when it comes to help texts
-these exceptions are normally neglected at the expence of usability.
+these exceptions are normally neglected at the expense of usability.
 
 KEY-VALUE
 ~~~~~~~~~