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.
--- 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.