Re: [PATCH net, v2] net: mana: Support holes in device list reply msg

2025-03-11 Thread Michal Swiatkowski
On Tue, Mar 11, 2025 at 01:12:54PM -0700, Haiyang Zhang wrote: > According to GDMA protocol, holes (zeros) are allowed at the beginning > or middle of the gdma_list_devices_resp message. The existing code > cannot properly handle this, and may miss some devices in the list. > > To fix, scan the en

[PATCH net, v2] net: mana: Support holes in device list reply msg

2025-03-11 Thread Haiyang Zhang
According to GDMA protocol, holes (zeros) are allowed at the beginning or middle of the gdma_list_devices_resp message. The existing code cannot properly handle this, and may miss some devices in the list. To fix, scan the entire list until the num_of_devs are found, or until the end of the list.