]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Specify numa node when allocating drop rq
authorGal Pressman <galp@mellanox.com>
Thu, 25 Jan 2018 16:00:41 +0000 (18:00 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 20 Feb 2018 20:52:58 +0000 (12:52 -0800)
commitd61163f9969aa6c37b7b0316c89f97a58117177c
treec60dc68460dc095b98c3162829a15ba81dec0252
parentb6f103f546c346af86ed0a2d798930b3b69035b2
net/mlx5e: Specify numa node when allocating drop rq

When allocating a drop rq, no numa node is explicitly set which means
allocations are done on node zero. This is not necessarily the nearest
numa node to the HCA, and even worse, might even be a memoryless numa
node.

Choose the numa_node given to us by the pci device in order to properly
allocate the coherent dma memory instead of assuming zero is valid.

Fixes: ecbf887bdddc ("net/mlx5e: Set drop RQ's necessary parameters only")
Signed-off-by: Gal Pressman <galp@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c