Re: [PATCH v2 03/13] ethdev: extract codes parsing port ID as a function

2023-06-07 Thread Ferruh Yigit
On 6/7/2023 8:41 AM, Jie Hai wrote: > This patch extracts codes parsing port_id as a function. > The port id of 'int' or 'unsigned long' type passing as > 'uint16_t' may cause truncation, fix it. > > Signed-off-by: Jie Hai > --- > lib/ethdev/rte_ethdev_telemetry.c | 95 --

[PATCH v2 03/13] ethdev: extract codes parsing port ID as a function

2023-06-07 Thread Jie Hai
This patch extracts codes parsing port_id as a function. The port id of 'int' or 'unsigned long' type passing as 'uint16_t' may cause truncation, fix it. Signed-off-by: Jie Hai --- lib/ethdev/rte_ethdev_telemetry.c | 95 --- lib/ethdev/sff_telemetry.c| 4 +-