diff options
| author | Sagi Grimberg <sagi@grimberg.me> | 2017-07-13 11:09:39 +0300 |
|---|---|---|
| committer | Doug Ledford <dledford@redhat.com> | 2017-08-08 21:53:05 +0300 |
| commit | a85e5474f4c783b252bf6b80571cdb2abb7d69d9 (patch) | |
| tree | a42014280b72c133a20290b2ec7ecabccdedda68 | |
| parent | 78249c4215840edb95447ec6867b69a7ac1d7a0d (diff) | |
| download | linux-a85e5474f4c783b252bf6b80571cdb2abb7d69d9.tar.xz | |
mlx5e: don't assume anything on the irq affinity mappings of the device
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 <sagi@grimberg.me>
Signed-off-by: Doug Ledford <dledford@redhat.com>
| -rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c index d0e572df3a1b..2c4e41833e55 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c @@ -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; } |
