]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix query ISSI flow
authorKamal Heib <kamalh@mellanox.com>
Tue, 6 Dec 2016 15:32:45 +0000 (17:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Dec 2016 16:44:44 +0000 (11:44 -0500)
commit75673d8965740940cf5786a4ff1383cd6787b5aa
tree663db6816358ea5c2051e9594d287fea7997617e
parent637a6718447bb0fff5070674341db734fd71779b
net/mlx5: Fix query ISSI flow

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: a6c0c80b2280 ('net/mlx5: Extend mlx5_core to support ConnectX-4
Ethernet functionality')
Signed-off-by: Kamal Heib <kamalh@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
drivers/net/ethernet/mellanox/mlx5/core/main.c
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h