RDMA/netlink: Remove netlink clients infrastructure
RDMA netlink has a complicated infrastructure for dynamically registering and de-registering netlink clients to the NETLINK_RDMA group. The complicated portion of this code is not widely used because 2 of the 3 current clients are statically compiled together with netlink.c. The infrastructure, therefore, is deemed overkill. Refactor the code to eliminate the dynamically added clients. Now all clients are pre-registered in a client array at compile time, and at run time they merely check-in with the infrastructure to pass their callback table for inclusion in the pre-sized client array. This also allows for future cleanups and removal of unneeded code in the iwcm* netlink handler. Signed-off-by:Leon Romanovsky <leonro@mellanox.com> Reviewed-by:
Chien Tin Tung <chien.tin.tung@intel.com>
Showing
- drivers/infiniband/core/cma.c 2 additions, 4 deletionsdrivers/infiniband/core/cma.c
- drivers/infiniband/core/core_priv.h 2 additions, 2 deletionsdrivers/infiniband/core/core_priv.h
- drivers/infiniband/core/device.c 12 additions, 33 deletionsdrivers/infiniband/core/device.c
- drivers/infiniband/core/iwcm.c 3 additions, 7 deletionsdrivers/infiniband/core/iwcm.c
- drivers/infiniband/core/netlink.c 89 additions, 96 deletionsdrivers/infiniband/core/netlink.c
- include/rdma/rdma_netlink.h 4 additions, 9 deletionsinclude/rdma/rdma_netlink.h
Loading
Please register or sign in to comment