]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mptcp: refer to 'MPTCP' socket in comments
authorDavide Caratti <dcaratti@redhat.com>
Wed, 5 Jun 2024 07:15:42 +0000 (09:15 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 6 Jun 2024 13:13:47 +0000 (15:13 +0200)
We used to call it 'master' socket at the early stages of MPTCP
development, but the correct wording is 'MPTCP' socket opposed to 'TCP
subflows': convert the last 3 comments to use a more appropriate term.

Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/mptcp/protocol.c
net/mptcp/subflow.c

index 7ce11bee3b79eca1331df81707f75ee6261377a3..ead0bf63cf95b53172311d5185b00d7362bfc5f0 100644 (file)
@@ -2202,7 +2202,7 @@ static int mptcp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
                if (skb_queue_empty(&msk->receive_queue) && __mptcp_move_skbs(msk))
                        continue;
 
-               /* only the master socket status is relevant here. The exit
+               /* only the MPTCP socket status is relevant here. The exit
                 * conditions mirror closely tcp_recvmsg()
                 */
                if (copied >= target)
@@ -3521,7 +3521,7 @@ void mptcp_subflow_process_delegated(struct sock *ssk, long status)
 static int mptcp_hash(struct sock *sk)
 {
        /* should never be called,
-        * we hash the TCP subflows not the master socket
+        * we hash the TCP subflows not the MPTCP socket
         */
        WARN_ON_ONCE(1);
        return 0;
index 612c38570a6426655dd7be8b7e140b8a72dac7ac..39e2cbdf38019cc99e31e54ac221dbc7ef825110 100644 (file)
@@ -1719,7 +1719,7 @@ int mptcp_subflow_create_socket(struct sock *sk, unsigned short family,
        mptcp_sockopt_sync_locked(mptcp_sk(sk), sf->sk);
        release_sock(sf->sk);
 
-       /* the newly created socket really belongs to the owning MPTCP master
+       /* the newly created socket really belongs to the owning MPTCP
         * socket, even if for additional subflows the allocation is performed
         * by a kernel workqueue. Adjust inode references, so that the
         * procfs/diag interfaces really show this one belonging to the correct