summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--share/man/man4/bnx.45
-rw-r--r--sys/dev/pci/if_bnx.c9
2 files changed, 8 insertions, 6 deletions
diff --git a/share/man/man4/bnx.4 b/share/man/man4/bnx.4
index fb4ce99dbe9..8c0920b6963 100644
--- a/share/man/man4/bnx.4
+++ b/share/man/man4/bnx.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: bnx.4,v 1.16 2007/05/31 19:19:49 jmc Exp $
+.\" $OpenBSD: bnx.4,v 1.17 2007/07/04 00:20:22 krw Exp $
.\"
.\"Copyright (c) 2006 Broadcom Corporation
.\" David Christensen <davidch@broadcom.com>. All rights reserved.
@@ -30,7 +30,7 @@
\"
.\" $FreeBSD: /repoman/r/ncvs/src/share/man/man4/bce.4,v 1.2 2006/04/10 20:12:17 brueffer Exp $
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: July 4 2007 $
.Dt BNX 4
.Os
.Sh NAME
@@ -77,7 +77,6 @@ The following features are supported in the
driver under
.Ox :
.Bd -literal -offset indent
-IPv4 transmit TCP/UDP checksum offload
IPv4 receive IP/TCP/UDP checksum offload
.\"Jumbo frames (up to 9022 bytes)
VLAN tag insertion
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;