From nobody Thu May 16 17:23:16 2024 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4F2891CAA0 for ; Tue, 16 Jan 2024 17:19:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705425548; cv=none; b=hiFw7TNYdvTypUYJQfhBk878NNp4aBhZgkmAMBLCsoW0DnwtGFN7rNSE8Q4ca+BUhUhu93p7nYOGkvAXr4sJOr09TQ1fFhy4JkQYPOPL5OVvw4jZgA28k7HqtY75HuEZNIghh3ukQKslXTshuHp2TGmwTQiUilMqQ2wr2sMgYAE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705425548; c=relaxed/simple; bh=BiSCUcMJfuEioaTnWymmwb+V9TxpwByFPiHXBV/mnNU=; h=DKIM-Signature:Received:X-MC-Unique:Received:Received:From:To:Cc: Subject:Date:Message-ID:MIME-Version:Content-Transfer-Encoding: X-Scanned-By; b=uo6tE+r94v+BwPInQk9YDkFRb4puxc/J+xuHwW2sZc4W6wbiZtQQmd4cAaVoo1yvvsRVjKcF+D8g7F/mCGT6fF8B/ZOF01Du6JosimnzxkkjZe99xERCREvdgfdEE56uNLnTs8niXoT3o0cFVzS8THWMRx9UdaaQVQ4aVrl/Hr0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=itkFOr6J; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="itkFOr6J" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1705425546; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Tqc9KFJGCabJrCjzQGEgP9tsgsIlTOFX0DEXJO/UWVQ=; b=itkFOr6JCZw03Ek3hYXNlL/HsnOJHwNvfOdML3XXJLvOmdWpsSzOC513akBmCMImAYh3KW SdI4hE2wHjt3JIQdFcH0voC2bcjSs7TC3+7TtaxWEkWDlYqUk/NIGLbd+j80PvjinlF1GA hfhmNU1a8NOW+vL2e0Dl42FWPcm5Qu4= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-592-w-a20HyANaWegbc40y_ZEg-1; Tue, 16 Jan 2024 12:19:02 -0500 X-MC-Unique: w-a20HyANaWegbc40y_ZEg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 742E61064CC6; Tue, 16 Jan 2024 17:19:01 +0000 (UTC) Received: from gerbillo.redhat.com (unknown [10.45.225.11]) by smtp.corp.redhat.com (Postfix) with ESMTP id BA8072166B32; Tue, 16 Jan 2024 17:18:59 +0000 (UTC) From: Paolo Abeni To: netdev@vger.kernel.org Cc: Matthieu Baerts , Mat Martineau , Geliang Tang , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Simon Horman , mptcp@lists.linux.dev Subject: [PATCH net] mptcp: relax check on MPC passive fallback Date: Tue, 16 Jan 2024 18:18:47 +0100 Message-ID: Precedence: bulk X-Mailing-List: mptcp@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.6 Content-Type: text/plain; charset="utf-8" While testing the blamed commit below, I was able to miss (!) packetdrill failures in the fastopen test-cases. On passive fastopen the child socket is created by incoming TCP MPC syn, allow for both MPC_SYN and MPC_ACK header. Fixes: 724b00c12957 ("mptcp: refine opt_mp_capable determination") Reviewed-by: Matthieu Baerts Signed-off-by: Paolo Abeni Reviewed-by: Eric Dumazet --- net/mptcp/subflow.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/mptcp/subflow.c b/net/mptcp/subflow.c index 1117d1e84274..0dcb721c89d1 100644 --- a/net/mptcp/subflow.c +++ b/net/mptcp/subflow.c @@ -783,7 +783,8 @@ static struct sock *subflow_syn_recv_sock(const struct = sock *sk, * options. */ mptcp_get_options(skb, &mp_opt); - if (!(mp_opt.suboptions & OPTION_MPTCP_MPC_ACK)) + if (!(mp_opt.suboptions & + (OPTION_MPTCP_MPC_SYN | OPTION_MPTCP_MPC_ACK))) fallback =3D true; =20 } else if (subflow_req->mp_join) { --=20 2.43.0