Skip to content

Commit a8c924e

Browse files
hormskuba-moo
authored andcommitted
net: Correct spelling in net/core
Correct spelling in net/core. As reported by codespell. Signed-off-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 70d0bb4 commit a8c924e

File tree

9 files changed

+20
-20
lines changed

9 files changed

+20
-20
lines changed

net/core/dev.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3707,7 +3707,7 @@ struct sk_buff *validate_xmit_skb_list(struct sk_buff *skb, struct net_device *d
37073707
next = skb->next;
37083708
skb_mark_not_on_list(skb);
37093709

3710-
/* in case skb wont be segmented, point to itself */
3710+
/* in case skb won't be segmented, point to itself */
37113711
skb->prev = skb;
37123712

37133713
skb = validate_xmit_skb(skb, dev, again);
@@ -11432,7 +11432,7 @@ void unregister_netdevice_many_notify(struct list_head *head,
1143211432
* @head: list of devices
1143311433
*
1143411434
* Note: As most callers use a stack allocated list_head,
11435-
* we force a list_del() to make sure stack wont be corrupted later.
11435+
* we force a list_del() to make sure stack won't be corrupted later.
1143611436
*/
1143711437
void unregister_netdevice_many(struct list_head *head)
1143811438
{
@@ -11490,7 +11490,7 @@ int __dev_change_net_namespace(struct net_device *dev, struct net *net,
1149011490
if (dev->features & NETIF_F_NETNS_LOCAL)
1149111491
goto out;
1149211492

11493-
/* Ensure the device has been registrered */
11493+
/* Ensure the device has been registered */
1149411494
if (dev->reg_state != NETREG_REGISTERED)
1149511495
goto out;
1149611496

net/core/dev_addr_lists.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ static int __hw_addr_sync_multiple(struct netdev_hw_addr_list *to_list,
262262
}
263263

264264
/* This function only works where there is a strict 1-1 relationship
265-
* between source and destionation of they synch. If you ever need to
265+
* between source and destination of they synch. If you ever need to
266266
* sync addresses to more then 1 destination, you need to use
267267
* __hw_addr_sync_multiple().
268268
*/
@@ -299,8 +299,8 @@ void __hw_addr_unsync(struct netdev_hw_addr_list *to_list,
299299
EXPORT_SYMBOL(__hw_addr_unsync);
300300

301301
/**
302-
* __hw_addr_sync_dev - Synchonize device's multicast list
303-
* @list: address list to syncronize
302+
* __hw_addr_sync_dev - Synchronize device's multicast list
303+
* @list: address list to synchronize
304304
* @dev: device to sync
305305
* @sync: function to call if address should be added
306306
* @unsync: function to call if address should be removed

net/core/fib_rules.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ int fib_default_rule_add(struct fib_rules_ops *ops,
7272
r->suppress_prefixlen = -1;
7373
r->suppress_ifgroup = -1;
7474

75-
/* The lock is not required here, the list in unreacheable
75+
/* The lock is not required here, the list in unreachable
7676
* at the moment this function is called */
7777
list_add_tail(&r->list, &ops->rules_list);
7878
return 0;

net/core/gro.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ static void gro_list_prepare(const struct list_head *head,
374374
skb_mac_header(skb),
375375
maclen);
376376

377-
/* in most common scenarions 'slow_gro' is 0
377+
/* in most common scenarios 'slow_gro' is 0
378378
* otherwise we are already on some slower paths
379379
* either skip all the infrequent tests altogether or
380380
* avoid trying too hard to skip each of them individually

net/core/netpoll.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ static void poll_one_napi(struct napi_struct *napi)
162162
if (test_and_set_bit(NAPI_STATE_NPSVC, &napi->state))
163163
return;
164164

165-
/* We explicilty pass the polling call a budget of 0 to
165+
/* We explicitly pass the polling call a budget of 0 to
166166
* indicate that we are clearing the Tx path only.
167167
*/
168168
work = napi->poll(napi, 0);

net/core/pktgen.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
*
7070
* By design there should only be *one* "controlling" process. In practice
7171
* multiple write accesses gives unpredictable result. Understood by "write"
72-
* to /proc gives result code thats should be read be the "writer".
72+
* to /proc gives result code that should be read be the "writer".
7373
* For practical use this should be no problem.
7474
*
7575
* Note when adding devices to a specific CPU there good idea to also assign
@@ -2371,11 +2371,11 @@ static void get_ipsec_sa(struct pktgen_dev *pkt_dev, int flow)
23712371

23722372
if (pkt_dev->spi) {
23732373
/* We need as quick as possible to find the right SA
2374-
* Searching with minimum criteria to archieve this.
2374+
* Searching with minimum criteria to achieve, this.
23752375
*/
23762376
x = xfrm_state_lookup_byspi(pn->net, htonl(pkt_dev->spi), AF_INET);
23772377
} else {
2378-
/* slow path: we dont already have xfrm_state */
2378+
/* slow path: we don't already have xfrm_state */
23792379
x = xfrm_stateonly_find(pn->net, DUMMY_MARK, 0,
23802380
(xfrm_address_t *)&pkt_dev->cur_daddr,
23812381
(xfrm_address_t *)&pkt_dev->cur_saddr,
@@ -3838,8 +3838,8 @@ static int pktgen_add_device(struct pktgen_thread *t, const char *ifname)
38383838
pkt_dev->ipsmode = XFRM_MODE_TRANSPORT;
38393839
pkt_dev->ipsproto = IPPROTO_ESP;
38403840

3841-
/* xfrm tunnel mode needs additional dst to extract outter
3842-
* ip header protocol/ttl/id field, here creat a phony one.
3841+
/* xfrm tunnel mode needs additional dst to extract outer
3842+
* ip header protocol/ttl/id field, here create a phony one.
38433843
* instead of looking for a valid rt, which definitely hurting
38443844
* performance under such circumstance.
38453845
*/

net/core/skbuff.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5163,7 +5163,7 @@ EXPORT_SYMBOL_GPL(skb_to_sgvec);
51635163
* 3. sg_unmark_end
51645164
* 4. skb_to_sgvec(payload2)
51655165
*
5166-
* When mapping mutilple payload conditionally, skb_to_sgvec_nomark
5166+
* When mapping multiple payload conditionally, skb_to_sgvec_nomark
51675167
* is more preferable.
51685168
*/
51695169
int skb_to_sgvec_nomark(struct sk_buff *skb, struct scatterlist *sg,
@@ -6021,7 +6021,7 @@ EXPORT_SYMBOL(skb_try_coalesce);
60216021
* @skb: buffer to clean
60226022
* @xnet: packet is crossing netns
60236023
*
6024-
* skb_scrub_packet can be used after encapsulating or decapsulting a packet
6024+
* skb_scrub_packet can be used after encapsulating or decapsulating a packet
60256025
* into/from a tunnel. Some information have to be cleared during these
60266026
* operations.
60276027
* skb_scrub_packet can also be used to clean a skb before injecting it in

net/core/sock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2048,7 +2048,7 @@ static inline void sock_lock_init(struct sock *sk)
20482048

20492049
/*
20502050
* Copy all fields from osk to nsk but nsk->sk_refcnt must not change yet,
2051-
* even temporarly, because of RCU lookups. sk_node should also be left as is.
2051+
* even temporarily, because of RCU lookups. sk_node should also be left as is.
20522052
* We must not copy fields between sk_dontcopy_begin and sk_dontcopy_end
20532053
*/
20542054
static void sock_copy(struct sock *nsk, const struct sock *osk)
@@ -2538,7 +2538,7 @@ void skb_set_owner_w(struct sk_buff *skb, struct sock *sk)
25382538
skb_set_hash_from_sk(skb, sk);
25392539
/*
25402540
* We used to take a refcount on sk, but following operation
2541-
* is enough to guarantee sk_free() wont free this sock until
2541+
* is enough to guarantee sk_free() won't free this sock until
25422542
* all in-flight packets are completed
25432543
*/
25442544
refcount_add(skb->truesize, &sk->sk_wmem_alloc);
@@ -3697,7 +3697,7 @@ EXPORT_SYMBOL(sock_recv_errqueue);
36973697
*
36983698
* FIX: POSIX 1003.1g is very ambiguous here. It states that
36993699
* asynchronous errors should be reported by getsockopt. We assume
3700-
* this means if you specify SO_ERROR (otherwise whats the point of it).
3700+
* this means if you specify SO_ERROR (otherwise what is the point of it).
37013701
*/
37023702
int sock_common_getsockopt(struct socket *sock, int level, int optname,
37033703
char __user *optval, int __user *optlen)

net/core/utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0-or-later
22
/*
3-
* Generic address resultion entity
3+
* Generic address resolution entity
44
*
55
* Authors:
66
* net_random Alan Cox

0 commit comments

Comments
 (0)