Message ID | 20240806152417.3649745-1-bruce.richardson@intel.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> 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 ABB724574E; Tue, 6 Aug 2024 17:24:42 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 931FE40A6C; Tue, 6 Aug 2024 17:24:42 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) by mails.dpdk.org (Postfix) with ESMTP id 0A16D40614 for <dev@dpdk.org>; Tue, 6 Aug 2024 17:24:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1722957881; x=1754493881; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=QpSEKKaBi9oG8DjYApIyLMACp9ovscI6xjyQ6ToMd6U=; b=QuUnD5sc9EVRvr4wMorrCFf+yQrProCe9gfWIDtDZ8SkMBSUS9X0+68d 6BdM9ep+OpliW/heLhy8s3PlJDGKS/SR6eAinp3TwBD9gyePuAdjEVD/K Nl/4umv/rux/1zJmQE21z+2YCOam/3IGIQ1yAA/fej9sXe9cTmef67Y+c dgFvIX1fRFKW2ap5a0MbXUHlu+U8xD9L3Qom4LNXKlhNfldj2ioT2ZNjx QV01o/8u3fTJ/7xMClMtIUpYa2A/sWcQh4196b69HVT/FEr20xsOCLnry uvIvFctheo4uGts+i2nCLoDsp/Q70k9Szs1xFSIYFkbownt2cLbu8CNfk Q==; X-CSE-ConnectionGUID: w6+6XoyfTjij/QanlcA2oQ== X-CSE-MsgGUID: toSHRJfMQK2nlZEgUtpB4g== X-IronPort-AV: E=McAfee;i="6700,10204,11156"; a="21160449" X-IronPort-AV: E=Sophos;i="6.09,268,1716274800"; d="scan'208";a="21160449" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Aug 2024 08:24:40 -0700 X-CSE-ConnectionGUID: 4vuLgWdkQmGUQmPfjJUDfA== X-CSE-MsgGUID: kqiEB+zBQYa1w6nkBAkKSQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,268,1716274800"; d="scan'208";a="57245315" Received: from silpixa00401385.ir.intel.com ([10.237.214.25]) by orviesa008.jf.intel.com with ESMTP; 06 Aug 2024 08:24:39 -0700 From: Bruce Richardson <bruce.richardson@intel.com> To: dev@dpdk.org Cc: Bruce Richardson <bruce.richardson@intel.com> Subject: [PATCH 0/4] improve rte_tm APIs Date: Tue, 6 Aug 2024 16:24:13 +0100 Message-ID: <20240806152417.3649745-1-bruce.richardson@intel.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series | improve rte_tm APIs | |
Message
Bruce Richardson
Aug. 6, 2024, 3:24 p.m. UTC
This patchset makes some small updates to the traffic manager (TM) APIs in ethdev. * For functions for creating profiles, shapers and hierarchy nodes, make the parameter structure pointer a pointer to a const object. This guarantees to the user that the struct won't be modified by the function, which allows the user to re-use the same parameters multiple times without having to constantly reinitialize it. * Add a function to allow the user to query the previously provided parameters used to create a TM node. This saves applications from having to provide a "shadow" hierarchy in the app mirroring that in the library. Bruce Richardson (4): ethdev: make parameters to TM node add fn constant ethdev: make parameters to TM profile add fn constant ethdev: make TM shaper parameters constant ethdev: add traffic manager query function drivers/net/cnxk/cnxk_tm.c | 4 +-- drivers/net/dpaa2/dpaa2_tm.c | 6 ++-- drivers/net/hns3/hns3_tm.c | 22 +++++++------- drivers/net/i40e/i40e_tm.c | 12 ++++---- drivers/net/iavf/iavf_tm.c | 12 ++++---- drivers/net/ice/ice_dcf_sched.c | 12 ++++---- drivers/net/ice/ice_tm.c | 12 ++++---- drivers/net/ipn3ke/ipn3ke_tm.c | 12 ++++---- drivers/net/ixgbe/ixgbe_tm.c | 12 ++++---- drivers/net/mvpp2/mrvl_tm.c | 2 +- drivers/net/txgbe/txgbe_tm.c | 12 ++++---- lib/ethdev/ethdev_trace.h | 16 ++++++++++ lib/ethdev/ethdev_trace_points.c | 3 ++ lib/ethdev/rte_tm.c | 31 +++++++++++++++++-- lib/ethdev/rte_tm.h | 52 ++++++++++++++++++++++++++++++-- lib/ethdev/rte_tm_driver.h | 18 +++++++++-- 16 files changed, 171 insertions(+), 67 deletions(-) -- 2.43.0