diff options
author | Leon Romanovsky <leonro@mellanox.com> | 2017-06-15 12:46:33 +0300 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2017-08-10 13:21:55 +0300 |
commit | 1830ba21b9a475cfc6159e6cfe532c75fe7682a4 (patch) | |
tree | 9ef08711eecc814a53b2bc2ebf6f7b212183ac05 /include/rdma/rdma_netlink.h | |
parent | ecc82c53f9a4ce08ba7df626a4262c86841ced8f (diff) | |
download | linux-1830ba21b9a475cfc6159e6cfe532c75fe7682a4.tar.bz2 |
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>
Diffstat (limited to 'include/rdma/rdma_netlink.h')
-rw-r--r-- | include/rdma/rdma_netlink.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/rdma/rdma_netlink.h b/include/rdma/rdma_netlink.h index 92f8832297ab..e25bf1988846 100644 --- a/include/rdma/rdma_netlink.h +++ b/include/rdma/rdma_netlink.h @@ -6,6 +6,8 @@ #include <uapi/rdma/rdma_netlink.h> struct rdma_nl_cbs { + int (*doit)(struct sk_buff *skb, struct nlmsghdr *nlh, + struct netlink_ext_ack *extack); int (*dump)(struct sk_buff *skb, struct netlink_callback *nlcb); u8 flags; }; |