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>
This commit is contained in:

committed by
Leon Romanovsky

parent
ecc82c53f9
commit
1830ba21b9
@@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user