projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71ab580
)
net/mlx5: Node-aware allocation for the IRQ table
author
Tariq Toukan
<tariqt@nvidia.com>
Wed, 30 Dec 2020 09:59:55 +0000
(11:59 +0200)
committer
Saeed Mahameed
<saeedm@nvidia.com>
Fri, 11 Mar 2022 07:38:21 +0000
(23:38 -0800)
Prefer the aware allocation, use the device NUMA node.
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c
b/drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c
index 351ea0a41a0349e4c9ea747468bb4484c400d2ab..db77f1d2eeb4954585a226cb8f2911f50df0d5cc 100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c
+++ b/
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c
@@
-600,7
+600,8
@@
int mlx5_irq_table_init(struct mlx5_core_dev *dev)
if (mlx5_core_is_sf(dev))
return 0;
- irq_table = kvzalloc(sizeof(*irq_table), GFP_KERNEL);
+ irq_table = kvzalloc_node(sizeof(*irq_table), GFP_KERNEL,
+ dev->priv.numa_node);
if (!irq_table)
return -ENOMEM;