|
@@ -783,6 +783,9 @@ static void mlx5_add_device(struct mlx5_interface *intf, struct mlx5_priv *priv)
|
|
struct mlx5_device_context *dev_ctx;
|
|
struct mlx5_device_context *dev_ctx;
|
|
struct mlx5_core_dev *dev = container_of(priv, struct mlx5_core_dev, priv);
|
|
struct mlx5_core_dev *dev = container_of(priv, struct mlx5_core_dev, priv);
|
|
|
|
|
|
|
|
+ if (!mlx5_lag_intf_add(intf, priv))
|
|
|
|
+ return;
|
|
|
|
+
|
|
dev_ctx = kmalloc(sizeof(*dev_ctx), GFP_KERNEL);
|
|
dev_ctx = kmalloc(sizeof(*dev_ctx), GFP_KERNEL);
|
|
if (!dev_ctx)
|
|
if (!dev_ctx)
|
|
return;
|
|
return;
|