diff options
author | Moni Shoua <monis@mellanox.com> | 2018-11-08 21:10:11 +0200 |
---|---|---|
committer | Leon Romanovsky <leonro@mellanox.com> | 2018-11-12 22:20:47 +0200 |
commit | c99fefea2cc907c98e7f39b3571bb697c8d42106 (patch) | |
tree | 934a8c98980bc36208ec5b45ea272c9628233007 /include | |
parent | 27e95603f4dfec470c6d26bea5174aa71b30e971 (diff) | |
download | linux-stable-c99fefea2cc907c98e7f39b3571bb697c8d42106.tar.gz linux-stable-c99fefea2cc907c98e7f39b3571bb697c8d42106.tar.bz2 linux-stable-c99fefea2cc907c98e7f39b3571bb697c8d42106.zip |
net/mlx5: Enumerate page fault types
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mlx5/device.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/mlx5/device.h b/include/linux/mlx5/device.h index b4c0457fbebd..e326524bafcc 100644 --- a/include/linux/mlx5/device.h +++ b/include/linux/mlx5/device.h @@ -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, |