summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx4
diff options
context:
space:
mode:
authorYishai Hadas <yishaih@mellanox.com>2015-01-25 16:59:36 +0200
committerDavid S. Miller <davem@davemloft.net>2015-01-25 14:43:13 -0800
commitdd0eefe3abbf47442db296bf68f27eb2860c1cdf (patch)
tree84732bd24a1309e1093ff8b6d9bdc3c814b31688 /include/linux/mlx4
parent872bf2fb69d90e3619befee842fc26db39d8e475 (diff)
downloadop-kernel-dev-dd0eefe3abbf47442db296bf68f27eb2860c1cdf.zip
op-kernel-dev-dd0eefe3abbf47442db296bf68f27eb2860c1cdf.tar.gz
net/mlx4_core: Set device configuration data to be persistent across reset
When an HCA enters an internal error state, this is detected by the driver. The driver then should reset the HCA and restart the software stack. Keep ports information and some SRIOV configuration in a persistent area to have it valid across reset. 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>
Diffstat (limited to 'include/linux/mlx4')
-rw-r--r--include/linux/mlx4/device.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h
index 1069ce6..8c3837a 100644
--- a/include/linux/mlx4/device.h
+++ b/include/linux/mlx4/device.h
@@ -749,6 +749,8 @@ struct mlx4_dev_persistent {
struct mlx4_dev *dev;
int nvfs[MLX4_MAX_PORTS + 1];
int num_vfs;
+ enum mlx4_port_type curr_port_type[MLX4_MAX_PORTS + 1];
+ enum mlx4_port_type curr_port_poss_type[MLX4_MAX_PORTS + 1];
};
struct mlx4_dev {
OpenPOWER on IntegriCloud