diff options
author | thompsa <thompsa@FreeBSD.org> | 2005-08-23 19:49:00 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2005-08-23 19:49:00 +0000 |
commit | c0a34d34c06f5c4ef36134dbfc20a5a95bf518b3 (patch) | |
tree | 8a69c3a5c5c34d7c48b7484df6800a172ed07bec | |
parent | 2e01dfe9a96b7c649c8b2795334e1f1906e6a1a9 (diff) | |
download | FreeBSD-src-c0a34d34c06f5c4ef36134dbfc20a5a95bf518b3.zip FreeBSD-src-c0a34d34c06f5c4ef36134dbfc20a5a95bf518b3.tar.gz |
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
-rw-r--r-- | sys/net/if_bridge.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c index b35f7aa..7b53875 100644 --- a/sys/net/if_bridge.c +++ b/sys/net/if_bridge.c @@ -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) { |