]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
mlx4_core: adjust catas operation for SRIOV mode
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Tue, 13 Dec 2011 04:17:16 +0000 (04:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Dec 2011 18:56:08 +0000 (13:56 -0500)
commitd81c7186aa16a0da9e39961af6bad0c855a5d684
tree45c7845d64f2f06282781a6147d4d6bc0d70f95b
parent2b8fb2867ca2736a715a88067fd0ec2904777cbe
mlx4_core: adjust catas operation for SRIOV mode

When running in SRIOV mode, driver should not automatically start/stop
the mlx4_core upon sensing an HCA internal error -- doing this disables/enables
sriov, which will cause the hypervisor to hang if there are running VMs with
attached VFs.

In addition, on VMs the catas process should not run at all, since the HCA
error buffer is not available to VMs in the BARs.

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/catas.c
drivers/net/ethernet/mellanox/mlx4/intf.c