]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: convert legacy nl socket dump to nl compat
authorRichard Alpe <richard.alpe@ericsson.com>
Mon, 9 Feb 2015 08:50:11 +0000 (09:50 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Feb 2015 21:20:48 +0000 (13:20 -0800)
commitc0e835756c96de4463135f71fe34b3f3dc2a4cea
tree6ffa649e50216a6a894cf4fe0143b587ee2e190d
parentd09c5a7e4f099bea4187812f68f606bb24bbfef5
tipc: convert legacy nl socket dump to nl compat

Convert socket (port) listing to compat dumpit call. If a socket
(port) has publications a second dumpit call is issued to collect them
and format then into the legacy buffer before continuing to process
the sockets (ports).

Command converted in this patch:
TIPC_CMD_SHOW_PORTS

Signed-off-by: Richard Alpe <richard.alpe@ericsson.com>
Reviewed-by: Erik Hugne <erik.hugne@ericsson.com>
Reviewed-by: Ying Xue <ying.xue@windriver.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/config.c
net/tipc/netlink_compat.c
net/tipc/socket.c
net/tipc/socket.h