net: ipv4: fix spelling typos in comments
Subsystems (5)
PATCH v2 1/1 net: ipv4: fix spelling typos in comments
Correct spelling typos in several code comments.
- alignement -> alignment
- wont -> won't
- orignal -> original
- substract -> subtract
- Segement -> Segment
- splitted -> split
---
changes v2:
- Update subject message
- Add additional spelling typo fixes
- Combined all typo fixes into single patch as requested
--- net/ipv4/ip_fragment.c | 2 +- net/ipv4/netfilter/arp_tables.c | 2 +- net/ipv4/syncookies.c | 2 +- net/ipv4/tcp.c | 2 +- net/ipv4/tcp_input.c | 4 ++-- net/ipv4/tcp_output.c | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-)
net/ipv4/ip_fragment.c +1 -1
@@ -335,7 +335,7 @@ static int ip_frag_queue(struct ipq *qp, struct sk_buff *skb, int *refs)/* Note : skb->rbnode and skb->dev share the same location. */ dev = skb->dev; -/* Makes sure compiler wont do silly aliasing games */ +/* Makes sure compiler won't do silly aliasing games */ barrier (); prev_tail = qp->q.fragments_tail;
net/ipv4/netfilter/arp_tables.c +1 -1
@@ -59,7 +59,7 @@ static inline int arp_devaddr_compare(const struct arpt_devaddr_info *ap,/* * Unfortunately, _b and _mask are not aligned to an int (or long int) * Some arches dont care, unrolling the loop is a win on them. -* For other arches, we only have a 16bit alignement. +* For other arches, we only have a 16bit alignment. */ static unsigned long ifname_compare (const char *_a,const char *_b,const char *_mask) {
net/ipv4/syncookies.c +1 -1
@@ -131,7 +131,7 @@ static __u32 check_tcp_syn_cookie(__u32 cookie, __be32 saddr, __be32 daddr,/* * MSS Values are chosen based on the 2011 paper -* 'An Analysis of TCP Maximum Segement Sizes' by S. Alcock and R. Nelson. +* 'An Analysis of TCP Maximum Segment Sizes' by S. Alcock and R. Nelson. * Values .. * .. lower than 536 are rare (< 0.2%) * .. between 537 and 1299 account for less than < 1.5% of observed values
net/ipv4/tcp.c +1 -1
@@ -1600,7 +1600,7 @@ struct sk_buff *tcp_recv_skb(struct sock *sk, u32 seq, u32 *off)return skb; }/* This looks weird, but this can happen if TCP collapsing -* splitted a fat GRO packet, while we released socket lock +* split a fat GRO packet, while we released socket lock * in skb_splice_bits() */ tcp_eat_recv_skb (sk, skb);
net/ipv4/tcp_input.c +2 -2
@@ -1129,7 +1129,7 @@ static void tcp_update_pacing_rate(struct sock *sk)do_div (rate, tp->srtt_us);/* WRITE_ONCE() is needed because sch_fq fetches sk_pacing_rate -* without any lock. We want to make sure compiler wont store +* without any lock. We want to make sure compiler won't store * intermediate values in this location. */ WRITE_ONCE(sk->sk_pacing_rate,
@@ -4868,7 +4868,7 @@ void tcp_sack_compress_send_ack(struct sock *sk)__sock_put (sk);/* Since we have to send one ack finally, -* substract one from tp->compressed_ack to keep +* subtract one from tp->compressed_ack to keep * LINUX_MIB_TCPACKCOMPRESSED accurate. */ NET_ADD_STATS(sock_net(sk), LINUX_MIB_TCPACKCOMPRESSED,
net/ipv4/tcp_output.c +1 -1
@@ -2629,7 +2629,7 @@ static int tcp_mtu_probe(struct sock *sk) interval = icsk->icsk_mtup.search_high - icsk->icsk_mtup.search_low;/* When misfortune happens, we are reprobing actively, * and then reprobe timer has expired. We stick with current -* probing process by not resetting search range to its orignal. +* probing process by not resetting search range to its original. */ if (probe_size >tcp_mtu_to_mss (sk, icsk->icsk_mtup.search_high) || interval <READ_ONCE (net->ipv4.sysctl_tcp_probe_threshold)) {
--
2.51.0
Jakub Kicinski
maintainerQuoted 6 lines · On Fri, 21 Nov 2025 16:14:25 +0530 Shi Hao wrote:
net/ipv4/ip_fragment.c | 2 +- net/ipv4/netfilter/arp_tables.c | 2 +- net/ipv4/syncookies.c | 2 +- net/ipv4/tcp.c | 2 +- net/ipv4/tcp_input.c | 4 ++-- net/ipv4/tcp_output.c | 2 +-
Please don't add any more files.
But in the files you touch you should fix _all_ the typos.
Signature · 1 line
pw-bot: cr
Re: [PATCH v2] net: ipv4: fix spelling typos in commentsending commands without the SCSI layer which eventually helped me understand Linux USB subsystem
Quoted 3 lines · Jakub Kicinski
Please don't add any more files.
But in the files you touch you should fix _all_ the typos. --
Hi
I have not added any more files in the v2 patch. I will send a new patch for ipv6 directory.As for the v2 patch if There is anything wrong or need some improvment please let me know.
thank you all
Hey everyone
I accidentally added some texts at the end of the previous reply subject . Please ignore lines from "coments" . Thanks for your time.