Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 75C1DECAAD8 for ; Tue, 20 Sep 2022 13:00:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230006AbiITNAS (ORCPT ); Tue, 20 Sep 2022 09:00:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229925AbiITNAR (ORCPT ); Tue, 20 Sep 2022 09:00:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E59BA3DF37 for ; Tue, 20 Sep 2022 06:00:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 783F56239F for ; Tue, 20 Sep 2022 13:00:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id D166AC433C1; Tue, 20 Sep 2022 13:00:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663678815; bh=SKtEcFgi1iP9KpKkp71yZQFh2o545m3b9QZM/ZjHLQ0=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=G6ikEbHWyaW//obf/nEPSgfWJWrJ+ALGMcZ1KO1Ac7jEw335xQJnbtQlKwtbUYOiN dBe4eoxl8MFFZFeB291ovjWiU67S46v8AV9U0dwlnD3vGv62ReJCSQihJ+65XlULRd 0eMoZosVyFRN+3pujeNKzliPuv7ZmG/uOX5wuC2flKSa5IRFFa8DupVWfrC9iZadN5 8Lko5y4RxYj4JxbaczCBFB6d55wcwO6Ym29P7vbyQ5SQn7bIlg1qpU+LqpFuf08z9S 7QphpZn7Jq41r0hRm4+SL8zzkFKB0Qv3bYY/vaHzskfQ7lYWJAuXlaCipFFAu6dvyZ ruSnjrsCqePJA== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id B6D56E21EDF; Tue, 20 Sep 2022 13:00:15 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [Patch net] tcp: read multiple skbs in tcp_read_skb() From: patchwork-bot+netdevbpf@kernel.org Message-Id: <166367881574.10144.3048644265262767799.git-patchwork-notify@kernel.org> Date: Tue, 20 Sep 2022 13:00:15 +0000 References: <20220912173553.235838-1-xiyou.wangcong@gmail.com> In-Reply-To: <20220912173553.235838-1-xiyou.wangcong@gmail.com> To: Cong Wang Cc: netdev@vger.kernel.org, cong.wang@bytedance.com, peilin.ye@bytedance.com, john.fastabend@gmail.com, jakub@cloudflare.com, edumazet@google.com Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hello: This patch was applied to netdev/net.git (master) by Paolo Abeni : On Mon, 12 Sep 2022 10:35:53 -0700 you wrote: > From: Cong Wang > > Before we switched to ->read_skb(), ->read_sock() was passed with > desc.count=1, which technically indicates we only read one skb per > ->sk_data_ready() call. However, for TCP, this is not true. > > TCP at least has sk_rcvlowat which intentionally holds skb's in > receive queue until this watermark is reached. This means when > ->sk_data_ready() is invoked there could be multiple skb's in the > queue, therefore we have to read multiple skbs in tcp_read_skb() > instead of one. > > [...] Here is the summary with links: - [net] tcp: read multiple skbs in tcp_read_skb() https://git.kernel.org/netdev/net/c/db4192a754eb You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html