From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by passt.top (Postfix, from userid 1000) id CEC4E5A0640; Sat, 15 Feb 2025 06:23:11 +0100 (CET) From: Stefano Brivio To: passt-dev@passt.top Subject: [PATCH v25 0/2] State migration, somewhat polished Date: Sat, 15 Feb 2025 06:23:09 +0100 Message-ID: <20250215052311.2945229-1-sbrivio@redhat.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: KORGPNZCK2PNQVEQIXC47YF77U5MOQGZ X-Message-ID-Hash: KORGPNZCK2PNQVEQIXC47YF77U5MOQGZ 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: Notable changes compared to v24: - dropped thaw/freeze mechanism, as duplicate keep-alives gave me issues with migration of half-closed connections and in general they proved to be too rigid to quickly fix things as I needed to do. Kept all the fixes, though - fixed error handling on target, e.g. clearing flags, calling flow_cancel() as needed, etc. - added tests for half-closed sockets, fixed headers and descriptions - fix build with musl (1.25), and warnings on i686, armv6l, cppcheck and clang-tidy reports - drop "queue plugging" mechanism: it turns out that the kernel actually generates ACKs from the padding we send to our own receive queue, even in repair mode (!) All tests are happy. This looks quite solid and mergeable to me as it is. Stefano Brivio (2): migrate: Migrate TCP flows test: Add migration tests contrib/selinux/passt.te | 4 +- flow.c | 243 ++++++++++ flow.h | 8 + migrate.c | 10 + passt.c | 6 +- repair.c | 1 - tcp.c | 919 ++++++++++++++++++++++++++++++++++++ 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 | 47 ++ test/migrate/iperf3_out6 | 58 +++ test/migrate/rampstream_in | 12 +- test/migrate/rampstream_out | 8 +- test/run | 34 +- 21 files changed, 1964 insertions(+), 19 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