Re: [PATCH 2/4] ethdev: make parameters to TM profile add fn constant

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

RE: [PATCH 2/4] ethdev: make parameters to TM profile add fn constant

2024-08-07 Thread Xu, Rosen
Hi, > -Original Message- > From: Richardson, Bruce > Sent: Tuesday, August 6, 2024 11:24 PM > To: dev@dpdk.org > Cc: Richardson, Bruce ; Xu, Rosen > ; Dumitrescu, Cristian > ; Thomas Monjalon > ; Ferruh Yigit ; Andrew > Rybchenko > Subject: [PATCH 2/4]

[PATCH 2/4] ethdev: make parameters to TM profile add fn constant

2024-08-06 Thread Bruce Richardson
The function to add a new 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 reset i