net/mlx5: Enumerate page fault types
authorMoni Shoua <monis@mellanox.com>
Thu, 8 Nov 2018 19:10:11 +0000 (21:10 +0200)
committerLeon Romanovsky <leonro@mellanox.com>
Mon, 12 Nov 2018 20:20:47 +0000 (22:20 +0200)
Give meaningful names to type of WQE page faults.

Signed-off-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
include/linux/mlx5/device.h

index b4c0457..e326524 100644 (file)
@@ -212,6 +212,13 @@ enum {
        MLX5_PFAULT_SUBTYPE_RDMA = 1,
 };
 
+enum wqe_page_fault_type {
+       MLX5_WQE_PF_TYPE_RMP = 0,
+       MLX5_WQE_PF_TYPE_REQ_SEND_OR_WRITE = 1,
+       MLX5_WQE_PF_TYPE_RESP = 2,
+       MLX5_WQE_PF_TYPE_REQ_READ_OR_ATOMIC = 3,
+};
+
 enum {
        MLX5_PERM_LOCAL_READ    = 1 << 2,
        MLX5_PERM_LOCAL_WRITE   = 1 << 3,