aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2024-01-25 16:49:10 -0800
committerStephen Hemminger <stephen@networkplumber.org>2024-01-25 16:49:10 -0800
commit0c3400cc8f576b9f9e4099b67ae53596111323cd (patch)
treeb3d9ec89eef9ba5d22373ffba04de28a7976878b
parent64ed1886e719f40acb554ac895305acb43f27bea (diff)
downloadiproute2-next-0c3400cc8f576b9f9e4099b67ae53596111323cd.tar.gz
spelling fixes
Use codespell and ispell to fix some spelling errors in comments and README's. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
-rw-r--r--devlink/devlink.c2
-rw-r--r--examples/bpf/README2
-rw-r--r--lib/json_print.c2
-rw-r--r--lib/utils.c2
-rw-r--r--rdma/rdma.h2
-rw-r--r--tc/em_canid.c2
-rw-r--r--tc/m_gact.c2
-rw-r--r--tc/q_htb.c2
-rw-r--r--tipc/README4
9 files changed, 10 insertions, 10 deletions
diff --git a/devlink/devlink.c b/devlink/devlink.c
index f999e5940..dbeb6e397 100644
--- a/devlink/devlink.c
+++ b/devlink/devlink.c
@@ -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,
diff --git a/examples/bpf/README b/examples/bpf/README
index b7261191f..4c27bb4e8 100644
--- a/examples/bpf/README
+++ b/examples/bpf/README
@@ -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.
diff --git a/lib/json_print.c b/lib/json_print.c
index 7b3b6c3fa..810d496e9 100644
--- a/lib/json_print.c
+++ b/lib/json_print.c
@@ -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,
diff --git a/lib/utils.c b/lib/utils.c
index 599e859ea..6c1c1a8d3 100644
--- a/lib/utils.c
+++ b/lib/utils.c
@@ -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;
diff --git a/rdma/rdma.h b/rdma/rdma.h
index 1f8f83269..df1852db5 100644
--- a/rdma/rdma.h
+++ b/rdma/rdma.h
@@ -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.
*/
diff --git a/tc/em_canid.c b/tc/em_canid.c
index 6d06b66a5..228547529 100644
--- a/tc/em_canid.c
+++ b/tc/em_canid.c
@@ -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 --
diff --git a/tc/m_gact.c b/tc/m_gact.c
index e294a701b..225ffce41 100644
--- a/tc/m_gact.c
+++ b/tc/m_gact.c
@@ -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)
diff --git a/tc/q_htb.c b/tc/q_htb.c
index 63b9521b8..9afb293d9 100644
--- a/tc/q_htb.c
+++ b/tc/q_htb.c
@@ -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)
diff --git a/tipc/README b/tipc/README
index 578a0b7b5..529d7814f 100644
--- a/tipc/README
+++ b/tipc/README
@@ -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
~~~~~~~~~