summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/device.h
diff options
context:
space:
mode:
authorSaeed Mahameed2015-06-11 13:47:28 +0200
committerDavid S. Miller2015-06-12 00:55:25 +0200
commitfc11fbf9a785b25c5d07f05a30d4169ec39818da (patch)
treea4f8e88672f5c4b302493f89746854a34438b074 /include/linux/mlx5/device.h
parentnet/mlx5e: Fix HW MTU settings (diff)
downloadkernel-qcow2-linux-fc11fbf9a785b25c5d07f05a30d4169ec39818da.tar.gz
kernel-qcow2-linux-fc11fbf9a785b25c5d07f05a30d4169ec39818da.tar.xz
kernel-qcow2-linux-fc11fbf9a785b25c5d07f05a30d4169ec39818da.zip
net/mlx5e: Add HW cacheline start padding
Enable HW cacheline start padding and align RX WQE size to cacheline while considering HW start padding. Also, fix dma_unmap call to use the correct SKB data buffer size. Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mlx5/device.h')
-rw-r--r--include/linux/mlx5/device.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mlx5/device.h b/include/linux/mlx5/device.h
index b2c43508a737..b943cd9e2097 100644
--- a/include/linux/mlx5/device.h
+++ b/include/linux/mlx5/device.h
@@ -132,6 +132,10 @@ enum {
};
enum {
+ MLX5_HW_START_PADDING = MLX5_INLINE_SEG,
+};
+
+enum {
MLX5_MIN_PKEY_TABLE_SIZE = 128,
MLX5_MAX_LOG_PKEY_TABLE = 5,
};