Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/mlx5/mlx5_en/mlx5_en_rl.c
Show First 20 Lines • Show All 628 Lines • ▼ Show 20 Lines | mlx5e_rl_open_tis(struct mlx5e_priv *priv) | ||||
MLX5_SET(tisc, tisc, transport_domain, priv->tdn); | MLX5_SET(tisc, tisc, transport_domain, priv->tdn); | ||||
return (mlx5_core_create_tis(mdev, in, sizeof(in), &priv->rl.tisn)); | return (mlx5_core_create_tis(mdev, in, sizeof(in), &priv->rl.tisn)); | ||||
} | } | ||||
static void | static void | ||||
mlx5e_rl_close_tis(struct mlx5e_priv *priv) | mlx5e_rl_close_tis(struct mlx5e_priv *priv) | ||||
{ | { | ||||
mlx5_core_destroy_tis(priv->mdev, priv->rl.tisn); | mlx5_core_destroy_tis(priv->mdev, priv->rl.tisn, 0); | ||||
} | } | ||||
static void | static void | ||||
mlx5e_rl_set_default_params(struct mlx5e_rl_params *param, | mlx5e_rl_set_default_params(struct mlx5e_rl_params *param, | ||||
struct mlx5_core_dev *mdev) | struct mlx5_core_dev *mdev) | ||||
{ | { | ||||
/* ratelimit workers */ | /* ratelimit workers */ | ||||
param->tx_worker_threads_def = mdev->priv.eq_table.num_comp_vectors; | param->tx_worker_threads_def = mdev->priv.eq_table.num_comp_vectors; | ||||
▲ Show 20 Lines • Show All 927 Lines • Show Last 20 Lines |