Skip to content

ipvs: read conn fields during sync atomically

Julian Anastasov lvs-devel netfilter-devel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 0 repliesNew
  2. v22 patches 1 replySuperseded

Changes in v3 from the cover letter

* as v1 of patch 2 is applied, make v3 relative to the applied commit and rename it

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ipvs: update flags and seqs in backup server under locknet/netfilter/ipvs/ip_vs_sync.c+6 -30 replies
2/2ipvs: read flags and seqs in master atomicallynet/netfilter/ipvs/ip_vs_sync.c+20 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH nf v3 0/2] ipvs: read conn fields during sync atomically

Hello,

The following are two patches that ensure atomic access
for the connection fields in the backup and master servers.

The first patch makes sure the connection fields such as
flags, sync_conn_opt (seqs), state, old_state and timeout are updated atomically in the backup server.

As for the master server, the second patch takes snapshot
of the flags and seqs under lock before sending. This is to ensure we send valid seqs if their presence is marked in the flags we send.

Changes in v2:
* add patch 1
* patch 2: read seqs with flags under lock

Changes in v3:
* as v1 of patch 2 is applied, make v3 relative to the applied commit and rename it

Link to v1:
https://lore.kernel.org/all/[email protected]/

Link to v2:
https://lore.kernel.org/all/[email protected]/

Julian Anastasov (2):
ipvs: update flags and seqs in backup server under lock
ipvs: read flags and seqs in master atomically

 net/netfilter/ipvs/ip_vs_sync.c | 32 ++++++++++++++++++++++++++------
 1 file changed, 26 insertions(+), 6 deletions(-)
Signature · 1 line
2.56.0