diff options
| author | Yishai Hadas <yishaih@mellanox.com> | 2015-01-25 09:59:37 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2015-01-25 17:43:14 -0500 |
| commit | ad9a0bf08ffbf32b8f292c3bb78ca0f24bb8f6b2 (patch) | |
| tree | 308abce801c5d44e999a6ba64d3afac2557fd688 /include/linux/mlx4 | |
| parent | dd0eefe3abbf47442db296bf68f27eb2860c1cdf (diff) | |
net/mlx4_core: Refactor the catas flow to work per device
Using a WQ per device instead of a single global WQ, this allows
independent reset handling per device even when SRIOV is used.
This comes as a pre-patch for supporting chip reset
for both native and SRIOV.
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index 8c3837ac1a2d..da425d2f3708 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h | |||
| @@ -751,6 +751,8 @@ struct mlx4_dev_persistent { | |||
| 751 | int num_vfs; | 751 | int num_vfs; |
| 752 | enum mlx4_port_type curr_port_type[MLX4_MAX_PORTS + 1]; | 752 | enum mlx4_port_type curr_port_type[MLX4_MAX_PORTS + 1]; |
| 753 | enum mlx4_port_type curr_port_poss_type[MLX4_MAX_PORTS + 1]; | 753 | enum mlx4_port_type curr_port_poss_type[MLX4_MAX_PORTS + 1]; |
| 754 | struct work_struct catas_work; | ||
| 755 | struct workqueue_struct *catas_wq; | ||
| 754 | }; | 756 | }; |
| 755 | 757 | ||
| 756 | struct mlx4_dev { | 758 | struct mlx4_dev { |
