summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2021-10-31 15:25:11 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2021-10-31 15:25:11 +0000
commit559e5fddc4ad6288bfff50351feb8a501a10d5f8 (patch)
tree04fa623dc06714067a70fbb111618d41ab223fb6
parent3107849d13351de791d496831d0bc78357b2fda2 (diff)
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@
-rw-r--r--sys/dev/pci/if_igc.c4
1 files changed, 3 insertions, 1 deletions
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);