[PATCH 3/4] ethdev: make TM shaper parameters constant
Ferruh Yigit
ferruh.yigit at amd.com
Sun Sep 22 18:11:51 CEST 2024
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 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 it each time.
>>
>> Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
>
> Reviewed-by: Rosen Xu <rosen.xu at intel.com>
>
Acked-by: Ferruh Yigit <ferruh.yigit at amd.com>
More information about the dev
mailing list