Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ad189106 authored by Eli Cohen's avatar Eli Cohen Committed by David S. Miller
Browse files

net/mlx5_core: Allocate firmware pages from device's NUMA node



Allocate firmware pages from the NUMA node which is close to the device.

Signed-off-by: default avatarEli Cohen <eli@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c448b5e7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -243,8 +243,9 @@ static int alloc_system_page(struct mlx5_core_dev *dev, u16 func_id)
	struct page *page;
	u64 addr;
	int err;
	int nid = dev_to_node(&dev->pdev->dev);

	page = alloc_page(GFP_HIGHUSER);
	page = alloc_pages_node(nid, GFP_HIGHUSER, 0);
	if (!page) {
		mlx5_core_warn(dev, "failed to allocate page\n");
		return -ENOMEM;