Skip to content

Commit

Permalink
mlx5e: don't assume anything on the irq affinity mappings of the device
Browse files Browse the repository at this point in the history
mlx5e currently assumes that irq affinity is really spread first
irq vectors across device home node cpus, with the new generic affinity
mappings this is no longer the case, hence mlxe should not rely on
this anymore.

Signed-off-by: Sagi Grimberg <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
  • Loading branch information
sagigrimberg authored and Doug Ledford committed Aug 8, 2017
1 parent 78249c4 commit a85e547
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions drivers/net/ethernet/mellanox/mlx5/core/en_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3793,18 +3793,8 @@ void mlx5e_build_default_indir_rqt(struct mlx5_core_dev *mdev,
u32 *indirection_rqt, int len,
int num_channels)
{
int node = mdev->priv.numa_node;
int node_num_of_cores;
int i;

if (node == -1)
node = first_online_node;

node_num_of_cores = cpumask_weight(cpumask_of_node(node));

if (node_num_of_cores)
num_channels = min_t(int, num_channels, node_num_of_cores);

for (i = 0; i < len; i++)
indirection_rqt[i] = i % num_channels;
}
Expand Down

0 comments on commit a85e547

Please sign in to comment.