diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-07-04 00:20:23 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-07-04 00:20:23 +0000 |
commit | b6abc47c44da90c5f29ca01205dbbfecb2f8837c (patch) | |
tree | ee32b21f717d4febf6d6c4be1519f2b06b587bc0 /sys/dev/pci/if_bnx.c | |
parent | 07999298d834239e1eb0faed58b2061ef4c010fe (diff) |
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/dev/pci/if_bnx.c')
-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; |