• Kamal Heib's avatar
    net/mlx5: Fix query ISSI flow · f9c14e46
    Kamal Heib authored
    In old FWs query ISSI command is not supported and for some of those FWs
    it might fail with status other than "MLX5_CMD_STAT_BAD_OP_ERR".
    
    In such case instead of failing the driver load, we will treat any FW
    status other than 0 for Query ISSI FW command as ISSI not supported and
    assume ISSI=0 (most basic driver/FW interface).
    
    In case of driver syndrom (query ISSI failure by driver) we will fail
    driver load.
    
    Fixes: f62b8bb8 ('net/mlx5: Extend mlx5_core to support ConnectX-4
    Ethernet functionality')
    Signed-off-by: default avatarKamal Heib <kamalh@mellanox.com>
    Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    f9c14e46
cmd.c 45.8 KB