summaryrefslogtreecommitdiff
path: root/include/linux/mlx5
diff options
context:
space:
mode:
authorDoug Ledford <dledford@redhat.com>2016-04-28 22:16:32 +0300
committerDoug Ledford <dledford@redhat.com>2016-04-28 22:16:32 +0300
commite29bff46b9b8663e1789fbcd65d0ba05a52f08af (patch)
treecce17191cf20c60dc917c62f01d96f6b571a47d4 /include/linux/mlx5
parentd53e181c85effdfdec97a760622330626c922d81 (diff)
parente6bd18f57aad1a2d1ef40e646d03ed0f2515c9e3 (diff)
downloadlinux-e29bff46b9b8663e1789fbcd65d0ba05a52f08af.tar.xz
Merge branch 'k.o/for-4.6-rc' into testing/4.6
Diffstat (limited to 'include/linux/mlx5')
-rw-r--r--include/linux/mlx5/device.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/mlx5/device.h b/include/linux/mlx5/device.h
index 8156e3c9239c..b3575f392492 100644
--- a/include/linux/mlx5/device.h
+++ b/include/linux/mlx5/device.h
@@ -392,6 +392,17 @@ enum {
MLX5_CAP_OFF_CMDIF_CSUM = 46,
};
+enum {
+ /*
+ * Max wqe size for rdma read is 512 bytes, so this
+ * limits our max_sge_rd as the wqe needs to fit:
+ * - ctrl segment (16 bytes)
+ * - rdma segment (16 bytes)
+ * - scatter elements (16 bytes each)
+ */
+ MLX5_MAX_SGE_RD = (512 - 16 - 16) / 16
+};
+
struct mlx5_inbox_hdr {
__be16 opcode;
u8 rsvd[4];