iproute2/rdma
Leon Romanovsky f93134841e rdma: Relax requirement to have PID for HW objects
RDMA has weak connection between PIDs and HW objects, because
the latter tied to file descriptors for their lifetime management.

The outcome of such connection is that for the following scenario,
the returned PID will be 0 (not-valid):
 1. Create FD and context
 2. Share it with ephemeral child
 3. Create any object and exit that child

This flow was revealed in testing environment and of course real users
are not running such scenario, because it makes no sense at all in RDMA
world.

Let's do two changes in the code to support such workflow anyway:
 1. Remove need to provide PID/kernel name. Code already supports it,
    just need to remove extra validation.
 2. Ball-out in case PID is 0.

Link: https://lore.kernel.org/linux-rdma/20191002123245.18153-2-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
2019-10-07 21:54:30 +00:00
..
include/uapi/rdma uapi: rdma netlink.h update 2019-07-16 11:58:44 -07:00
.gitignore rdma: Add basic infrastructure for RDMA tool 2017-08-21 17:07:44 -07:00
Makefile rdma: Add "stat qp show" support 2019-07-19 10:51:13 -07:00
dev.c rdma: Control CQ adaptive moderation (DIM) 2019-08-02 09:30:56 -07:00
link.c rdma: add 'link add/delete' commands 2019-04-03 12:04:30 -07:00
rdma.c rdma: Add "stat qp show" support 2019-07-19 10:51:13 -07:00
rdma.h rdma: Control CQ adaptive moderation (DIM) 2019-08-02 09:30:56 -07:00
res-cmid.c rdma: Relax requirement to have PID for HW objects 2019-10-07 21:54:30 +00:00
res-cq.c rdma: Relax requirement to have PID for HW objects 2019-10-07 21:54:30 +00:00
res-mr.c rdma: Relax requirement to have PID for HW objects 2019-10-07 21:54:30 +00:00
res-pd.c rdma: Relax requirement to have PID for HW objects 2019-10-07 21:54:30 +00:00
res-qp.c rdma: Relax requirement to have PID for HW objects 2019-10-07 21:54:30 +00:00
res.c rdma: Relax requirement to have PID for HW objects 2019-10-07 21:54:30 +00:00
res.h rdma: add helper rd_sendrecv_msg() 2019-04-03 12:04:25 -07:00
stat.c rdma: Add default counter show support 2019-07-19 10:51:13 -07:00
sys.c rdma: Add an option to query,set net namespace sharing sys parameter 2019-05-31 15:10:29 -07:00
utils.c rdma: Control CQ adaptive moderation (DIM) 2019-08-02 09:30:56 -07:00