diff options
author | 2025-03-11 13:12:54 -0700 | |
---|---|---|
committer | 2025-03-18 11:32:15 +0100 | |
commit | 2fc8a346625eb1abfe202062c7e6a13d76cde5ea (patch) | |
tree | 1a605dbb93939efb747cc83463452d94e2b3cf6f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net: ethernet: ti: am65-cpsw: Fix NAPI registration sequence (diff) | |
download | wireguard-linux-2fc8a346625eb1abfe202062c7e6a13d76cde5ea.tar.xz wireguard-linux-2fc8a346625eb1abfe202062c7e6a13d76cde5ea.zip |
net: mana: Support holes in device list reply msg
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.
Cc: stable@vger.kernel.org
Fixes: ca9c54d2d6a5 ("net: mana: Add a driver for Microsoft Azure Network Adapter (MANA)")
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: Long Li <longli@microsoft.com>
Reviewed-by: Shradha Gupta <shradhagupta@microsoft.com>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Link: https://patch.msgid.link/1741723974-1534-1-git-send-email-haiyangz@microsoft.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions