OSDN Git Service

ipv4: Fix spelling mistakes
authorZheng Yongjun <zhengyongjun3@huawei.com>
Mon, 7 Jun 2021 15:01:09 +0000 (23:01 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Jun 2021 21:08:30 +0000 (14:08 -0700)
Fix some spelling mistakes in comments:
Dont  ==> Don't
timout  ==> timeout
incomming  ==> incoming
necesarry  ==> necessary
substract  ==> subtract

Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_lookup.h
net/ipv4/ipmr.c
net/ipv4/tcp_fastopen.c
net/ipv4/tcp_timer.c

index b58db1c..e184bcb 100644 (file)
@@ -25,7 +25,7 @@ struct fib_alias {
 
 #define FA_S_ACCESSED  0x01
 
-/* Dont write on fa_state unless needed, to keep it shared on all cpus */
+/* Don't write on fa_state unless needed, to keep it shared on all cpus */
 static inline void fib_alias_accessed(struct fib_alias *fa)
 {
        if (!(fa->fa_state & FA_S_ACCESSED))
index 12b564b..7b12a40 100644 (file)
@@ -1317,7 +1317,7 @@ static void mroute_clean_tables(struct mr_table *mrt, int flags)
 }
 
 /* called from ip_ra_control(), before an RCU grace period,
- * we dont need to call synchronize_rcu() here
+ * we don't need to call synchronize_rcu() here
  */
 static void mrtsock_destruct(struct sock *sk)
 {
@@ -1938,7 +1938,7 @@ static void ip_mr_forward(struct net *net, struct mr_table *mrt,
        if (c->mfc_origin == htonl(INADDR_ANY) && true_vifi >= 0) {
                struct mfc_cache *cache_proxy;
 
-               /* For an (*,G) entry, we only check that the incomming
+               /* For an (*,G) entry, we only check that the incoming
                 * interface is part of the static tree.
                 */
                cache_proxy = mr_mfc_find_any_parent(mrt, vif);
index af2814c..47c3260 100644 (file)
@@ -526,7 +526,7 @@ bool tcp_fastopen_active_should_disable(struct sock *sk)
        if (!tfo_da_times)
                return false;
 
-       /* Limit timout to max: 2^6 * initial timeout */
+       /* Limit timeout to max: 2^6 * initial timeout */
        multiplier = 1 << min(tfo_da_times - 1, 6);
        timeout = multiplier * tfo_bh_timeout * HZ;
        if (time_before(jiffies, sock_net(sk)->ipv4.tfo_active_disable_stamp + timeout))
index 4ef0807..56b9d64 100644 (file)
@@ -441,7 +441,7 @@ static void tcp_fastopen_synack_timer(struct sock *sk, struct request_sock *req)
  *  This function gets called when the kernel timer for a TCP packet
  *  of this socket expires.
  *
- *  It handles retransmission, timer adjustment and other necesarry measures.
+ *  It handles retransmission, timer adjustment and other necessary measures.
  *
  *  Returns: Nothing (void)
  */
@@ -766,7 +766,7 @@ static enum hrtimer_restart tcp_compressed_ack_kick(struct hrtimer *timer)
        if (!sock_owned_by_user(sk)) {
                if (tp->compressed_ack) {
                        /* 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.
                         */
                        tp->compressed_ack--;