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

2024-09-30 Thread Ferruh Yigit
On 9/30/2024 2:40 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 v3 1/1] ethdev: fix int overflow in descriptor count logic

2024-09-30 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