From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f194.google.com ([209.85.192.194]:46155 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753531AbeBST5l (ORCPT ); Mon, 19 Feb 2018 14:57:41 -0500 Received: by mail-pf0-f194.google.com with SMTP id z24so2541251pfh.13 for ; Mon, 19 Feb 2018 11:57:41 -0800 (PST) From: Eric Dumazet To: "David S . Miller" Cc: netdev , Neal Cardwell , Yuchung Cheng , Soheil Hassas Yeganeh , Eric Dumazet , Oleksandr Natalenko , Eric Dumazet Subject: [PATCH net-next 5/6] tcp: remove dead code from tcp_set_skb_tso_segs() Date: Mon, 19 Feb 2018 11:56:51 -0800 Message-Id: <20180219195652.242663-6-edumazet@google.com> In-Reply-To: <20180219195652.242663-1-edumazet@google.com> References: <20180219195652.242663-1-edumazet@google.com> Sender: netdev-owner@vger.kernel.org List-ID: We no longer have skbs with skb->ip_summed == CHECKSUM_NONE in TCP write queues. Signed-off-by: Eric Dumazet --- net/ipv4/tcp_output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index e9f985e42405a38fc95980da5debb7ac8b51fbb5..3867d9e59b84c4f6b26a5c8ebfabb82452fe9268 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c @@ -1206,7 +1206,7 @@ static void tcp_queue_skb(struct sock *sk, struct sk_buff *skb) /* Initialize TSO segments for a packet. */ static void tcp_set_skb_tso_segs(struct sk_buff *skb, unsigned int mss_now) { - if (skb->len <= mss_now || skb->ip_summed == CHECKSUM_NONE) { + if (skb->len <= mss_now) { /* Avoid the costly divide in the normal * non-TSO case. */ -- 2.16.1.291.g4437f3f132-goog