Today's plan for computering with Deutsche Bahn is to look into switching off TCP Segmentation Offload and Scatter-Gather more permanently than with a manual ethtool execution. This is to fix the issue with the Pi 5 networking dropping out on the Ubuntu 26.04 7.0 kernel.
First step is to write an Ansible local fact script which determines whether the Pi is a Pi 5 or a Pi 4. As so often, Raspberry Pi has excellent docs on that already: https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#raspberry-pi-revision-codes