]> 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)
commitc7c6db17e6b88b253db9fbd0f294ae2fd9dfcee1
treec60dc68460dc095b98c3162829a15ba81dec0252
parentd047cc494ecc69dbc59dd0ea51cad3b88d5ce2ba
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: 833b1b503d76 ("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