diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2020-12-27 00:21:33 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2020-12-27 00:21:33 +0000 |
commit | 8fa9e74ce4e8ab41373731425954fcfdc9a5bf49 (patch) | |
tree | 7d8cb8a14ba4beace240c689cd8040f626121ba8 /sys/dev/pci | |
parent | e953d1805d42da3c5150514c14829033babaf5b8 (diff) |
disable timestamping a little bit harder to avoid divide by 0.
hrvoje popovski reports the current code faults on some boxes. i'm
working on it, but the code isn't being used right now.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_mcx.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/pci/if_mcx.c b/sys/dev/pci/if_mcx.c index 63902a2dc2d..9e2eea73661 100644 --- a/sys/dev/pci/if_mcx.c +++ b/sys/dev/pci/if_mcx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_mcx.c,v 1.88 2020/12/27 00:14:52 dlg Exp $ */ +/* $OpenBSD: if_mcx.c,v 1.89 2020/12/27 00:21:32 dlg Exp $ */ /* * Copyright (c) 2017 David Gwynne <dlg@openbsd.org> @@ -6659,7 +6659,9 @@ mcx_calibrate_first(struct mcx_softc *sc) splx(s); c->c_ratio = 0; +#ifdef notyet timeout_add_sec(&sc->sc_calibrate, MCX_CALIBRATE_FIRST); +#endif } #define MCX_TIMESTAMP_SHIFT 24 @@ -6750,6 +6752,7 @@ mcx_process_rx(struct mcx_softc *sc, struct mcx_rx *rx, } #endif +#ifdef notyet if (ISSET(sc->sc_ac.ac_if.if_flags, IFF_LINK0) && c->c_ratio) { uint64_t t = bemtoh64(&cqe->cq_timestamp); t -= c->c_timestamp; @@ -6760,6 +6763,7 @@ mcx_process_rx(struct mcx_softc *sc, struct mcx_rx *rx, m->m_pkthdr.ph_timestamp = t; SET(m->m_pkthdr.csum_flags, M_TIMESTAMP); } +#endif ml_enqueue(ml, m); |