Use if_capenable to allow LRO enabled drivers to bypass

the MTU check in ether_input().
This commit is contained in:
gallatin 2007-06-12 19:53:44 +00:00
parent a86c52513f
commit 1dc9ad2cb9

View File

@ -544,7 +544,8 @@ ether_input(struct ifnet *ifp, struct mbuf *m)
etype = ntohs(eh->ether_type);
#ifdef DIAGNOSTIC
if (m->m_pkthdr.len >
ETHER_MAX_FRAME(ifp, etype, m->m_flags & M_HASFCS)) {
ETHER_MAX_FRAME(ifp, etype, m->m_flags & M_HASFCS) &&
(ifp->if_capenable & IFCAP_LRO) == 0) {
if_printf(ifp, "discard oversize frame "
"(ether type %x flags %x len %u > max %lu)\n",
etype, m->m_flags, m->m_pkthdr.len,