From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E27B74389E; Fri, 12 Jan 2024 08:01:55 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8A6D84028C; Fri, 12 Jan 2024 08:01:55 +0100 (CET) Received: from mail-qt1-f177.google.com (mail-qt1-f177.google.com [209.85.160.177]) by mails.dpdk.org (Postfix) with ESMTP id 874D24025E for ; Fri, 12 Jan 2024 08:01:54 +0100 (CET) Received: by mail-qt1-f177.google.com with SMTP id d75a77b69052e-427a3887483so38376261cf.3 for ; Thu, 11 Jan 2024 23:01:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705042914; x=1705647714; darn=dpdk.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=MuC3Jpv6A6V7/7i+CWsvRUZvK+fIof9QpX9mUNCTQlg=; b=DPNOB5hT/gN4pOLRDQ+8aKOq3U7XfyvNEBTdu3jQWxWhvhQFbxk7AMlqfxfRc8Opuj WITkFuGxDE/11bmSwAvZIMxccEPR597/qGNPAI/OSL+kxAPrAFZUYlWc6NfGubONzYgr xHIyeepyaDb9XT4JIdRuZpHrqHiHHFA6+a077GriyIBPz7VUNYUBKPpq93ZMPIWZ1B3P 4hCIKsbQoyhBqbK5QOeoOr/1AUjo7Q8iA/KMPXI/SQ6AfBLE0drN7oPuWe6Ot5A6hiuJ pfav/F0u1jOtvz2Cy7/EaEycflZy3KbLnpzgGH7AJ/GqTyvd/LlNqICNMfl3ZCp0HB5A R1bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705042914; x=1705647714; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MuC3Jpv6A6V7/7i+CWsvRUZvK+fIof9QpX9mUNCTQlg=; b=JJBjhCKcmn2QPYCSgI/AY1kgcDtN4RovZH3vIOsPUwoFHrcLrSPNUC9GCBPZIfineu 113XC45x5KXvWKyp64vIWaehvK2iyrC38DdCC2CfXjR3tSDUsKf1uSEf5byrXfgN/KN2 dc60PqkHnWfFxG9RErrRy9R90A2HEZrM6JLnu2miWn1gzWDDit3hmjQmrXMO8mZty+Os cA5FVQ1BWxmBkvkRteMNh4BQJfrZBJWYWFsmdlUaz9aQ4I9PnO4OYvlSJej+PIo/t6g7 wXZvrXCx6oDXUlQSWWps51XCk78jp6s7TTX4lpsYZKPhdG4KIgRIAJLdPPcvpgdZJ3vI A7qw== X-Gm-Message-State: AOJu0YyDCm7Kz0MMuLjmXaKnBEQ7qkqy+U9Bh8Mro9/xLe1hv8iX5UYm h2BOzgr/WiClnUqO+MJYKPx8S8DZV0rK6/r3MuM= X-Google-Smtp-Source: AGHT+IFR8fkeqhD+4IbozCI++swS3wBva3mtDIvtSthM1/pQAi620kmn/jyk/fMYPva63mHaKfMdWtjf/OpsAzwHZtI= X-Received: by 2002:a05:622a:56:b0:429:a716:d794 with SMTP id y22-20020a05622a005600b00429a716d794mr1162288qtw.134.1705042913845; Thu, 11 Jan 2024 23:01:53 -0800 (PST) MIME-Version: 1.0 References: <20231219172948.3909749-1-jerinj@marvell.com> <20240111151745.3800170-1-jerinj@marvell.com> <20240111090011.664c8888@hermes.local> In-Reply-To: <20240111090011.664c8888@hermes.local> From: Jerin Jacob Date: Fri, 12 Jan 2024 12:31:27 +0530 Message-ID: Subject: Re: [dpdk-dev] [v1] ethdev: support Tx queue used count To: Stephen Hemminger Cc: jerinj@marvell.com, dev@dpdk.org, Thomas Monjalon , Ferruh Yigit , Andrew Rybchenko , ferruh.yigit@xilinx.com, ajit.khaparde@broadcom.com, aboyer@pensando.io, beilei.xing@intel.com, bruce.richardson@intel.com, chas3@att.com, chenbo.xia@intel.com, ciara.loftus@intel.com, dsinghrawat@marvell.com, ed.czeck@atomicrules.com, evgenys@amazon.com, grive@u256.net, g.singh@nxp.com, zhouguoyang@huawei.com, haiyue.wang@intel.com, hkalra@marvell.com, heinrich.kuhn@corigine.com, hemant.agrawal@nxp.com, hyonkim@cisco.com, igorch@amazon.com, irusskikh@marvell.com, jgrajcia@cisco.com, jasvinder.singh@intel.com, jianwang@trustnetic.com, jiawenwu@trustnetic.com, jingjing.wu@intel.com, johndale@cisco.com, john.miller@atomicrules.com, linville@tuxdriver.com, keith.wiles@intel.com, kirankumark@marvell.com, oulijun@huawei.com, lironh@marvell.com, longli@microsoft.com, mw@semihalf.com, spinler@cesnet.cz, matan@nvidia.com, matt.peters@windriver.com, maxime.coquelin@redhat.com, mk@semihalf.com, humin29@huawei.com, pnalla@marvell.com, ndabilpuram@marvell.com, qiming.yang@intel.com, qi.z.zhang@intel.com, radhac@marvell.com, rahul.lakkireddy@chelsio.com, rmody@marvell.com, rosen.xu@intel.com, sachin.saxena@oss.nxp.com, skoteshwar@marvell.com, shshaikh@marvell.com, shaibran@amazon.com, shepard.siegel@atomicrules.com, asomalap@amd.com, somnath.kotur@broadcom.com, sthemmin@microsoft.com, steven.webster@windriver.com, skori@marvell.com, mtetsuyah@gmail.com, vburru@marvell.com, viacheslavo@nvidia.com, xiao.w.wang@intel.com, cloud.wangxiaoyun@huawei.com, yisen.zhuang@huawei.com, yongwang@vmware.com, xuanziyang2@huawei.com, cristian.dumitrescu@intel.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Thu, Jan 11, 2024 at 10:30=E2=80=AFPM Stephen Hemminger wrote: > > On Thu, 11 Jan 2024 20:47:44 +0530 > wrote: > > > From: Jerin Jacob > > > > Introduce a new API to retrieve the number of used descriptors > > in a Tx queue. Applications can leverage this API in the fast path to > > inspect the Tx queue occupancy and take appropriate actions based on th= e > > available free descriptors. > > > > A notable use case could be implementing Random Early Discard (RED) > > in software based on Tx queue occupancy. > > > > Signed-off-by: Jerin Jacob > > Has anyone investigated implementing dynamic tx queue limits like > Linux BQL? In DPDK APIs, it can expressed through creating correct TM topology(shaping or rate limiting) via rte_tm API