diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-01-27 12:39:00 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-01-27 12:39:00 +0000 |
commit | 4b4759b9628310b4ec0a87b3e636f7a59836f507 (patch) | |
tree | 9e2e08c20461269f8d61a82a9521f26f19f2b88e /sys/dev | |
parent | b95a1273f1a17962cf624e218e78de78185cc6d7 (diff) |
Enable transmit TCP/UDP checksum offload.
From Brad, tested by Brad, biorn@ and Johan M:son Lindman.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/if_bnx.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/pci/if_bnx.c b/sys/dev/pci/if_bnx.c index f9dfe5016f5..46e16ec70e7 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.41 2007/01/21 01:08:03 mcbride Exp $ */ +/* $OpenBSD: if_bnx.c,v 1.42 2007/01/27 12:38:59 krw Exp $ */ /*- * Copyright (c) 2006 Broadcom Corporation @@ -868,11 +868,8 @@ 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; - -#ifdef BNX_CSUM - ifp->if_capabilities |= IFCAP_CSUM_TCPv4 | IFCAP_CSUM_UDPv4; -#endif + ifp->if_capabilities = IFCAP_VLAN_MTU | IFCAP_CSUM_TCPv4 | + IFCAP_CSUM_UDPv4; #if NVLAN > 0 ifp->if_capabilities |= IFCAP_VLAN_HWTAGGING; |