public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH v22 0/2] State migration
@ 2025-02-13 23:03 Stefano Brivio
  2025-02-13 23:03 ` [PATCH v22 1/2] migrate: Migrate TCP flows Stefano Brivio
  2025-02-13 23:03 ` [PATCH v22 2/2] test: Add migration tests Stefano Brivio
  0 siblings, 2 replies; 3+ messages in thread
From: Stefano Brivio @ 2025-02-13 23:03 UTC (permalink / raw)
  To: passt-dev; +Cc: David Gibson

Not many changes compared to v21:

- Drop Bash-only == from tests, restore functionality with dash

- Rebase: this is now based on top of "tcp: Keep updating window and
  checking for socket data after FIN from guest" and "tcp, tcp_splice:
  Don't set SO_SNDBUF and SO_RCVBUF to maximum values"

Still missing:

- tests with half-closed socket

- complete error handling with (maybe?) tcpi_state == 0 as indication
  that we failed to dump a given flow and we just want to restore the
  next one


Stefano Brivio (2):
  migrate: Migrate TCP flows
  test: Add migration tests

 contrib/selinux/passt.te    |   4 +-
 flow.c                      | 260 ++++++++++
 flow.h                      |   8 +
 migrate.c                   |  19 +
 passt.c                     |   6 +-
 repair.c                    |   1 -
 tcp.c                       | 918 ++++++++++++++++++++++++++++++++++++
 tcp_conn.h                  | 103 ++++
 test/lib/layout             |  55 ++-
 test/lib/setup              | 138 +++++-
 test/lib/test               |  48 ++
 test/migrate/basic          |  59 +++
 test/migrate/bidirectional  |  64 +++
 test/migrate/iperf3_bidir6  |  58 +++
 test/migrate/iperf3_in4     |  50 ++
 test/migrate/iperf3_in6     |  58 +++
 test/migrate/iperf3_out4    |  50 ++
 test/migrate/iperf3_out6    |  58 +++
 test/migrate/rampstream_in  |  10 +-
 test/migrate/rampstream_out |   6 +-
 test/run                    |  34 +-
 21 files changed, 1990 insertions(+), 17 deletions(-)
 create mode 100644 test/migrate/basic
 create mode 100644 test/migrate/bidirectional
 create mode 100644 test/migrate/iperf3_bidir6
 create mode 100644 test/migrate/iperf3_in4
 create mode 100644 test/migrate/iperf3_in6
 create mode 100644 test/migrate/iperf3_out4
 create mode 100644 test/migrate/iperf3_out6

-- 
2.43.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-02-13 23:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-13 23:03 [PATCH v22 0/2] State migration Stefano Brivio
2025-02-13 23:03 ` [PATCH v22 1/2] migrate: Migrate TCP flows Stefano Brivio
2025-02-13 23:03 ` [PATCH v22 2/2] test: Add migration tests Stefano Brivio

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).