Searched refs:rss_idx (Results 1 – 4 of 4) sorted by relevance
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | rx_res.c | 89 int mlx5e_rx_res_rss_init(struct mlx5e_rx_res *res, u32 rss_idx, unsigned int init_nch) in mlx5e_rx_res_rss_init() argument 96 if (WARN_ON_ONCE(res->rss[rss_idx])) in mlx5e_rx_res_rss_init() 124 res->rss[rss_idx] = rss; in mlx5e_rx_res_rss_init() 129 static int __mlx5e_rx_res_rss_destroy(struct mlx5e_rx_res *res, u32 rss_idx) in __mlx5e_rx_res_rss_destroy() argument 131 struct mlx5e_rss *rss = res->rss[rss_idx]; in __mlx5e_rx_res_rss_destroy() 138 res->rss[rss_idx] = NULL; in __mlx5e_rx_res_rss_destroy() 143 int mlx5e_rx_res_rss_destroy(struct mlx5e_rx_res *res, u32 rss_idx) in mlx5e_rx_res_rss_destroy() argument 147 if (rss_idx >= MLX5E_MAX_NUM_RSS) in mlx5e_rx_res_rss_destroy() 150 rss = res->rss[rss_idx]; in mlx5e_rx_res_rss_destroy() 154 return __mlx5e_rx_res_rss_destroy(res, rss_idx); in mlx5e_rx_res_rss_destroy() [all …]
|
| H A D | rx_res.h | 52 void mlx5e_rx_res_rss_get_rxfh(struct mlx5e_rx_res *res, u32 rss_idx, 55 int mlx5e_rx_res_rss_set_rxfh(struct mlx5e_rx_res *res, u32 rss_idx, 59 int mlx5e_rx_res_rss_get_hash_fields(struct mlx5e_rx_res *res, u32 rss_idx, 61 int mlx5e_rx_res_rss_set_hash_fields(struct mlx5e_rx_res *res, u32 rss_idx, 66 int mlx5e_rx_res_rss_init(struct mlx5e_rx_res *res, u32 rss_idx, unsigned int init_nch); 67 int mlx5e_rx_res_rss_destroy(struct mlx5e_rx_res *res, u32 rss_idx); 70 struct mlx5e_rss *mlx5e_rx_res_rss_get(struct mlx5e_rx_res *res, u32 rss_idx);
|
| H A D | reporter_rx.c | 410 static void mlx5e_rx_reporter_diagnose_rx_res_rss_ix(struct mlx5e_rx_res *rx_res, u32 rss_idx, in mlx5e_rx_reporter_diagnose_rx_res_rss_ix() argument 413 struct mlx5e_rss *rss = mlx5e_rx_res_rss_get(rx_res, rss_idx); in mlx5e_rx_reporter_diagnose_rx_res_rss_ix() 420 devlink_fmsg_u32_pair_put(fmsg, "Index", rss_idx); in mlx5e_rx_reporter_diagnose_rx_res_rss_ix()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_fs_ethtool.c | 903 u32 rss_idx; in mlx5e_ethtool_set_rxfh_fields() local 907 rss_idx = nfc->rss_context; in mlx5e_ethtool_set_rxfh_fields() 938 err = mlx5e_rx_res_rss_set_hash_fields(priv->rx_res, rss_idx, tt, rx_hash_field); in mlx5e_ethtool_set_rxfh_fields() 949 u32 rss_idx; in mlx5e_ethtool_get_rxfh_fields() local 952 rss_idx = nfc->rss_context; in mlx5e_ethtool_get_rxfh_fields() 959 hash_field = mlx5e_rx_res_rss_get_hash_fields(priv->rx_res, rss_idx, tt); in mlx5e_ethtool_get_rxfh_fields()
|