summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorcegger <cegger@NetBSD.org>2009-08-05 15:29:51 +0000
committercegger <cegger@NetBSD.org>2009-08-05 15:29:51 +0000
commitab159a84fabd4320f54967ea478aa3e992a5403f (patch)
tree95d90182e27df5b7b4f3075265c5cae5916beb79 /sys/dev
parent466a3e5dee67ecf218230cc8914fe761de00b428 (diff)
make RX hw checksum available by default.
TX hw checksum locks up interface.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_age.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/dev/pci/if_age.c b/sys/dev/pci/if_age.c
index 6b4afc3353e..9ca8692e7fd 100644
--- a/sys/dev/pci/if_age.c
+++ b/sys/dev/pci/if_age.c
@@ -1,4 +1,4 @@
-/* $NetBSD: if_age.c,v 1.31 2009/08/05 14:41:12 cegger Exp $ */
+/* $NetBSD: if_age.c,v 1.32 2009/08/05 15:29:51 cegger Exp $ */
/* $OpenBSD: if_age.c,v 1.1 2009/01/16 05:00:34 kevlo Exp $ */
/*-
@@ -31,7 +31,7 @@
/* Driver for Attansic Technology Corp. L1 Gigabit Ethernet. */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_age.c,v 1.31 2009/08/05 14:41:12 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_age.c,v 1.32 2009/08/05 15:29:51 cegger Exp $");
#include "bpfilter.h"
#include "vlan.h"
@@ -254,10 +254,13 @@ age_attach(device_t parent, device_t self, void *aux)
sc->sc_ec.ec_capabilities = ETHERCAP_VLAN_MTU;
+ ifp->if_capabilities |= IFCAP_CSUM_IPv4_Rx |
+ IFCAP_CSUM_TCPv4_Rx |
+ IFCAP_CSUM_UDPv4_Rx;
#ifdef AGE_CHECKSUM
- ifp->if_capabilities |= IFCAP_CSUM_IPv4_Tx | IFCAP_CSUM_IPv4_Rx |
- IFCAP_CSUM_TCPv4_Tx | IFCAP_CSUM_TCPv4_Rx |
- IFCAP_CSUM_UDPv4_Tx | IFCAP_CSUM_UCPv4_Rx;
+ ifp->if_capabilities |= IFCAP_CSUM_IPv4_Tx |
+ IFCAP_CSUM_TCPv4_Tx |
+ IFCAP_CSUM_UDPv4_Tx;
#endif
#if NVLAN > 0