diff mbox series

[net-next,v2] tcp: remove SG-related comment in tcp_sendmsg()

Message ID 20180709074514.77218-1-jwi@linux.ibm.com
State Accepted, archived
Delegated to: David Miller
Headers show
Series [net-next,v2] tcp: remove SG-related comment in tcp_sendmsg() | expand

Commit Message

Julian Wiedmann July 9, 2018, 7:45 a.m. UTC
Since commit 74d4a8f8d378 ("tcp: remove sk_can_gso() use"), the code
doesn't care whether the interface supports SG.

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
---
v2: remove the whole comment (Eric)

 net/ipv4/tcp.c | 3 ---
 1 file changed, 3 deletions(-)

Comments

David Miller July 9, 2018, 10:57 p.m. UTC | #1
From: Julian Wiedmann <jwi@linux.ibm.com>
Date: Mon,  9 Jul 2018 09:45:14 +0200

> Since commit 74d4a8f8d378 ("tcp: remove sk_can_gso() use"), the code
> doesn't care whether the interface supports SG.
> 
> Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
> ---
> v2: remove the whole comment (Eric)

Applied.
diff mbox series

Patch

diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
index bf461fa77ed6..6ce14f8e3562 100644
--- a/net/ipv4/tcp.c
+++ b/net/ipv4/tcp.c
@@ -1275,9 +1275,6 @@  int tcp_sendmsg_locked(struct sock *sk, struct msghdr *msg, size_t size)
 			int linear;
 
 new_segment:
-			/* Allocate new segment. If the interface is SG,
-			 * allocate skb fitting to single page.
-			 */
 			if (!sk_stream_memory_free(sk))
 				goto wait_for_sndbuf;