diff options
author | 2023-06-20 14:07:03 +0300 | |
---|---|---|
committer | 2023-07-05 10:57:04 -0700 | |
commit | 6496357aa5f710eec96f91345b9da1b37c3231f6 (patch) | |
tree | 4c9ad417de193efc6b3b545484b767c49d85d92d /lib/test_dynamic_debug.c | |
parent | net/mlx5e: TC, CT: Offload ct clear only once (diff) | |
download | linux-rng-6496357aa5f710eec96f91345b9da1b37c3231f6.tar.xz linux-rng-6496357aa5f710eec96f91345b9da1b37c3231f6.zip |
net/mlx5: Query hca_cap_2 only when supported
On vport enable, where fw's hca caps are queried, the driver queries
hca_caps_2 without checking if fw truly supports them, causing a false
failure of vfs vport load and blocking SRIOV enablement on old devices
such as CX4 where hca_caps_2 support is missing.
Thus, add a check for the said caps support before accessing them.
Fixes: e5b9642a33be ("net/mlx5: E-Switch, Implement devlink port function cmds to control migratable")
Signed-off-by: Maher Sanalla <msanalla@nvidia.com>
Reviewed-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'lib/test_dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions