RDMA/core: return -EOPNOSUPP for ODP unsupported device
authorLi Zhijian <lizhijian@fujitsu.com>
Sat, 1 Oct 2022 02:00:45 +0000 (10:00 +0800)
committerLeon Romanovsky <leon@kernel.org>
Wed, 19 Oct 2022 07:02:18 +0000 (10:02 +0300)
commit53c2d5b14a82f6e7f0f8089083972df20e66a354
treecfe4989e21826726805684e336612870986d6cb8
parent26312973bfbc1db24b157797776ee2b5b48f5c50
RDMA/core: return -EOPNOSUPP for ODP unsupported device

ib_reg_mr(3) which is used to register a MR with specific access flags
for specific HCA will set errno when something go wrong.
So, here we should return the specific -EOPNOTSUPP when the being
requested ODP access flag is unsupported by the HCA(such as RXE).

Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
Link: https://lore.kernel.org/r/20221001020045.8324-1-lizhijian@fujitsu.com
Reviewed-by: Zhu Yanjun <zyjzyj2000@gmail.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
include/rdma/ib_verbs.h