The mtu check in bridge_enqueue is bogus as the maximum Ethernet frame is

actually 1514, so comparing the mbuf length which includes the Ethernet header
to the interface MTU is wrong.

The check was a little over the top so just remove it.

Approved by:	mlaier (mentor)
MFC after:	3 days
This commit is contained in:
thompsa 2005-08-23 19:49:00 +00:00
parent 2e01dfe9a9
commit c0a34d34c0

View File

@ -1268,13 +1268,6 @@ bridge_enqueue(struct bridge_softc *sc, struct ifnet *dst_ifp, struct mbuf *m)
len = m->m_pkthdr.len;
mflags = m->m_flags;
#ifdef INVARIANTS
if (len > dst_ifp->if_mtu)
if_printf(sc->sc_ifp,
"MTU mismatch, frame length %d exceeds %ld on %s\n", len,
dst_ifp->if_mtu, dst_ifp->if_xname);
#endif
IFQ_ENQUEUE(&dst_ifp->if_snd, m, err);
if (err == 0) {