Module Name: src Committed By: cegger Date: Wed Aug 5 15:29:51 UTC 2009
Modified Files: src/sys/dev/pci: if_age.c Log Message: make RX hw checksum available by default. TX hw checksum locks up interface. To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/sys/dev/pci/if_age.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/if_age.c diff -u src/sys/dev/pci/if_age.c:1.31 src/sys/dev/pci/if_age.c:1.32 --- src/sys/dev/pci/if_age.c:1.31 Wed Aug 5 14:41:12 2009 +++ src/sys/dev/pci/if_age.c Wed Aug 5 15:29:51 2009 @@ -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 @@ 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