Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp697431pxv; Thu, 22 Jul 2021 09:58:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7wLx3toG5lG+AID+cRHdMj4fPfAJghJyDW0TB0u6Ix6rH8LZaNlBGZzOm2PWlHb/bdDo5 X-Received: by 2002:a17:906:e088:: with SMTP id gh8mr809981ejb.125.1626973116570; Thu, 22 Jul 2021 09:58:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626973116; cv=none; d=google.com; s=arc-20160816; b=BjDxIcVPkVRoum1Z83MZzjq/kY/7I0oBWggQQhyqC4Z3hobsssLBBSYwt0hhrF2so3 HNsMs2S6jqFakKg/QjVlUsWrKn3siPmLshxGDnEtEpReV/Xzopin2VVhwRHDKQ5OFfon n2mi/s7YOIKraKAXpnQRW5p9kktMphop0r3lcvCsPMEyWOwWh5PydTsfhBzhOPq8larf 06wz8+/xmQdS/8I3XGHtvBqwObljkswZebUsUd4yBB4VrFceQCWyeTTQucffH7oNBj55 dJFBcwLG+vjyZ7x9fez4gFYyNJY0NJcU095bI54/qPPA5b3V/6abpo8U1nlNosg7sVMW CL8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=liWOPQXi8rv8upfuHQ1qwD7vMnzrbV5L8x2G8bJqFPw=; b=JTlsIgkh5cu4tftc6Q+E9FS+FiU8YJCY3uNbGleOgKcnc2ko9tVNETNAIyQ2oQ8Sdt h9z5lgsIrVoztHEVETDk6EiyeFbpj72wPZAwNwd653N9CvR71Aa5JmJC8tglgeT78f19 kYck2enR6c/4b8WJWbjqXuWCNgjPFJFKHwBEBlLoaxnyIXUTLLab0+ycayLZ5BzkzdSX EgN1D1b1zhy9iMhtQkrn0JnE9eMH04vIVyp/Z8jbO4LtHRnqtVTqwok7xQDvhA3uYuMK J175bpHTSbS6hhvXqP+GRbO0bsof9qUAmn6upiBBM3IswnD2yo5GhWDZa9NW9vvrGLJS TjAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eR+h40ek; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qt10si30776786ejb.366.2021.07.22.09.58.13; Thu, 22 Jul 2021 09:58:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eR+h40ek; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233954AbhGVQMl (ORCPT + 99 others); Thu, 22 Jul 2021 12:12:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:51984 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234129AbhGVQIz (ORCPT ); Thu, 22 Jul 2021 12:08:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7CD6F61DAF; Thu, 22 Jul 2021 16:48:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626972522; bh=K8+Q1lv9vsgYBDytnr10no5EHQMGDOxtlBJUJ8l692Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eR+h40ekJOsOUnMhx9e/u59r4RHq4mZhnUlOCTsr0afrB+l/tZTThK2S30QMoIKVf erLRw0JUaVDkMzWrdWLUfUO3beDC0i7kerHPH9A0kJmHmMM8VmAwVtil3EBMNwkGmz ph3SVJOFzzy9HV1nLRO8PFQ+hlITaPgy9k9Rf/eE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Paolo Abeni , Eric Dumazet , "David S. Miller" Subject: [PATCH 5.13 143/156] tcp: consistently disable header prediction for mptcp Date: Thu, 22 Jul 2021 18:31:58 +0200 Message-Id: <20210722155632.970065618@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210722155628.371356843@linuxfoundation.org> References: <20210722155628.371356843@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Paolo Abeni commit 71158bb1f2d2da61385c58fc1114e1a1c19984ba upstream. The MPTCP receive path is hooked only into the TCP slow-path. The DSS presence allows plain MPTCP traffic to hit that consistently. Since commit e1ff9e82e2ea ("net: mptcp: improve fallback to TCP"), when an MPTCP socket falls back to TCP, it can hit the TCP receive fast-path, and delay or stop triggering the event notification. Address the issue explicitly disabling the header prediction for MPTCP sockets. Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/200 Fixes: e1ff9e82e2ea ("net: mptcp: improve fallback to TCP") Signed-off-by: Paolo Abeni Reviewed-by: Eric Dumazet Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- include/net/tcp.h | 4 ++++ 1 file changed, 4 insertions(+) --- a/include/net/tcp.h +++ b/include/net/tcp.h @@ -682,6 +682,10 @@ static inline u32 __tcp_set_rto(const st static inline void __tcp_fast_path_on(struct tcp_sock *tp, u32 snd_wnd) { + /* mptcp hooks are only on the slow path */ + if (sk_is_mptcp((struct sock *)tp)) + return; + tp->pred_flags = htonl((tp->tcp_header_len << 26) | ntohl(TCP_FLAG_ACK) | snd_wnd);