File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
drivers/net/ethernet/mellanox/mlx5/core Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -3028,15 +3028,18 @@ int mlx5e_update_tx_netdev_queues(struct mlx5e_priv *priv)
3028
3028
static void mlx5e_set_default_xps_cpumasks (struct mlx5e_priv * priv ,
3029
3029
struct mlx5e_params * params )
3030
3030
{
3031
- struct mlx5_core_dev * mdev = priv -> mdev ;
3032
- int num_comp_vectors , ix , irq ;
3033
-
3034
- num_comp_vectors = mlx5_comp_vectors_max (mdev );
3031
+ int ix ;
3035
3032
3036
3033
for (ix = 0 ; ix < params -> num_channels ; ix ++ ) {
3034
+ int num_comp_vectors , irq , vec_ix ;
3035
+ struct mlx5_core_dev * mdev ;
3036
+
3037
+ mdev = mlx5_sd_ch_ix_get_dev (priv -> mdev , ix );
3038
+ num_comp_vectors = mlx5_comp_vectors_max (mdev );
3037
3039
cpumask_clear (priv -> scratchpad .cpumask );
3040
+ vec_ix = mlx5_sd_ch_ix_get_vec_ix (mdev , ix );
3038
3041
3039
- for (irq = ix ; irq < num_comp_vectors ; irq += params -> num_channels ) {
3042
+ for (irq = vec_ix ; irq < num_comp_vectors ; irq += params -> num_channels ) {
3040
3043
int cpu = mlx5_comp_vector_get_cpu (mdev , irq );
3041
3044
3042
3045
cpumask_set_cpu (cpu , priv -> scratchpad .cpumask );
You can’t perform that action at this time.
0 commit comments