mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Use if_capenable to allow LRO enabled drivers to bypass
the MTU check in ether_input().
This commit is contained in:
parent
671f2709ae
commit
ead7661da1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170632
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user