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>
This commit is contained in:

committed by
David S. Miller

parent
dd0eefe3ab
commit
ad9a0bf08f
@@ -751,6 +751,8 @@ struct mlx4_dev_persistent {
|
||||
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 work_struct catas_work;
|
||||
struct workqueue_struct *catas_wq;
|
||||
};
|
||||
|
||||
struct mlx4_dev {
|
||||
|
Reference in New Issue
Block a user