tcp: remove SG-related comment in tcp_sendmsg()
Subsystems (3)
PATCH 1/1 tcp: remove SG-related comment in tcp_sendmsg()
Since commit 74d4a8f8d378 ("tcp: remove sk_can_gso() use"), the code doesn't care whether the interface supports SG.
--- net/ipv4/tcp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
net/ipv4/tcp.c +1 -3
@@ -1275,9 +1275,7 @@ 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. -*/ +/* Allocate new segment. */ if (!sk_stream_memory_free (sk)) goto wait_for_sndbuf;
Signature · 1 line
2.16.4
Quoted 13 lines · Julian Wiedmann
Since commit
74d4a8f8d378("tcp: removesk_can_gso()use"), the code doesn't care whether the interface supports SG.Signed-off-by Julian Wiedmann <[email protected]>--- net/ipv4/tcp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)net/ipv4/tcp.c +0
-0
net/ipv4/tcp.c int tcp_sendmsg_locked(struct sock *sk, struct msghdr *msg, size_t size) · line 1278
Quoted 7 lines
net/ipv4/tcp.c +1
-3@@ -1275,9 +1275,7 @@ 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. -*/ +/* Allocate new segment. */
Hi Julian
Please remove the comment completely then, it is really just redundant after this label.
Thanks.
PATCH v2 1/1 tcp: remove SG-related comment in tcp_sendmsg()
Since commit 74d4a8f8d378 ("tcp: remove sk_can_gso() use"), the code doesn't care whether the interface supports SG.
---
v2: remove the whole comment (Eric)
net/ipv4/tcp.c | 3 --- 1 file changed, 3 deletions(-)
net/ipv4/tcp.c +0 -3
@@ -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;
Signature · 1 line
2.16.4
From: Julian Wiedmann <[email protected]>
Date: Mon, 9 Jul 2018 09:45:14 +0200
Quoted 6 lines
Since commit
74d4a8f8d378("tcp: removesk_can_gso()use"), the code doesn't care whether the interface supports SG.Signed-off-by Julian Wiedmann <[email protected]>---
v2: remove the whole comment (Eric)
Applied.