net/mlx4_core: Reset flow activation upon SRIOV fatal command cases
authorYishai Hadas <yishaih@mellanox.com>
Sun, 25 Jan 2015 14:59:43 +0000 (16:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Jan 2015 22:43:15 +0000 (14:43 -0800)
commit0cd9302734111abc0b5912b695336f2ee63cb22b
tree29dcfdc9bb9636ee93c8940a1b355c26a30c01b1
parent55ad359225b2232b9b8f04a0dfa169bd3a7d86d2
net/mlx4_core: Reset flow activation upon SRIOV fatal command cases

When SRIOV commands are executed over the comm-channel and get
a fatal error (e.g. timeout, closing command failure) the VF enters
into error state and reset flow is activated.

To be able to recognize whether the failure was on a closing command, the
operational code for the given VHCR command is used. Once the device entered
into an error state we prevent redundant error messages from being printed.

Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/cmd.c
drivers/net/ethernet/mellanox/mlx4/main.c
drivers/net/ethernet/mellanox/mlx4/mcg.c
drivers/net/ethernet/mellanox/mlx4/mlx4.h