diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2008-11-08 07:10:14 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2008-11-08 07:10:14 +0000 |
commit | 4e82bd5e6cab8bed70a2dcd306529f84a499e4dd (patch) | |
tree | 26097d6371bbcf8bcb2a26e11770d88c1eeda179 /sys | |
parent | c00fe252c71ec9bacb00b52d5d6c1b3cb241dd6d (diff) |
Clean up some of the comments.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_bge.c | 12 | ||||
-rw-r--r-- | sys/dev/pci/if_bgereg.h | 10 |
2 files changed, 4 insertions, 18 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c index f7a36bb5210..fe9186f3bc3 100644 --- a/sys/dev/pci/if_bge.c +++ b/sys/dev/pci/if_bge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bge.c,v 1.251 2008/11/08 07:00:52 brad Exp $ */ +/* $OpenBSD: if_bge.c,v 1.252 2008/11/08 07:10:13 brad Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -982,12 +982,6 @@ bge_newbuf_jumbo(struct bge_softc *sc, int i, struct mbuf *m) return (0); } -/* - * The standard receive ring has 512 entries in it. At 2K per mbuf cluster, - * that's 1MB or memory, which is a lot. For now, we fill only the first - * 256 ring entries and hope that our CPU is fast enough to keep up with - * the NIC. - */ int bge_init_rx_ring_std(struct bge_softc *sc) { @@ -2715,7 +2709,7 @@ bge_tick(void *xsc) /* * Do not touch PHY if we have link up. This could break * IPMI/ASF mode or produce extra input errors. - * (extra input errors was reported for bcm5701 & bcm5704). + * (extra input errors was reported for BCM5701 & BCM5704). */ if (!BGE_STS_BIT(sc, BGE_STS_LINK)) mii_tick(mii); @@ -3577,8 +3571,6 @@ bge_link_upd(struct bge_softc *sc) } /* * Discard link events for MII/GMII cards if MI auto-polling disabled. - * This should not happen since mii callouts are locked now, but - * we keep this check for debug. */ } else if (BGE_STS_BIT(sc, BGE_STS_AUTOPOLL)) { /* diff --git a/sys/dev/pci/if_bgereg.h b/sys/dev/pci/if_bgereg.h index 153b3165ea5..4e734df7f49 100644 --- a/sys/dev/pci/if_bgereg.h +++ b/sys/dev/pci/if_bgereg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bgereg.h,v 1.86 2008/11/07 22:53:31 brad Exp $ */ +/* $OpenBSD: if_bgereg.h,v 1.87 2008/11/08 07:10:13 brad Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -2318,15 +2318,9 @@ struct bge_gib { pci_conf_write(pc, tag, reg, (pci_conf_read(pc, tag, reg) & ~(x))) /* - * Memory management stuff. Note: the SSLOTS, MSLOTS and JSLOTS - * values are tuneable. They control the actual amount of buffers - * allocated for the standard, mini and jumbo receive rings. + * Jumbo buffer stuff. */ - -#define BGE_SSLOTS 256 -#define BGE_MSLOTS 256 #define BGE_JSLOTS 384 - #define BGE_JRAWLEN (BGE_JUMBO_FRAMELEN + ETHER_ALIGN) #define BGE_JLEN (BGE_JRAWLEN + (sizeof(u_int64_t) - \ (BGE_JRAWLEN % sizeof(u_int64_t)))) |