]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit - drivers/net/ethernet/mellanox/mlx5/core/en_main.c
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)
commit2f0db87901698cd73d828cc6fb1957b8916fc911
treec60dc68460dc095b98c3162829a15ba81dec0252
parent001a2fc0c8cc29241305e44ffbce52d1daf8782b
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: 556dd1b9c313 ("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