diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2013-10-23 20:22:13 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2013-10-23 20:22:13 +0000 |
commit | 36fde6dd83541a5f7da7c6f659e37e3dbf9c493d (patch) | |
tree | 6a1f05c1df9de706d41c482c05878dbcf80147a2 | |
parent | 1ccb342589188441656bfa879e9b5762a0e31138 (diff) |
Enable TX checksum offload.
ok naddy@ sthen@
-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 878791359e1..47f47076bcb 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.101 2013/03/28 17:21:44 brad Exp $ */ +/* $OpenBSD: if_bnx.c,v 1.102 2013/10/23 20:22:12 brad Exp $ */ /*- * Copyright (c) 2006 Broadcom Corporation @@ -884,11 +884,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; |