summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/wq.h
diff options
context:
space:
mode:
authorSaeed Mahameed2015-07-23 22:35:57 +0200
committerDavid S. Miller2015-07-27 09:29:17 +0200
commit311c7c71c9bb8786c96fee353fe9886c08b017fe (patch)
treec54a8ba5c8a9a504d7952734f6b406a6e4ee9332 /drivers/net/ethernet/mellanox/mlx5/core/wq.h
parentnet/mlx5e: Support ETH_RSS_HASH_XOR (diff)
downloadkernel-qcow2-linux-311c7c71c9bb8786c96fee353fe9886c08b017fe.tar.gz
kernel-qcow2-linux-311c7c71c9bb8786c96fee353fe9886c08b017fe.tar.xz
kernel-qcow2-linux-311c7c71c9bb8786c96fee353fe9886c08b017fe.zip
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.h3
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 {