From: Tariq Toukan Date: Wed, 30 Dec 2020 09:53:14 +0000 (+0200) Subject: net/mlx5: Node-aware allocation for the EQ table X-Git-Tag: v6.1-rc5~1746^2~119^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e894246df5136f670f3568b7856daeec6c4f9456;p=platform%2Fkernel%2Flinux-starfive.git net/mlx5: Node-aware allocation for the EQ table Prefer the aware allocation, use the device NUMA node. Signed-off-by: Tariq Toukan Reviewed-by: Moshe Shemesh Signed-off-by: Saeed Mahameed --- diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eq.c b/drivers/net/ethernet/mellanox/mlx5/core/eq.c index cb4730c..3161053 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/eq.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/eq.c @@ -438,7 +438,8 @@ int mlx5_eq_table_init(struct mlx5_core_dev *dev) struct mlx5_eq_table *eq_table; int i; - eq_table = kvzalloc(sizeof(*eq_table), GFP_KERNEL); + eq_table = kvzalloc_node(sizeof(*eq_table), GFP_KERNEL, + dev->priv.numa_node); if (!eq_table) return -ENOMEM;