[PATCH v2 0/3] make struct parameters constant in rte_tm APIs
Ferruh Yigit
ferruh.yigit at amd.com
Tue Oct 8 02:38:30 CEST 2024
On 10/7/2024 4:22 PM, Stephen Hemminger wrote:
> On Mon, 7 Oct 2024 12:49:04 +0100
> Bruce Richardson <bruce.richardson at intel.com> wrote:
>
>> 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
>>
>
> Series-Acked-by: Stephen Hemminger <stephen at networkplumber.org>
>
Series applied to dpdk-next-net/main, thanks.
More information about the dev
mailing list