switch-linux/net/tipc
Jon Paul Maloy dadebc0029 tipc: eliminate port_connect()/port_disconnect() functions
tipc_port_connect()/tipc_port_disconnect() are remnants of the obsolete
native API. Their only task is to grab port_lock and call the functions
__tipc_port_connect()/__tipc_port_disconnect() respectively, which will
perform the actual state change.

Since socket/port exection now is single-threaded the use of port_lock
is not needed any more, so we can safely replace the two functions with
their lock-free counterparts.

In this commit, we remove the two functions. Furthermore, the contents
of __tipc_port_disconnect() is so trivial that we choose to eliminate
that function too, expanding its functionality into tipc_shutdown().
__tipc_port_connect() is simplified, moved to socket.c, and given the
more correct name tipc_sk_finish_conn(). Finally, we eliminate the
function auto_connect(), and expand its contents into filter_connect().

Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Reviewed-by: Erik Hugne <erik.hugne@ericsson.com>
Reviewed-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-08-23 11:18:34 -07:00
..
addr.c
addr.h
bcast.c tipc: use pseudo message to wake up sockets after link congestion 2014-08-23 11:18:33 -07:00
bcast.h
bearer.c
bearer.h
config.c
config.h
core.c
core.h tipc: use pseudo message to wake up sockets after link congestion 2014-08-23 11:18:33 -07:00
discover.c
discover.h
eth_media.c
ib_media.c
Kconfig
link.c tipc: use pseudo message to wake up sockets after link congestion 2014-08-23 11:18:33 -07:00
link.h tipc: use pseudo message to wake up sockets after link congestion 2014-08-23 11:18:33 -07:00
log.c
Makefile
msg.c tipc: use pseudo message to wake up sockets after link congestion 2014-08-23 11:18:33 -07: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
name_distr.h
name_table.c
name_table.h
net.c
net.h
netlink.c
node.c tipc: use message to abort connections when losing contact to node 2014-08-23 11:18:33 -07:00
node.h tipc: use message to abort connections when losing contact to node 2014-08-23 11:18:33 -07:00
node_subscr.c
node_subscr.h
port.c tipc: eliminate port_connect()/port_disconnect() functions 2014-08-23 11:18:34 -07:00
port.h tipc: eliminate port_connect()/port_disconnect() functions 2014-08-23 11:18:34 -07:00
ref.c
ref.h
server.c
server.h
socket.c tipc: eliminate port_connect()/port_disconnect() functions 2014-08-23 11:18:34 -07:00
socket.h tipc: use pseudo message to wake up sockets after link congestion 2014-08-23 11:18:33 -07:00
subscr.c
subscr.h
sysctl.c