On 2026/11/04 12:30, Scott Bennett wrote: > On 11/4/26 12:03, Theo de Raadt wrote: > > + * 5700 B0 and 57765 B0 chips do not support checksumming correctly > > + * due to hardware bugs. > > > > Is there a document that says is it is broken? > > Not that I know of, sorry. Disabling checksumming just makes the interface > stable for me.
it may be that disabling hw checksum is the only thing that can be done, but there is a chance that this just masks an issue by punting checksum to the OS, after PCIE transfers are done, which could mask the problem (i.e. errors still occur but detected by the OS rather than allowing the incorrect data through to userland). searching for issues relating to 57765 B0 i found this, https://www.spinics.net/lists/netdev/msg164901.html we do have some code relating to FTS setup but it looks fairly different to what was done there, wondering if anything like that might be relevant.. > --- sys/dev/pci/if_bge.c > +++ sys/dev/pci/if_bge.c > @@ -3086,7 +3086,8 @@ bge_attach(struct device *parent, struct device *self, > * offloading is enabled. Generating UDP checksum value 0 is > * a violation of RFC 768. > */ > - if (sc->bge_chipid != BGE_CHIPID_BCM5700_B0) > + if (sc->bge_chipid != BGE_CHIPID_BCM5700_B0 && > + sc->bge_chipid != BGE_CHIPID_BCM57765_B0) > ifp->if_capabilities |= IFCAP_CSUM_IPv4 | IFCAP_CSUM_TCPv4; > > if (BGE_IS_JUMBO_CAPABLE(sc)) > @@ -3647,7 +3648,8 @@ bge_rxeof(struct bge_softc *sc) > void > bge_rxcsum(struct bge_softc *sc, struct bge_rx_bd *cur_rx, struct mbuf *m) > { > - if (sc->bge_chipid == BGE_CHIPID_BCM5700_B0) { > + if (sc->bge_chipid == BGE_CHIPID_BCM5700_B0 || > + sc->bge_chipid == BGE_CHIPID_BCM57765_B0) { > /* > * 5700 B0 chips do not support checksumming correctly due > * to hardware bugs. > >
