summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorAchiad Shochat <achiad@mellanox.com>2015-12-23 18:47:22 +0200
committerDoug Ledford <dledford@redhat.com>2015-12-23 12:07:37 -0500
commitcb34be6da25f45034ef4ff6103d401b451165e39 (patch)
tree6d3bb467d9bf290f659fb42a1401b6893cfc08b7 /include/linux
parent3f89a643eb29543af0838d37604bbc29a4e1eb60 (diff)
downloadlinux-stable-cb34be6da25f45034ef4ff6103d401b451165e39.tar.gz
linux-stable-cb34be6da25f45034ef4ff6103d401b451165e39.tar.bz2
linux-stable-cb34be6da25f45034ef4ff6103d401b451165e39.zip
IB/mlx5: Set network_hdr_type upon RoCE responder completion
When handling a responder completion, if the link layer is Ethernet, set the work completion network_hdr_type field according to CQE's info and the IB_WC_WITH_NETWORK_HDR_TYPE flag. Signed-off-by: Achiad Shochat <achiad@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mlx5/device.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mlx5/device.h b/include/linux/mlx5/device.h
index 0b473cbfa7ef..84aa7e0e1dfa 100644
--- a/include/linux/mlx5/device.h
+++ b/include/linux/mlx5/device.h
@@ -629,6 +629,12 @@ enum {
};
enum {
+ MLX5_CQE_ROCE_L3_HEADER_TYPE_GRH = 0x0,
+ MLX5_CQE_ROCE_L3_HEADER_TYPE_IPV6 = 0x1,
+ MLX5_CQE_ROCE_L3_HEADER_TYPE_IPV4 = 0x2,
+};
+
+enum {
CQE_L2_OK = 1 << 0,
CQE_L3_OK = 1 << 1,
CQE_L4_OK = 1 << 2,