Progress! I found that FIREFLY, one of my other lab machines, had the same issue...

@azonenberg@ioc.exchange

Progress! I found that FIREFLY, one of my other lab machines, had the same issue but less severe.

I pulled and reseated the NIC, moved to another slot, cleaned the contacts with IPA, no luck.

But using setpci commands to forcibly downgrade it to gen3 x16 instead of gen4 fixed it. So it seems like due to some combination of card/CPU aging, dirt, loss, or damage somewhere in the system it can't reliably maintain a link at gen4 speeds but works fine at gen3 (and is able to comfortably saturate 40GbE).

Gen3 x16 should be enough to do a single 100G link too, the only thing I really need gen4 for is *dual* 100G which i don't expect to need any time soon.

Now to see if the VM server can be fixed the same way... only problem is the pcie_set_speed.sh script I'm using doesn't seem to work on xcp-ng's old kernel/bash/something.