Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic disable IFCAP_CSUM_IPv4_Tx and comment why.



details:   https://anonhg.NetBSD.org/src/rev/1b1c4d4fb48c
branches:  trunk
changeset: 580900:1b1c4d4fb48c
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sun May 15 07:48:49 2005 +0000

description:
disable IFCAP_CSUM_IPv4_Tx and comment why.

diffstat:

 sys/dev/ic/rtl8169.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r b2c3a14d7b85 -r 1b1c4d4fb48c sys/dev/ic/rtl8169.c
--- a/sys/dev/ic/rtl8169.c      Sun May 15 02:04:30 2005 +0000
+++ b/sys/dev/ic/rtl8169.c      Sun May 15 07:48:49 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtl8169.c,v 1.18 2005/05/02 15:34:31 yamt Exp $        */
+/*     $NetBSD: rtl8169.c,v 1.19 2005/05/15 07:48:49 yamt Exp $        */
 
 /*
  * Copyright (c) 1997, 1998-2003
@@ -749,8 +749,13 @@
            ETHERCAP_VLAN_MTU | ETHERCAP_VLAN_HWTAGGING;
        ifp->if_start = re_start;
        ifp->if_stop = re_stop;
+
+       /*
+        * IFCAP_CSUM_IPv4_Tx seems broken for small packets.
+        */
+
        ifp->if_capabilities |=
-           IFCAP_CSUM_IPv4_Tx | IFCAP_CSUM_IPv4_Rx |
+           /* IFCAP_CSUM_IPv4_Tx | */ IFCAP_CSUM_IPv4_Rx |
            IFCAP_CSUM_TCPv4_Tx | IFCAP_CSUM_TCPv4_Rx |
            IFCAP_CSUM_UDPv4_Tx | IFCAP_CSUM_UDPv4_Rx |
            IFCAP_TSOv4;



Home | Main Index | Thread Index | Old Index