Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1776012rda; Tue, 24 Oct 2023 03:01:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF6bOE6bMi3rqyB2j3FWePgECuR93J8yW0hnn5O5wStPY4y9wOIXnSSyoNbefTLTQFKePv2 X-Received: by 2002:a17:902:ea09:b0:1c8:9d32:339e with SMTP id s9-20020a170902ea0900b001c89d32339emr9987034plg.50.1698141681406; Tue, 24 Oct 2023 03:01:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698141681; cv=none; d=google.com; s=arc-20160816; b=bhW09nXI7oJl2KGtUtCGhzuxMfXJdpRBY2j3UcArV6kqGyLQyMohPd4ZvBowFL4tgZ +t7VBPQP04R1ZXCiz9r+W97flTlhXBLHghePC8Wj9aVkA6dzZ0Yne/B62mABx6EQ8XX7 iIJPNJqXCLoyMpc5iLt292tddol1923SgHPI4TXjwu0tA4dJg7q9ZLufFez14TJEcM5Z UBtvBno8SCzeQysiEYtdvx427AAR2qH2Nji9vLXOauXpd+8z3lz8/5C6WG4H+OGOV98j V92FItSngQKuOqov5fD5kOa/HJMJxHcAxBv7cPqpKr3MoQOJLUaVBlllxMi9I3bVfwS8 likA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=CoImcYZBtIb/y2ref4n63R6YTyZRp09VICax8G14DjM=; fh=nXm95jytg2x14cLNq7BDHEyWAtDVR7e5J9Vl20I45JM=; b=witf6R2cqJcWuEVIjlhVNDSCJIg6j7wEOn+J6wSEaQ0jcLUwpmr4XP69fHrEPd26cJ Sl19HncfY+UjS4m/uc5Xcg3nmZwIkt9ocsMrxwmW5hnu+KNK0Sdb2vnu9XgLQ5DHpFJ5 irIwSp5GguKf2LSaZ4MEAAVws0BAkqKjtFMtapD0VOIjVsZE/7VngvZnqa7NkhXv12Hl vBzEb2WFPkoLqK5MOC6qYyI3XvSapilIlaXsRNgMhB5qM7wZpFtrFarKOSlsiY32+CRj 3yDhSNi9tQfckwz2rcdJMEldXCPlo3DeX2CLKktgxCGto1xRCWnYHafd6+KqV81MlSSm Rp9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="o/RmK+xz"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id x1-20020a1709028ec100b001ca96a6eefesi8129417plo.577.2023.10.24.03.01.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 03:01:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="o/RmK+xz"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id DE09D80873B1; Tue, 24 Oct 2023 03:00:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233988AbjJXKA1 (ORCPT + 99 others); Tue, 24 Oct 2023 06:00:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233982AbjJXKA0 (ORCPT ); Tue, 24 Oct 2023 06:00:26 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01AB1DA for ; Tue, 24 Oct 2023 03:00:25 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPS id B5E41C433C8; Tue, 24 Oct 2023 10:00:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698141623; bh=iO4auww4oOgMuGBjwjfmLREbF1ZFa0JkFzcxjMaOb8o=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=o/RmK+xzUz7nSYvWcTTAJjngQ7ywOnBD65Yc5nJVFueNu3Sb7o853+eeMCYHhYJQN v83WTzm7UKnsoOGtiPK/XKWTqF4edJx7ovt4NWdyxKe4N+QreXzTliESJhTlQ93tjl UBfRNN4PZlZ9AjmYk4EJ/KmSK7A4NIOOQ9kWEACF5b/pOZCSeDCJ7oEc7JPDOp97HC JHwUZzjZv9MUHxQaovD+LJtyaOIBvsCOpG+/I/vaPhuasJBZVopBO9+omT9mQ94cHY b8Cb13yA6MTuB8DYKSpBwJ+W8HCv4JqN2IBsv7aw8yFnbtCTY/iyeE1LJxkLMa0CiB Aj14+aVGkRw5g== 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 9B798C00446; Tue, 24 Oct 2023 10:00:23 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH v4 net-next] xsk: avoid starving the xsk further down the list From: patchwork-bot+netdevbpf@kernel.org Message-Id: <169814162363.10002.5808190807858257955.git-patchwork-notify@kernel.org> Date: Tue, 24 Oct 2023 10:00:23 +0000 References: <20231023125732.82261-1-huangjie.albert@bytedance.com> In-Reply-To: <20231023125732.82261-1-huangjie.albert@bytedance.com> To: Albert Huang Cc: bjorn@kernel.org, magnus.karlsson@intel.com, maciej.fijalkowski@intel.com, jonathan.lemon@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, ast@kernel.org, daniel@iogearbox.net, hawk@kernel.org, john.fastabend@gmail.com, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 24 Oct 2023 03:00:42 -0700 (PDT) Hello: This patch was applied to bpf/bpf-next.git (master) by Daniel Borkmann : On Mon, 23 Oct 2023 20:57:31 +0800 you wrote: > In the previous implementation, when multiple xsk sockets were > associated with a single xsk_buff_pool, a situation could arise > where the xsk_tx_list maintained data at the front for one xsk > socket while starving the xsk sockets at the back of the list. > This could result in issues such as the inability to transmit packets, > increased latency, and jitter. To address this problem, we introduce > a new variable called tx_budget_spent, which limits each xsk to transmit > a maximum of MAX_PER_SOCKET_BUDGET tx descriptors. This allocation ensures > equitable opportunities for subsequent xsk sockets to send tx descriptors. > The value of MAX_PER_SOCKET_BUDGET is set to 32. > > [...] Here is the summary with links: - [v4,net-next] xsk: avoid starving the xsk further down the list https://git.kernel.org/bpf/bpf-next/c/99b29a499b5f You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html