diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2004-08-05 19:57:18 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2004-08-05 19:57:18 +0000 |
commit | 18a8c9a37447fa5e61397f1fa9101ccf15339990 (patch) | |
tree | 88428f23c045c36c5eafd92874a1f425f24ce715 /sys/dev/pci/if_bge.c | |
parent | 1ff8fec00c6a452cbcbe342eb137342dfdb33f5d (diff) |
remove some separate per driver constants and use
ETHER_MAX_LEN_JUMBO/ETHERMTU_JUMBO where appropriate.
ok mcbride@ henning@ mickey@
Diffstat (limited to 'sys/dev/pci/if_bge.c')
-rw-r--r-- | sys/dev/pci/if_bge.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c index ce1e83b99f9..4ba9e36770b 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.27 2004/05/29 23:07:48 naddy Exp $ */ +/* $OpenBSD: if_bge.c,v 1.28 2004/08/05 19:57:17 brad Exp $ */ /* * Copyright (c) 2001 Wind River Systems * Copyright (c) 1997, 1998, 1999, 2001 @@ -767,12 +767,12 @@ bge_newbuf_jumbo(sc, i, m) } /* Attach the buffer to the mbuf. */ - m_new->m_len = m_new->m_pkthdr.len = BGE_JUMBO_FRAMELEN; - MEXTADD(m_new, buf, BGE_JUMBO_FRAMELEN, 0, bge_jfree, sc); + m_new->m_len = m_new->m_pkthdr.len = ETHER_MAX_LEN_JUMBO; + MEXTADD(m_new, buf, ETHER_MAX_LEN_JUMBO, 0, bge_jfree, sc); } else { m_new = m; m_new->m_data = m_new->m_ext.ext_buf; - m_new->m_ext.ext_size = BGE_JUMBO_FRAMELEN; + m_new->m_ext.ext_size = ETHER_MAX_LEN_JUMBO; } if (!sc->bge_rx_alignment_bug) @@ -2673,7 +2673,7 @@ bge_ioctl(ifp, command, data) case SIOCSIFMTU: /* Disallow jumbo frames on 5705. */ if ((sc->bge_asicrev == BGE_ASICREV_BCM5705 && - ifr->ifr_mtu > ETHERMTU) || ifr->ifr_mtu > BGE_JUMBO_MTU) + ifr->ifr_mtu > ETHERMTU) || ifr->ifr_mtu > ETHERMTU_JUMBO) error = EINVAL; else ifp->if_mtu = ifr->ifr_mtu; |