Lines Matching defs:dev0

431 	struct mlx5_core_dev *dev0 = ldev->pf[MLX5_LAG_P1].dev;
438 !MLX5_CAP_PORT_SELECTION(dev0, port_select_flow_table_bypass))
443 return mlx5_cmd_modify_active_port(dev0, active_ports);
445 return mlx5_cmd_modify_lag(dev0, ldev->ports, ports);
452 struct mlx5_core_dev *dev0 = ldev->pf[MLX5_LAG_P1].dev;
467 mlx5_core_err(dev0,
474 mlx5_lag_print_mapping(dev0, ldev, tracker,
488 struct mlx5_core_dev *dev0 = ldev->pf[MLX5_LAG_P1].dev;
490 if (!MLX5_CAP_PORT_SELECTION(dev0, port_select_flow_table)) {
509 struct lag_func *dev0 = &ldev->pf[MLX5_LAG_P1];
514 if (MLX5_CAP_PORT_SELECTION(dev0->dev, port_select_flow_table) &&
558 struct mlx5_core_dev *dev0 = ldev->pf[MLX5_LAG_P1].dev;
559 struct mlx5_eswitch *master_esw = dev0->priv.eswitch;
585 struct mlx5_core_dev *dev0 = ldev->pf[MLX5_LAG_P1].dev;
590 mlx5_lag_print_mapping(dev0, ldev, tracker, flags);
591 mlx5_core_info(dev0, "shared_fdb:%d mode:%s\n",
594 err = mlx5_cmd_create_lag(dev0, ldev->v2p_map, mode, flags);
596 mlx5_core_err(dev0,
605 mlx5_core_err(dev0, "Can't enable single FDB mode\n");
607 mlx5_core_info(dev0, "Operation mode is single FDB\n");
612 if (mlx5_cmd_exec_in(dev0, destroy_lag, in))
613 mlx5_core_err(dev0,
626 struct mlx5_core_dev *dev0 = ldev->pf[MLX5_LAG_P1].dev;
640 mlx5_core_err(dev0,
653 mlx5_core_err(dev0,
656 mlx5_core_err(dev0,
673 struct mlx5_core_dev *dev0 = ldev->pf[MLX5_LAG_P1].dev;
674 struct mlx5_eswitch *master_esw = dev0->priv.eswitch;
693 err = mlx5_cmd_exec_in(dev0, destroy_lag, in);
696 mlx5_core_err(dev0,
699 mlx5_core_err(dev0,
786 struct mlx5_core_dev *dev0 = ldev->pf[MLX5_LAG_P1].dev;
796 if (!(dev0->priv.flags & MLX5_PRIV_FLAGS_DISABLE_ALL_ADEV)) {
797 dev0->priv.flags |= MLX5_PRIV_FLAGS_DISABLE_IB_ADEV;
798 mlx5_rescan_drivers_locked(dev0);
875 struct mlx5_core_dev *dev0 = ldev->pf[MLX5_LAG_P1].dev;
885 if (mlx5_lag_is_multipath(dev0))
911 dev0->priv.flags &= ~MLX5_PRIV_FLAGS_DISABLE_IB_ADEV;
912 mlx5_rescan_drivers_locked(dev0);
918 dev0->priv.flags &= ~MLX5_PRIV_FLAGS_DISABLE_IB_ADEV;
919 mlx5_rescan_drivers_locked(dev0);
928 dev0->priv.flags |= MLX5_PRIV_FLAGS_DISABLE_IB_ADEV;
929 mlx5_rescan_drivers_locked(dev0);
934 mlx5_core_err(dev0, "Failed to enable lag\n");