From: bket Date: Tue, 21 Jun 2022 17:33:21 +0000 (+0000) Subject: Revert part of r1.212, which caused a regression in a previously working X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=853b9c1d53fdecb12073390f3627bcbbea37aebd;p=openbsd Revert part of r1.212, which caused a regression in a previously working setup OK dlg@ --- diff --git a/sys/dev/ic/re.c b/sys/dev/ic/re.c index 3a33f91507f..3c1f245d558 100644 --- a/sys/dev/ic/re.c +++ b/sys/dev/ic/re.c @@ -1,4 +1,4 @@ -/* $OpenBSD: re.c,v 1.213 2022/06/05 02:49:30 dlg Exp $ */ +/* $OpenBSD: re.c,v 1.214 2022/06/21 17:33:21 bket Exp $ */ /* $FreeBSD: if_re.c,v 1.31 2004/09/04 07:54:05 ru Exp $ */ /* * Copyright (c) 1997, 1998-2003 @@ -1611,8 +1611,7 @@ re_encap(struct rl_softc *sc, unsigned int idx, struct mbuf *m) */ if ((sc->rl_flags & RL_FLAG_JUMBOV2) && - (m->m_pkthdr.len > RL_MTU || - m->m_pkthdr.len < (ETHER_MIN_LEN - ETHER_CRC_LEN)) && + m->m_pkthdr.len > RL_MTU && (m->m_pkthdr.csum_flags & (M_IPV4_CSUM_OUT|M_TCP_CSUM_OUT|M_UDP_CSUM_OUT)) != 0) { struct mbuf mh, *mp;