diff options
author | 2007-07-04 00:20:22 +0000 | |
---|---|---|
committer | 2007-07-04 00:20:22 +0000 | |
commit | 3a65342a62454260235b02ff31a41dc4c7966dcc (patch) | |
tree | 5700618762b2d01ea1a6e0971103fa998464b01c /sys | |
parent | join ahci attach code back together into one function. (diff) | |
download | wireguard-openbsd-3a65342a62454260235b02ff31a41dc4c7966dcc.tar.xz wireguard-openbsd-3a65342a62454260235b02ff31a41dc4c7966dcc.zip |
Revert r1.42 of if_bnx.c, "Enable IPv4 transmit TCP/UDP checksum
offload", and associated man page change. To use IPv4 transmit TCP/UDP
checksum offloading you must again define BNX_CSUM.
As requested by mbalmer@ via deraadt@ on suggestion of reyk@ in
response to PR #5437.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_bnx.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/pci/if_bnx.c b/sys/dev/pci/if_bnx.c index 4550b021718..cbb1408448e 100644 --- a/sys/dev/pci/if_bnx.c +++ b/sys/dev/pci/if_bnx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bnx.c,v 1.52 2007/05/22 22:08:57 reyk Exp $ */ +/* $OpenBSD: if_bnx.c,v 1.53 2007/07/04 00:20:22 krw Exp $ */ /*- * Copyright (c) 2006 Broadcom Corporation @@ -876,8 +876,11 @@ bnx_attachhook(void *xsc) bcopy(sc->eaddr, sc->arpcom.ac_enaddr, ETHER_ADDR_LEN); bcopy(sc->bnx_dev.dv_xname, ifp->if_xname, IFNAMSIZ); - ifp->if_capabilities = IFCAP_VLAN_MTU | IFCAP_CSUM_TCPv4 | - IFCAP_CSUM_UDPv4; + ifp->if_capabilities = IFCAP_VLAN_MTU; + +#ifdef BNX_CSUM + ifp->if_capabilities |= IFCAP_CSUM_TCPv4 | IFCAP_CSUM_UDPv4; +#endif #if NVLAN > 0 ifp->if_capabilities |= IFCAP_VLAN_HWTAGGING; |