diff options
| author | Richard Alpe <[email protected]> | 2014-11-20 09:29:08 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2014-11-21 20:01:29 +0000 |
| commit | 35b9dd7607f049466a66427e58818b29aeae9ea7 (patch) | |
| tree | a196d3a4323d4fe9bf265858fad61e7b5aebcb85 /net/tipc/netlink.c | |
| parent | tipc: add bearer disable/enable to new netlink api (diff) | |
| download | kernel-35b9dd7607f049466a66427e58818b29aeae9ea7.tar.gz kernel-35b9dd7607f049466a66427e58818b29aeae9ea7.zip | |
tipc: add bearer get/dump to new netlink api
Add TIPC_NL_BEARER_GET command to the new tipc netlink API.
This command supports dumping all data about all bearers or getting
all information about a specific bearer.
The information about a bearer includes name, link priorities and
domain.
Netlink logical layout of bearer get message:
-> bearer
-> name
Netlink logical layout of returned bearer information:
-> bearer
-> name
-> link properties
-> priority
-> tolerance
-> window
-> domain
Signed-off-by: Richard Alpe <[email protected]>
Reviewed-by: Erik Hugne <[email protected]>
Reviewed-by: Jon Maloy <[email protected]>
Acked-by: Ying Xue <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/netlink.c')
| -rw-r--r-- | net/tipc/netlink.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/tipc/netlink.c b/net/tipc/netlink.c index af506ae0a129..0c00422512fa 100644 --- a/net/tipc/netlink.c +++ b/net/tipc/netlink.c @@ -112,6 +112,12 @@ static const struct genl_ops tipc_genl_v2_ops[] = { .cmd = TIPC_NL_BEARER_ENABLE, .doit = tipc_nl_bearer_enable, .policy = tipc_nl_policy, + }, + { + .cmd = TIPC_NL_BEARER_GET, + .doit = tipc_nl_bearer_get, + .dumpit = tipc_nl_bearer_dump, + .policy = tipc_nl_policy, } }; |
