summaryrefslogtreecommitdiffstats
path: root/sys/net/if_bridge.c
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2005-08-23 19:49:00 +0000
committerthompsa <thompsa@FreeBSD.org>2005-08-23 19:49:00 +0000
commitc0a34d34c06f5c4ef36134dbfc20a5a95bf518b3 (patch)
tree8a69c3a5c5c34d7c48b7484df6800a172ed07bec /sys/net/if_bridge.c
parent2e01dfe9a96b7c649c8b2795334e1f1906e6a1a9 (diff)
downloadFreeBSD-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
Diffstat (limited to 'sys/net/if_bridge.c')
-rw-r--r--sys/net/if_bridge.c7
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) {
OpenPOWER on IntegriCloud