|
@@ -93,8 +93,14 @@ int mlx4_register_interface(struct mlx4_interface *intf)
|
|
|
mutex_lock(&intf_mutex);
|
|
|
|
|
|
list_add_tail(&intf->list, &intf_list);
|
|
|
- list_for_each_entry(priv, &dev_list, dev_list)
|
|
|
+ list_for_each_entry(priv, &dev_list, dev_list) {
|
|
|
+ if (mlx4_is_mfunc(&priv->dev) && (intf->flags & MLX4_INTFF_BONDING)) {
|
|
|
+ mlx4_dbg(&priv->dev,
|
|
|
+ "SRIOV, disabling HA mode for intf proto %d\n", intf->protocol);
|
|
|
+ intf->flags &= ~MLX4_INTFF_BONDING;
|
|
|
+ }
|
|
|
mlx4_add_device(intf, priv);
|
|
|
+ }
|
|
|
|
|
|
mutex_unlock(&intf_mutex);
|
|
|
|