Searched refs:selq (Results 1 – 9 of 9) sorted by relevance
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | selq.c | 27 int mlx5e_selq_init(struct mlx5e_selq *selq, struct mutex *state_lock) in mlx5e_selq_init() argument 31 selq->state_lock = state_lock; in mlx5e_selq_init() 33 selq->standby = kvzalloc(sizeof(*selq->standby), GFP_KERNEL); in mlx5e_selq_init() 34 if (!selq->standby) in mlx5e_selq_init() 37 init_params = kvzalloc(sizeof(*selq->active), GFP_KERNEL); in mlx5e_selq_init() 39 kvfree(selq->standby); in mlx5e_selq_init() 40 selq->standby = NULL; in mlx5e_selq_init() 53 rcu_assign_pointer(selq->active, init_params); in mlx5e_selq_init() 58 void mlx5e_selq_cleanup(struct mlx5e_selq *selq) in mlx5e_selq_cleanup() argument 60 mutex_lock(selq->state_lock); in mlx5e_selq_cleanup() [all …]
|
H A D | selq.h | 22 int mlx5e_selq_init(struct mlx5e_selq *selq, struct mutex *state_lock); 23 void mlx5e_selq_cleanup(struct mlx5e_selq *selq); 24 void mlx5e_selq_prepare_params(struct mlx5e_selq *selq, struct mlx5e_params *params); 25 void mlx5e_selq_prepare_htb(struct mlx5e_selq *selq, u16 htb_maj_id, u16 htb_defcls); 26 bool mlx5e_selq_is_htb_enabled(struct mlx5e_selq *selq); 27 void mlx5e_selq_apply(struct mlx5e_selq *selq); 28 void mlx5e_selq_cancel(struct mlx5e_selq *selq);
|
H A D | htb.c | 26 struct mlx5e_selq *selq; member 185 mlx5e_selq_prepare_htb(htb->selq, htb_maj_id, htb_defcls); in mlx5e_htb_root_add() 206 mlx5e_selq_apply(htb->selq); in mlx5e_htb_root_add() 217 mlx5e_selq_cancel(htb->selq); in mlx5e_htb_root_add() 234 mlx5e_selq_prepare_htb(htb->selq, 0, 0); in mlx5e_htb_root_del() 235 mlx5e_selq_apply(htb->selq); in mlx5e_htb_root_del() 707 struct mlx5e_selq *selq, struct mlx5e_priv *priv) in mlx5e_htb_init() argument 711 htb->selq = selq; in mlx5e_htb_init()
|
H A D | htb.h | 43 struct mlx5e_selq *selq, struct mlx5e_priv *priv);
|
H A D | qos.c | 412 res = mlx5e_htb_init(htb, htb_qopt, priv->netdev, priv->mdev, &priv->selq, priv); in mlx5e_htb_setup_tc()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | Makefile | 31 en/qos.o en/htb.o en/trap.o en/fs_tt_redirect.o en/selq.o \
|
H A D | en_main.c | 3304 mlx5e_selq_apply(&priv->selq); in mlx5e_switch_priv_channels() 3332 mlx5e_selq_prepare_params(&priv->selq, &new_chs->params); in mlx5e_safe_switch_params() 3349 mlx5e_selq_cancel(&priv->selq); in mlx5e_safe_switch_params() 3390 mlx5e_selq_prepare_params(&priv->selq, &priv->channels.params); in mlx5e_open_locked() 3402 mlx5e_selq_apply(&priv->selq); in mlx5e_open_locked() 3415 mlx5e_selq_cancel(&priv->selq); in mlx5e_open_locked() 3819 if (WARN_ON(mlx5e_selq_is_htb_enabled(&priv->selq))) in mlx5e_setup_tc_mqprio() 4101 if (!enable && mlx5e_selq_is_htb_enabled(&priv->selq)) { in set_feature_hw_tc() 6008 err = mlx5e_selq_init(&priv->selq, &priv->state_lock); in mlx5e_priv_init() 6049 mlx5e_selq_cleanup(&priv->selq); in mlx5e_priv_init() [all …]
|
H A D | en.h | 867 struct mlx5e_selq selq; member
|
H A D | en_ethtool.c | 495 if (mlx5e_selq_is_htb_enabled(&priv->selq)) { in mlx5e_ethtool_set_channels() 2278 if (mlx5e_selq_is_htb_enabled(&priv->selq)) { in set_pflag_tx_port_ts()
|