mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Reviewed-by: Steve Wise <[email protected]>
This commit is contained in:
parent
ecc82c53f9
commit
1830ba21b9
2 changed files with 16 additions and 5 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue