tipc: Merge port and socket layer code
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest17 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/17 | tipc: fix message importance range checknet/ net/ | +4 | 0 replies | |
| 2/17 | tipc: Fix build.net/ | +2 | 3 replies | |
| 3/17 | tipc: introduce new function tipc_msg_create()net/ net/ | +33 | 0 replies | |
| 4/17 | tipc: use pseudo message to wake up sockets after link congestionnet/ net/ net/ +9 more | +99 | 0 replies | |
| 5/17 | tipc: use message to abort connections when losing contact to nodenet/ net/ net/ | +85 | 0 replies | |
| 6/17 | tipc: clean up socket timer functionnet/ net/ | +69 | 0 replies | |
| 7/17 | tipc: eliminate function tipc_port_shutdown()net/ net/ net/ | +11 | 0 replies | |
| 8/17 | tipc: eliminate port_connect()/port_disconnect() functionsnet/ net/ net/ | +37 | 0 replies | |
| 9/17 | tipc: redefine message acknowledge functionnet/ net/ net/ | +20 | 0 replies | |
| 10/17 | tipc: eliminate functions tipc_port_init and tipc_port_destroynet/ net/ net/ | +42 | 0 replies | |
| 11/17 | tipc: use registry when scanning socketsnet/ net/ net/ +5 more | +133 | 0 replies | |
| 12/17 | tipc: replace port pointer with socket pointer in registrynet/ net/ | +11 | 0 replies | |
| 13/17 | tipc: remove port_locknet/ net/ net/ +1 more | +108 | 0 replies | |
| 14/17 | tipc: remove source file port.cnet/ net/ net/ | +97 | 0 replies | |
| 15/17 | tipc: remove include file port.hnet/ net/ net/ +6 more | +121 | 0 replies | |
| 16/17 | tipc: remove files ref.h and ref.cnet/ net/ net/ +3 more | +250 | 0 replies | |
| 17/17 | tipc: merge struct tipc_port into struct tipc_socknet/ net/ | +206 | 0 replies |
Reviews trailers per patch
15 of 17 patches have a Reviewed-by or Acked-by.
| Patch | Erik Hugne | Ying Xue |
|---|---|---|
| 1/17 | ||
| 2/17 | ||
| 3/17 | R-b | R-b |
| 4/17 | R-b | R-b |
| 5/17 | R-b | R-b |
| 6/17 | R-b | R-b |
| 7/17 | R-b | R-b |
| 8/17 | R-b | R-b |
| 9/17 | R-b | R-b |
| 10/17 | R-b | R-b |
| 11/17 | R-b | R-b |
| 12/17 | R-b | R-b |
| 13/17 | R-b | R-b |
| 14/17 | R-b | R-b |
| 15/17 | R-b | R-b |
| 16/17 | R-b | R-b |
| 17/17 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net-next 00/17] tipc: Merge port and socket layer code
After the removal of the TIPC native interface, there is no reason to keep a distinction between a "generic" port layer and a "specific" socket layer in the code. Throughout the last months, we have posted several series that aimed at facilitating removal of the port layer, and in particular the port_lock spinlock, which in reality duplicates the role normally kept by lock_sock()/bh_lock_sock().
In this series, we finalize this work, by making a significant number of changes to the link, node, port and socket code, all with the aim of reducing dependencies between the layers. In the final commits, we then remove the port spinlock, port.c and port.h altogether.
After this series, we have a socket layer that has only few dependencies to the rest of the stack, so that it should be possible to continue cleanups of its code without significantly affecting other code.
It should be noted that commit ##1 and 2 are already in 'net' (ac32c7f705692b92fe12dcbe88fe87136fdfff6f and 02784f1b05b8f241c8180af88869e717e2758593), but not yet in net-next. Since they are prerequisites for the rest of the series to apply, I prepend them to the series.
David S. Miller (1):
tipc: Fix build.
Erik Hugne (1):
tipc: fix message importance range check
Jon Maloy (15):
tipc: introduce new function tipc_msg_create()
tipc: use pseudo message to wake up sockets after link congestion
tipc: use message to abort connections when losing contact to node
tipc: clean up socket timer function
tipc: eliminate function tipc_port_shutdown()
tipc: eliminate port_connect()/port_disconnect() functions
tipc: redefine message acknowledge function
tipc: eliminate functions tipc_port_init and tipc_port_destroy
tipc: use registry when scanning sockets
tipc: replace port pointer with socket pointer in registry
tipc: remove port_lock
tipc: remove source file port.c
tipc: remove include file port.h
tipc: remove files ref.h and ref.c
tipc: merge struct tipc_port into struct tipc_sock
net/tipc/Makefile | 2 +- net/tipc/bcast.c | 8 +- net/tipc/config.c | 4 +- net/tipc/core.c | 9 +- net/tipc/core.h | 5 +- net/tipc/link.c | 120 +++---- net/tipc/link.h | 7 +- net/tipc/msg.c | 38 ++- net/tipc/msg.h | 5 + net/tipc/name_table.c | 1 - net/tipc/net.c | 3 +- net/tipc/node.c | 90 +++++ net/tipc/node.h | 7 +- net/tipc/port.c | 514 ---------------------------- net/tipc/port.h | 187 ----------- net/tipc/ref.c | 266 --------------- net/tipc/ref.h | 48 --- net/tipc/socket.c | 884 +++++++++++++++++++++++++++++++++++++++++-------- net/tipc/socket.h | 55 +-- net/tipc/subscr.c | 1 - 20 files changed, 956 insertions(+), 1298 deletions(-) delete mode 100644 net/tipc/port.c delete mode 100644 net/tipc/port.h delete mode 100644 net/tipc/ref.c delete mode 100644 net/tipc/ref.h
Signature · 7 lines
1.7.9.5 ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/