make RX hw checksum available by default.

TX hw checksum locks up interface.
This commit is contained in:
cegger 2009-08-05 15:29:51 +00:00
parent 466a3e5dee
commit ab159a84fa

View File

@ -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