Lines Matching defs:esw
31 bool mlx5e_tc_int_port_supported(const struct mlx5_eswitch *esw)
33 return mlx5_eswitch_vport_match_metadata_enabled(esw) &&
34 MLX5_CAP_GEN(esw->dev, reg_c_preserve);
61 mlx5e_int_port_create_rx_rule(struct mlx5_eswitch *esw,
93 flow_rule = mlx5_add_flow_rules(esw->offloads.ft_offloads, spec,
96 mlx5_core_warn(esw->dev, "ft offloads: Failed to add internal vport rx rule err %ld\n",
154 struct mlx5_eswitch *esw = priv->dev->priv.eswitch;
176 mlx5_core_warn(esw->dev, "Cannot add a new internal port, metadata allocation failed for ifindex %d",
182 ctx = esw->offloads.reg_c0_obj_pool;
195 uplink_rpriv = mlx5_eswitch_get_uplink_priv(esw, REP_ETH);
200 int_port->rx_rule = mlx5e_int_port_create_rx_rule(esw, int_port, &dest);
203 mlx5_core_warn(esw->dev, "Can't add internal port rx rule, err %d", err);
230 struct mlx5_eswitch *esw = priv->dev->priv.eswitch;
233 ctx = esw->offloads.reg_c0_obj_pool;
308 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch;
312 if (!mlx5e_tc_int_port_supported(esw))
360 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch;
365 uplink_rpriv = mlx5_eswitch_get_uplink_priv(esw, REP_ETH);
380 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch;
386 uplink_rpriv = mlx5_eswitch_get_uplink_priv(esw, REP_ETH);