From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julian Wiedmann Subject: [PATCH net-next] tcp: remove SG-related comment in tcp_sendmsg() Date: Fri, 6 Jul 2018 09:19:10 +0200 Message-ID: <20180706071910.65958-1-jwi@linux.ibm.com> Cc: Julian Wiedmann , To: David Miller , Eric Dumazet Return-path: Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:36600 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753096AbeGFHTW (ORCPT ); Fri, 6 Jul 2018 03:19:22 -0400 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w667J1TP072069 for ; Fri, 6 Jul 2018 03:19:22 -0400 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0b-001b2d01.pphosted.com with ESMTP id 2k21j3w87j-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 06 Jul 2018 03:19:22 -0400 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 6 Jul 2018 08:19:20 +0100 Sender: netdev-owner@vger.kernel.org List-ID: Since commit 74d4a8f8d378 ("tcp: remove sk_can_gso() use"), the code doesn't care whether the interface supports SG. Signed-off-by: Julian Wiedmann --- net/ipv4/tcp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index bf461fa77ed6..516e89b57603 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -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; -- 2.16.4