Re: [PATCH v2 1/1] ethdev: fix int overflow in descriptor count logic

2024-09-27 Thread Ferruh Yigit
On 9/27/2024 2:23 PM, Niall Meade wrote: > Addressed a specific overflow issue in the eth_dev_adjust_nb_desc() > function where the uint16_t variable nb_desc would overflow when its > value was greater than (2^16 - nb_align). This overflow caused nb_desc > to incorrectly wrap around between 0 and n

[PATCH v2 1/1] ethdev: fix int overflow in descriptor count logic

2024-09-27 Thread Niall Meade
Addressed a specific overflow issue in the eth_dev_adjust_nb_desc() function where the uint16_t variable nb_desc would overflow when its value was greater than (2^16 - nb_align). This overflow caused nb_desc to incorrectly wrap around between 0 and nb_align-1, leading to the function setting nb_des