Skip to content

make struct parameters constant in rte_tm APIs

Bruce Richardson dpdk-dev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 2 repliesIn review
  2. v14 patches 9 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ethdev: make parameters to TM node add fn constantdrivers/net/cnxk/cnxk_tm.c drivers/net/dpaa2/dpaa2_tm.c drivers/net/hns3/hns3_tm.c +10 more+34 -340 replies
2/3ethdev: make parameters to TM profile add fn constantdrivers/net/ipn3ke/ipn3ke_tm.c lib/ethdev/rte_tm.c lib/ethdev/rte_tm.h +1 more+5 -50 replies
3/3ethdev: make TM shaper parameters constantdrivers/net/cnxk/cnxk_tm.c drivers/net/dpaa2/dpaa2_tm.c drivers/net/hns3/hns3_tm.c +11 more+29 -290 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchRosen XuFerruh YigitStephen Hemminger
SeriesSeries-Acked-by
1/3R-b A-b
2/3R-b A-b
3/3R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/3] make struct parameters constant in rte_tm APIs

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.

V2: drop final patch with new node query function, simplifying patchset

Bruce Richardson (3):
ethdev: make parameters to TM node add fn constant
ethdev: make parameters to TM profile add fn constant
ethdev: make TM shaper parameters constant

 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/rte_tm.c             |  6 +++---
 lib/ethdev/rte_tm.h             |  6 +++---
 lib/ethdev/rte_tm_driver.h      |  6 +++---
 14 files changed, 68 insertions(+), 68 deletions(-)

--
2.43.0