From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by passt.top (Postfix, from userid 1000) id 940A05A0636; Fri, 14 Feb 2025 00:03:19 +0100 (CET) From: Stefano Brivio To: passt-dev@passt.top Subject: [PATCH v22 0/2] State migration Date: Fri, 14 Feb 2025 00:03:17 +0100 Message-ID: <20250213230319.4149345-1-sbrivio@redhat.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: 5OBPU5NXHJ3IREVAEJDCY66CXVY6YVAX X-Message-ID-Hash: 5OBPU5NXHJ3IREVAEJDCY66CXVY6YVAX X-MailFrom: sbrivio@passt.top X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: David Gibson X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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