> - [Medium] The patch may leave the same race open on the RX side.
RX was checked separately with a TCP request/response test that leaves gaps between requests, so a frame stranded at the end of a burst would only be picked up by the sender's loss probe: no stranded descriptors in 20000 receive bursts. v2 says so in the commit message.
> - [Low] The flush read added to rtl_tx() is `RTL_R8(tp, > IMR_CLEAR_VEC_MAP_REG)`, an 8-bit read of register 0x0d00.
v1 read IMR_CLEAR_VEC_MAP_REG because that is the read Realtek's own driver does in the same place, and I kept it as is. Any register read works here, though: with the burst test that showed 19 TX timeouts in 31 bursts without the fix, reading ISR_VEC_MAP_REG and rtl_pci_commit() (ChipCmd) both gave none. rtl_pci_commit() is documented for committing a preceding write, not read. So v2 reads ISR_VEC_MAP_REG, the vector-map counterpart of the IntrStatus read in the legacy handler.
> - [High] This problem wasn't introduced by this patch, but it sits in the > loop the patch modifies.
Agreed that it is independent of this fix. I can send a separate patch adding the read barrier if that is wanted. pw-bot: cr