From patchwork Thu Apr 28 02:59:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wenjun Wu X-Patchwork-Id: 110388 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7D48DA0503; Thu, 28 Apr 2022 05:21:22 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 178E640E78; Thu, 28 Apr 2022 05:21:22 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id E3CAD4068F for ; Thu, 28 Apr 2022 05:21:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651116081; x=1682652081; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=eM61lQYBotdjDJoHVBRe19fi5URmGBpTlG21vLrHcFo=; b=joF+f9aMgn7tD6qNzX6qbiq6hlWPsIxtcyDeBKMfUr2G8NdO7xa9Kxgf XHXKHfHfJQckqiDLeB3ogaQ2K527DwP18NZdAqa2XqXLHHof93yGpo4Zf rnaFZi+aD3/RV9EWXqTFigq3spQDVTN++qeBSiMRrJrHIUhDoHLTi25N6 4B3jvllT+CTUe1pzfvZUYKGPkILDj9+mspaQEylu9nRbfLTQ791qvhU5a LZqAzMYm+O6lAqamYRCl8H4mil99KF4Kr41KE4C3mdLVWdHcb2tTgC3Qp rDOjtf3RUf+98doSacOMvo0oR9Z+JZ/TomEBQhrp/XywExFF3DEw9XRam A==; X-IronPort-AV: E=McAfee;i="6400,9594,10330"; a="253526033" X-IronPort-AV: E=Sophos;i="5.90,295,1643702400"; d="scan'208";a="253526033" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2022 20:21:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,295,1643702400"; d="scan'208";a="661534541" Received: from npg-wuwenjun-dpdk-01.sh.intel.com ([10.67.110.181]) by fmsmga002.fm.intel.com with ESMTP; 27 Apr 2022 20:21:18 -0700 From: Wenjun Wu To: dev@dpdk.org, qiming.yang@intel.com, qi.z.zhang@intel.com Subject: [PATCH v8 0/9] Enable ETS-based TX QoS on PF Date: Thu, 28 Apr 2022 10:59:05 +0800 Message-Id: <20220428025914.3475281-1-wenjun1.wu@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220329014813.1092054-1-wenjun1.wu@intel.com> References: <20220329014813.1092054-1-wenjun1.wu@intel.com> MIME-Version: 1.0 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 This patch set enables ETS-based TX QoS on PF. It is supported to configure bandwidth and priority in both queue and queue group level, and weight only in queue level. v2: fix code style issue. v3: fix uninitialization issue. v4: fix logical issue. v5: fix CI testing issue. Add explicit cast. v6: add release note. v7: merge the release note with the previous patch. v8: rework shared code patch. Ting Xu (1): net/ice: support queue bandwidth limit Wenjun Wu (8): net/ice/base: fix dead lock issue when getting node from ID type net/ice/base: support queue BW allocation configuration net/ice/base: support priority configuration of the exact node net/ice: support queue group bandwidth limit net/ice: support queue priority configuration net/ice: support queue weight configuration net/ice: support queue group priority configuration net/ice: add warning log for unsupported configuration doc/guides/rel_notes/release_22_07.rst | 4 + drivers/net/ice/base/ice_sched.c | 90 ++- drivers/net/ice/base/ice_sched.h | 6 + drivers/net/ice/ice_ethdev.c | 19 + drivers/net/ice/ice_ethdev.h | 55 ++ drivers/net/ice/ice_tm.c | 845 +++++++++++++++++++++++++ drivers/net/ice/meson.build | 1 + 7 files changed, 1018 insertions(+), 2 deletions(-) create mode 100644 drivers/net/ice/ice_tm.c