From 488608034cfe5408444356780b66db3999ee60ec Mon Sep 17 00:00:00 2001 From: patrick Date: Sun, 31 Oct 2021 15:25:10 +0000 Subject: [PATCH] Disable both TCP/UDP checksum offloading and VLAN HW tag offloading for now, as we currently configure neither in the transmit code path. Found by sf@ --- sys/dev/pci/if_igc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/dev/pci/if_igc.c b/sys/dev/pci/if_igc.c index aa768917b50..875a3eb5bd1 100644 --- a/sys/dev/pci/if_igc.c +++ b/sys/dev/pci/if_igc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_igc.c,v 1.3 2021/10/31 15:22:40 patrick Exp $ */ +/* $OpenBSD: if_igc.c,v 1.4 2021/10/31 15:25:10 patrick Exp $ */ /*- * SPDX-License-Identifier: BSD-2-Clause * @@ -787,11 +787,13 @@ igc_setup_interface(struct igc_softc *sc) ifp->if_capabilities = IFCAP_VLAN_MTU; +#ifdef notyet #if NVLAN > 0 ifp->if_capabilities |= IFCAP_VLAN_HWTAGGING; #endif ifp->if_capabilities |= IFCAP_CSUM_TCPv4 | IFCAP_CSUM_UDPv4; +#endif /* Initialize ifmedia structures. */ ifmedia_init(&sc->media, IFM_IMASK, igc_media_change, igc_media_status); -- 2.20.1