From: Ying X. <yin...@wi...> - 2012-09-26 08:21:02
|
Jon and Erik, Comparing with last version, the following changes have been made: - Add necessary descriptions for new defined structures and functions by Erik's comments; - Update the header of the first patch header by Erik's suggestion; - Enhance allocation of connection ID to avoid possible duplication; - Make server support connectionless connection; - Convert configuration server with the interface of new server; - Remove implementation associated with user port; - Convert config_lock to mutex lock Until now all native user port code is purged completely. Therefor, after this time, I believe, TIPC stack code becomes more clean and more understandable. I have tested them with tipcTS&tipcTC as well as test cases in tipcutils package for a while, and no any exception happens. So please review them again. Lastly I appreciate Erik to give me valuable suggestions and find some potential problems. PS. Based on this series, I have implemented a prototype to remove port lock and aggregate tipc_port structure as a field inside tipc_sock, however, it's still unstable due to some unknown reasons. Once they are settled down, I will submit them in next step. Ying Xue (6): tipc: introduce new TIPC server infrastructure tipc: convert topology server with new server facility tipc: add lock nesting notation to quiet lockdep warning tipc: convert configuration server with new sever facility tipc: remove facilities of user port tipc: convert config_lock from spin lock to mutex net/tipc/Makefile | 2 +- net/tipc/config.c | 116 ++++------ net/tipc/core.c | 10 +- net/tipc/link.c | 18 +- net/tipc/msg.c | 13 +- net/tipc/msg.h | 2 +- net/tipc/port.c | 265 +-------------------- net/tipc/port.h | 62 +----- net/tipc/server.c | 686 +++++++++++++++++++++++++++++++++++++++++++++++++++++ net/tipc/server.h | 103 ++++++++ net/tipc/socket.c | 8 +- net/tipc/subscr.c | 318 ++++++++----------------- net/tipc/subscr.h | 19 ++- 13 files changed, 981 insertions(+), 641 deletions(-) create mode 100644 net/tipc/server.c create mode 100644 net/tipc/server.h |