Re: [PATCH v2 0/3] make struct parameters constant in rte_tm APIs

2024-10-07 Thread Ferruh Yigit
On 10/7/2024 4:22 PM, Stephen Hemminger wrote: > On Mon, 7 Oct 2024 12:49:04 +0100 > Bruce Richardson 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

Re: [PATCH v2 0/3] make struct parameters constant in rte_tm APIs

2024-10-07 Thread Stephen Hemminger
On Mon, 7 Oct 2024 12:49:04 +0100 Bruce Richardson 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 us

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

2024-10-07 Thread Bruce Richardson
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 con