Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/mlx5/mlx5_core/mlx5_main.c
Show First 20 Lines • Show All 1,262 Lines • ▼ Show 20 Lines | static int mlx5_unload_one(struct mlx5_core_dev *dev, struct mlx5_priv *priv, | ||||
mlx5_pagealloc_stop(dev); | mlx5_pagealloc_stop(dev); | ||||
mlx5_reclaim_startup_pages(dev); | mlx5_reclaim_startup_pages(dev); | ||||
mlx5_core_disable_hca(dev); | mlx5_core_disable_hca(dev); | ||||
mlx5_cmd_cleanup(dev); | mlx5_cmd_cleanup(dev); | ||||
out: | out: | ||||
clear_bit(MLX5_INTERFACE_STATE_UP, &dev->intf_state); | clear_bit(MLX5_INTERFACE_STATE_UP, &dev->intf_state); | ||||
mutex_unlock(&dev->intf_state_mutex); | mutex_unlock(&dev->intf_state_mutex); | ||||
#ifdef CALLOUT_DEBUG_DRAIN | |||||
callout_check_drain(); | |||||
hselasky: What if mlx4 is loaded? | |||||
Done Inline ActionsThen things will break. Similarly, if there is more than one mlx5@pci devices, things will break. Read the description of the patch for instructions how to use it, you should see. kib: Then things will break. Similarly, if there is more than one mlx5@pci devices, things will… | |||||
#endif | |||||
return err; | return err; | ||||
} | } | ||||
void mlx5_core_event(struct mlx5_core_dev *dev, enum mlx5_dev_event event, | void mlx5_core_event(struct mlx5_core_dev *dev, enum mlx5_dev_event event, | ||||
unsigned long param) | unsigned long param) | ||||
{ | { | ||||
struct mlx5_priv *priv = &dev->priv; | struct mlx5_priv *priv = &dev->priv; | ||||
struct mlx5_device_context *dev_ctx; | struct mlx5_device_context *dev_ctx; | ||||
▲ Show 20 Lines • Show All 752 Lines • Show Last 20 Lines |
What if mlx4 is loaded?