RDMA/netlink: Add flag to consolidate common handling
authorLeon Romanovsky <leonro@mellanox.com>
Mon, 12 Jun 2017 13:00:19 +0000 (16:00 +0300)
committerLeon Romanovsky <leon@kernel.org>
Thu, 10 Aug 2017 10:18:45 +0000 (13:18 +0300)
commite3a2b93dddad315f01a4b67faee738954c084072
tree6194df37cb3f0e4eda9fbff7e0c7bd4c39733125
parent5d7ee40907507e8439044f415f3e1de216a26dea
RDMA/netlink: Add flag to consolidate common handling

Add ability to provide flags to control RDMA netlink callbacks
and convert addr.c and sa_query.c to be first users of such
infrastructure. It allows to move their CAP_NET_ADMIN checks
into netlink core.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
drivers/infiniband/core/addr.c
drivers/infiniband/core/device.c
drivers/infiniband/core/netlink.c
drivers/infiniband/core/sa_query.c
include/rdma/rdma_netlink.h