RDMA/netlink: Add and implement doit netlink callback
authorLeon Romanovsky <leonro@mellanox.com>
Thu, 15 Jun 2017 09:46:33 +0000 (12:46 +0300)
committerLeon Romanovsky <leon@kernel.org>
Thu, 10 Aug 2017 10:21:55 +0000 (13:21 +0300)
commit1830ba21b9a475cfc6159e6cfe532c75fe7682a4
tree9ef08711eecc814a53b2bc2ebf6f7b212183ac05
parentecc82c53f9a4ce08ba7df626a4262c86841ced8f
RDMA/netlink: Add and implement doit netlink callback

The .doit callback is used by netlink core to differentiate
between get and set operations. Common convention is to use
that call for command operations like (SET, ADD, e.t.c.) and/or
access without NLF_M_DUMP flag.

This commit adds proper declaration and implementation
to RDMA netlink.

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