Skip to content

tipc: improve broadcast implementation

Jon Maloy netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16tipc: move bcast definitions to bcast.cnet/tipc/bcast.c net/tipc/bcast.h net/tipc/core.h +2 more+110 -1070 replies
2/16tipc: move broadcast link lock to struct tipc_netnet/tipc/bcast.c net/tipc/bcast.h net/tipc/core.h+14 -90 replies
3/16tipc: create broadcast transmission link at namespace initnet/tipc/bcast.c net/tipc/bcast.h net/tipc/core.c +1 more+24 -70 replies
4/16tipc: make link implementation independent from struct tipc_bearernet/tipc/link.c net/tipc/link.h net/tipc/node.c+36 -230 replies
5/16tipc: use explicit allocation of broadcast send linknet/tipc/bcast.c net/tipc/bcast.h net/tipc/link.c +1 more+79 -450 replies
6/16tipc: make struct tipc_link generic to support broadcastnet/tipc/link.c net/tipc/link.h net/tipc/msg.h+34 -120 replies
7/16tipc: let broadcast transmission use new link transmit functionnet/tipc/bcast.c net/tipc/link.c net/tipc/link.h +2 more+85 -570 replies
8/16tipc: introduce capability bit for broadcast synchronizationnet/tipc/bcast.c net/tipc/discover.c net/tipc/link.c +3 more+23 -70 replies
9/16tipc: let broadcast packet reception use new link receive functionnet/tipc/bcast.c net/tipc/bcast.h net/tipc/core.h +6 more+615 -2200 replies
10/16tipc: simplify bearer level broadcastnet/tipc/bcast.c net/tipc/bcast.h net/tipc/bearer.c +2 more+151 -450 replies
11/16tipc: introduce jumbo frame support for broadcastnet/tipc/bcast.c net/tipc/bcast.h net/tipc/bearer.c +4 more+39 -60 replies
12/16tipc: let neighbor discoverer tranmsit consumable buffersnet/tipc/bearer.c net/tipc/bearer.h net/tipc/discover.c +1 more+38 -120 replies
13/16tipc: eliminate redundant buffer cloning at transmissionnet/tipc/bearer.c net/tipc/udp_media.c+15 -280 replies
14/16tipc: eliminate link's reference to owner nodenet/tipc/bcast.c net/tipc/link.c net/tipc/link.h +1 more+29 -220 replies
15/16tipc: ensure binding table initial distribution is sent via first linknet/tipc/name_distr.c net/tipc/node.c+3 -30 replies
16/16tipc: clean up unused code and structuresnet/tipc/bcast.c net/tipc/bcast.h net/tipc/bearer.c +6 more+30 -11040 replies

Reviews trailers per patch

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

PatchYing Xue
1/16R-b
2/16R-b
3/16R-b
4/16R-b
5/16R-b
6/16R-b
7/16R-b
8/16R-b
9/16R-b
10/16R-b
11/16R-b
12/16R-b
13/16R-b
14/16R-b
15/16R-b
16/16R-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 00/16] tipc: improve broadcast implementation

The TIPC broadcast link implementation is currently complex and hard to follow. It also incurs some amount of code and structure duplication, something that can be reduced significantly with a little effort.

This commit series introduces a number of improvements which address both the locking structure, the code/structure duplication issue, and the overall readbility of the code.

The series consists of three main parts:

1-7: Adaptation to the new link structure, and preparation for the next
step. In particular, we want the broadcast transmission link to have a life cycle that is longer than any of its potential (unicast and broadcast receive links) users. This eliminates the need to always test for the presence of this link before accessing it.

8-10: This is what is really new in this series. Commit #9 is by far
the largest and most important one, because it moves most of the broadcast functionality into link.c, partially reusing the fields and functionality of the unicast link. The removal of the "node_map" infrastructure in commit #10 is also an important achievement.

11-16: Some improvements leveraging the changes made in the previous
commits.

The series needs commit 53387c4e22ac ("tipc: extend broadcast link window size") and commit e53567948f82 ("tipc: conditionally expand buffer headroom over udp tunnel") which are both present in 'net' but not yet in 'net-next', to apply cleanly.

Jon Maloy (16):
tipc: move bcast definitions to bcast.c
tipc: move broadcast link lock to struct tipc_net
tipc: create broadcast transmission link at namespace init
tipc: make link implementation independent from struct tipc_bearer
tipc: use explicit allocation of broadcast send link
tipc: make struct tipc_link generic to support broadcast
tipc: let broadcast transmission use new link transmit function
tipc: introduce capability bit for broadcast synchronization
tipc: let broadcast packet reception use new link receive function
tipc: simplify bearer level broadcast
tipc: introduce jumbo frame support for broadcast
tipc: let neighbor discoverer tranmsit consumable buffers
tipc: eliminate redundant buffer cloning at transmission
tipc: eliminate link's reference to owner node
tipc: ensure binding table initial distribution is sent via first link
tipc: clean up unused code and structures

 net/tipc/bcast.c      | 988 ++++++++++++--------------------------------------
 net/tipc/bcast.h      | 122 ++-----
 net/tipc/bearer.c     |  94 +++--
 net/tipc/bearer.h     |   9 +-
 net/tipc/core.c       |   9 +
 net/tipc/core.h       |  12 +-
 net/tipc/discover.c   |  28 +-
 net/tipc/link.c       | 775 +++++++++++++++++++++------------------
 net/tipc/link.h       |  76 ++--
 net/tipc/msg.c        |  20 +-
 net/tipc/msg.h        |   8 +-
 net/tipc/name_distr.c |   4 +-
 net/tipc/net.c        |   6 +-
 net/tipc/node.c       | 184 ++++++----
 net/tipc/node.h       |  41 +--
 net/tipc/socket.c     |   4 +-
 net/tipc/udp_media.c  |  12 +-
 17 files changed, 1005 insertions(+), 1387 deletions(-)
Signature · 1 line
1.9.1