tipc: add bearer get/dump to new netlink api
authorRichard Alpe <[email protected]>
Thu, 20 Nov 2014 09:29:08 +0000 (10:29 +0100)
committerDavid S. Miller <[email protected]>
Fri, 21 Nov 2014 20:01:29 +0000 (15:01 -0500)
commit35b9dd7607f049466a66427e58818b29aeae9ea7
treea196d3a4323d4fe9bf265858fad61e7b5aebcb85
parent0655f6a8635b1b66f2434d5556b1044c14b1ccaf
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]>
include/uapi/linux/tipc_netlink.h
net/tipc/bearer.c
net/tipc/bearer.h
net/tipc/netlink.c
net/tipc/netlink.h