From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CC434C433E0 for ; Thu, 4 Mar 2021 19:08:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8D6E664F64 for ; Thu, 4 Mar 2021 19:08:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237690AbhCDTHc (ORCPT ); Thu, 4 Mar 2021 14:07:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:39324 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237847AbhCDTHa (ORCPT ); Thu, 4 Mar 2021 14:07:30 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 38AF964F69; Thu, 4 Mar 2021 19:06:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614884787; bh=8zECwZ3PQe3CB4hmZBjMYu9XF22SCzcVNcf9eEkliiI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=CuV/WylTMkHoyD3EfoLRz8Vovqd9a6MaYItwL0yilVDR5QbFdYNue+sJqB4Nnp0JD ia+THkZTFd8JbAoA/r9WgjqYOQpdPzVr52P5ZFCvOFfsoM1SdlMs3h+eBGYSHC+Xv3 z2acOPR96+fwKulwspsciiRLtDg36Y7GaWr5Av19u9XnRKYAwAbsl72kUYv6uBE+6E AjN9rbnFmavTb/IwXsFSJui7qhfRVlqvFn/EYISWCWKVDmVVicAtHGkKtWsdGM1UZE PXxKgqbYjaZzQVk5AQHSIifq59XhLf0P+WFOveckbB2Hz29hygq+7sylkqqcBdvx1x qz+Y4deyZFBiA== Date: Thu, 4 Mar 2021 11:06:26 -0800 From: Jakub Kicinski To: Eric Dumazet Cc: Alexander Duyck , David Miller , netdev , kernel-team , Neil Spring , Yuchung Cheng Subject: Re: [PATCH net] net: tcp: don't allocate fast clones for fastopen SYN Message-ID: <20210304110626.1575f7aa@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: References: <20210302060753.953931-1-kuba@kernel.org> <20210303160715.2333d0ca@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, 4 Mar 2021 13:51:15 +0100 Eric Dumazet wrote: > I think we are over thinking this really (especially if the fix needs > a change in core networking or drivers) > > We can reuse TSQ logic to have a chance to recover when the clone is > eventually freed. > This will be more generic, not only for the SYN+data of FastOpen. > > Can you please test the following patch ? #7 - Eric comes up with something much better :) But so far doesn't seem to quite do it, I'm looking but maybe you'll know right away (FWIW testing a v5.6 backport but I don't think TSQ changed?): On __tcp_retransmit_skb kretprobe: ==> Hit TFO case ret:-16 ca_state:0 skb:ffff888fdb4bac00! First hit: __tcp_retransmit_skb+1 tcp_rcv_state_process+2488 tcp_v6_do_rcv+405 tcp_v6_rcv+2984 ip6_protocol_deliver_rcu+180 ip6_input_finish+17 Successful hit: __tcp_retransmit_skb+1 tcp_retransmit_skb+18 tcp_retransmit_timer+716 tcp_write_timer_handler+136 tcp_write_timer+141 call_timer_fn+43 skb:ffff888fdb4bac00 --- delay:51642us bytes_acked:1