DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH 0/4] improve rte_tm APIs
@ 2024-08-06 15:24 Bruce Richardson
  2024-08-06 15:24 ` [PATCH 1/4] ethdev: make parameters to TM node add fn constant Bruce Richardson
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Bruce Richardson @ 2024-08-06 15:24 UTC (permalink / raw)
  To: dev; +Cc: Bruce Richardson

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-08-07  7:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-06 15:24 [PATCH 0/4] improve rte_tm APIs Bruce Richardson
2024-08-06 15:24 ` [PATCH 1/4] ethdev: make parameters to TM node add fn constant Bruce Richardson
2024-08-07  7:27   ` Xu, Rosen
2024-08-06 15:24 ` [PATCH 2/4] ethdev: make parameters to TM profile " Bruce Richardson
2024-08-07  7:27   ` Xu, Rosen
2024-08-06 15:24 ` [PATCH 3/4] ethdev: make TM shaper parameters constant Bruce Richardson
2024-08-07  7:29   ` Xu, Rosen
2024-08-06 15:24 ` [PATCH 4/4] ethdev: add traffic manager query function Bruce Richardson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).