diff options
author | Saeed Mahameed <saeedm@mellanox.com> | 2015-07-23 23:35:57 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-07-27 10:29:17 +0300 |
commit | 311c7c71c9bb8786c96fee353fe9886c08b017fe (patch) | |
tree | c54a8ba5c8a9a504d7952734f6b406a6e4ee9332 /drivers/net/ethernet/mellanox/mlx5/core/wq.h | |
parent | 2be6967cdbc95a9960b620defedbf5e02e2af619 (diff) | |
download | linux-311c7c71c9bb8786c96fee353fe9886c08b017fe.tar.xz |
net/mlx5e: Allocate DMA coherent memory on reader NUMA node
By affinity hints and XPS, each mlx5e channel is assigned a CPU
core.
Channel DMA coherent memory that is written by the NIC and read
by SW (e.g CQ buffer) is allocated on the NUMA node of the CPU
core assigned for the channel.
Channel DMA coherent memory that is written by SW and read by the
NIC (e.g SQ/RQ buffer) is allocated on the NUMA node of the NIC.
Doorbell record (written by SW and read by the NIC) is an
exception since it is accessed by SW more frequently.
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/wq.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/wq.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/wq.h b/drivers/net/ethernet/mellanox/mlx5/core/wq.h index e0ddd69fb429..6c2a8f95093c 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/wq.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/wq.h @@ -37,7 +37,8 @@ struct mlx5_wq_param { int linear; - int numa; + int buf_numa_node; + int db_numa_node; }; struct mlx5_wq_ctrl { |