Skip to content

tipc: simplifications in socket and port layer

Jon Maloy netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7tipc: replace reference table rwlock with spinlocknet/tipc/ref.c+5 -50 replies
2/7tipc: remove redundant 'peer_name' field in struct tipc_socknet/tipc/port.c net/tipc/port.h net/tipc/socket.c+30 -270 replies
3/7tipc: aggregate port structure into socket structurenet/tipc/port.c net/tipc/port.h net/tipc/socket.c +1 more+101 -540 replies
4/7tipc: eliminate upcall function pointers between port and socketnet/tipc/link.c net/tipc/port.c net/tipc/port.h +2 more+34 -580 replies
5/7tipc: eliminate redundant lockingnet/tipc/port.c net/tipc/port.h net/tipc/socket.c+47 -1090 replies
6/7tipc: align usage of variable names and macros in socketnet/tipc/port.c net/tipc/socket.c net/tipc/socket.h+98 -840 replies
7/7tipc: eliminate redundant lookups in registrynet/tipc/port.c net/tipc/port.h net/tipc/ref.c +2 more+50 -640 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchYing XueErik Hugne
1/7R-b R-b
2/7R-b R-b
3/7R-b R-b
4/7R-b R-b
5/7R-b R-b
6/7R-b R-b
7/7R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/7] tipc: simplifications in socket and port layer

After the removal of the tipc native API the relation between tipc_port and its API types is strictly one-to-one, i.e, the latter can now only be a socket API. This change opens up for simplifications both in the code, data and locking structure.

We start with this series, where we ensure that port and socket structures are co-allocated. Note that the first commit in the series is unrelated to the above.

Jon Maloy (7):
tipc: replace reference table rwlock with spinlock
tipc: remove redundant 'peer_name' field in struct tipc_sock
tipc: aggregate port structure into socket structure
tipc: eliminate upcall function pointers between port and socket
tipc: eliminate redundant locking
tipc: align usage of variable names and macros in socket
tipc: eliminate redundant lookups in registry

 net/tipc/link.c   |    4 +-
 net/tipc/port.c   |  208 +++++++++++-----------------------------------
 net/tipc/port.h   |  112 ++++++++++++++++---------
 net/tipc/ref.c    |   27 ++----
 net/tipc/ref.h    |    1 -
 net/tipc/socket.c |  240 +++++++++++++++++++++++++----------------------------
 net/tipc/socket.h |   72 ++++++++++++++++
 7 files changed, 314 insertions(+), 350 deletions(-)
 create mode 100644 net/tipc/socket.h
Signature · 1 line
1.7.9.5