alistair23-linux/net/tipc
Richard Alpe 0655f6a863 tipc: add bearer disable/enable to new netlink api
A new netlink API for tipc that can disable or enable a tipc bearer.

The new API is separated from the old API because of a bug in the
user space client (tipc-config). The problem is that older versions
of tipc-config has a very low receive limit and adding commands to
the legacy genl_opts struct causes the ctrl_getfamily() response
message to grow, subsequently breaking the tool.

The new API utilizes netlink policies for input validation. Where the
top-level netlink attributes are tipc-logical entities, like bearer.
The top level entities then contain nested attributes. In this case
a name, nested link properties and a domain.

Netlink commands implemented in this patch:
TIPC_NL_BEARER_ENABLE
TIPC_NL_BEARER_DISABLE

Netlink logical layout of bearer enable message:
-> bearer
    -> name
    [ -> domain ]
    [
    -> properties
        -> priority
    ]

Netlink logical layout of bearer disable message:
-> bearer
    -> name

Signed-off-by: Richard Alpe <richard.alpe@ericsson.com>
Reviewed-by: Erik Hugne <erik.hugne@ericsson.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Acked-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-11-21 15:01:29 -05:00
..
addr.c
addr.h
bcast.c tipc: fix bug in multicast congestion handling 2014-10-07 14:50:15 -04:00
bcast.h tipc: fix bug in multicast congestion handling 2014-10-07 14:50:15 -04:00
bearer.c tipc: add bearer disable/enable to new netlink api 2014-11-21 15:01:29 -05:00
bearer.h tipc: add bearer disable/enable to new netlink api 2014-11-21 15:01:29 -05:00
config.c tipc: use registry when scanning sockets 2014-08-23 11:18:34 -07:00
config.h
core.c tipc: remove files ref.h and ref.c 2014-08-23 11:18:35 -07:00
core.h tipc: add bearer disable/enable to new netlink api 2014-11-21 15:01:29 -05:00
discover.c
discover.h
eth_media.c
ib_media.c
Kconfig
link.c tipc: add bearer disable/enable to new netlink api 2014-11-21 15:01:29 -05:00
link.h tipc: add bearer disable/enable to new netlink api 2014-11-21 15:01:29 -05:00
log.c
Makefile tipc: remove files ref.h and ref.c 2014-08-23 11:18:35 -07:00
msg.c tipc: spelling errors 2014-10-30 16:56:41 -04:00
msg.h tipc: use pseudo message to wake up sockets after link congestion 2014-08-23 11:18:33 -07:00
name_distr.c tipc: fix sparse warnings 2014-09-10 14:00:58 -07:00
name_distr.h tipc: add name distributor resiliency queue 2014-09-01 17:51:48 -07:00
name_table.c tipc: add name distributor resiliency queue 2014-09-01 17:51:48 -07:00
name_table.h
net.c tipc: remove include file port.h 2014-08-23 11:18:35 -07:00
net.h
netlink.c tipc: add bearer disable/enable to new netlink api 2014-11-21 15:01:29 -05:00
netlink.h tipc: add bearer disable/enable to new netlink api 2014-11-21 15:01:29 -05:00
node.c tipc: fix a potential deadlock 2014-10-21 15:28:15 -04:00
node.h tipc: fix a potential deadlock 2014-10-21 15:28:15 -04:00
node_subscr.c
node_subscr.h
server.c
server.h
socket.c net: Add and use skb_copy_datagram_msg() helper. 2014-11-05 16:46:40 -05:00
socket.h tipc: merge struct tipc_port into struct tipc_sock 2014-08-23 11:18:35 -07:00
subscr.c tipc: remove include file port.h 2014-08-23 11:18:35 -07:00
subscr.h
sysctl.c tipc: add name distributor resiliency queue 2014-09-01 17:51:48 -07:00