Re: [PATCH 3/4] ethdev: make TM shaper parameters constant

2024-09-22 Thread Ferruh Yigit
On 8/7/2024 8:29 AM, Xu, Rosen wrote: > Hi, > >> -Original Message- <...> >> Subject: [PATCH 3/4] ethdev: make TM shaper parameters constant >> >> The function to add a new shaper profile in rte_tm should not (and does >> not) modify the profile p

RE: [PATCH 3/4] ethdev: make TM shaper parameters constant

2024-08-07 Thread Xu, Rosen
> ; Jie Hai ; Yisen Zhuang > ; Wu, Jingjing ; Xu, > Rosen ; Liron Himi ; Jiawen Wu > ; Jian Wang ; > Dumitrescu, Cristian ; Thomas Monjalon > ; Ferruh Yigit ; Andrew > Rybchenko > Subject: [PATCH 3/4] ethdev: make TM shaper parameters constant > > The function to add

[PATCH 3/4] ethdev: make TM shaper parameters constant

2024-08-06 Thread Bruce Richardson
The function to add a new shaper profile in rte_tm should not (and does not) modify the profile parameters passed in via struct pointer. We should guarantee this by marking the parameter pointer as const. This allows SW to create multiple profiles using the same parameter struct without having to r