linux_dsm_epyc7002/drivers/infiniband
Jason Gunthorpe 3624a8f025 RDMA/uverbs: Use an unambiguous errno for method not supported
Returning EOPNOTSUPP is problematic because it can also be
returned by the method function, and we use it in quite a few
places in drivers these days.

Instead, dedicate EPROTONOSUPPORT to indicate that the ioctl framework
is enabled but the requested object and method are not supported by
the kernel. No other case will return this code, and it lets userspace
know to fall back to write().

grep says we do not use it today in drivers/infiniband subsystem.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Reviewed-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2018-01-25 10:57:29 -05:00
..
core RDMA/uverbs: Use an unambiguous errno for method not supported 2018-01-25 10:57:29 -05:00
hw RDMA/mlx5: Remove redundant allocation warning print 2018-01-19 13:05:39 -07:00
sw RDMA/rxe: Fix rxe_qp_cleanup() 2018-01-18 14:49:20 -05:00
ulp RDMA/srpt: Fix RCU debug build error 2018-01-25 10:17:01 -05:00
Kconfig IB: INFINIBAND should depend on HAS_DMA 2017-11-30 16:01:28 -07:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00