]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_core: Set device configuration data to be persistent across reset
authorYishai Hadas <yishaih@mellanox.com>
Sun, 25 Jan 2015 14:59:36 +0000 (16:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Jan 2015 22:43:13 +0000 (14:43 -0800)
commitb67ff55e218cb1eb9154458e02694c6dd94db1dd
tree84732bd24a1309e1093ff8b6d9bdc3c814b31688
parent02cd7bb5cfcaef3fbe3d59a017a236737b093478
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>
drivers/net/ethernet/mellanox/mlx4/main.c
include/linux/mlx4/device.h