From owner-freebsd-sparc64@FreeBSD.ORG Mon Mar 20 21:17:31 2006 Return-Path: X-Original-To: freebsd-sparc64@freebsd.org Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F036216A400 for ; Mon, 20 Mar 2006 21:17:31 +0000 (UTC) (envelope-from j@uriah.heep.sax.de) Received: from uriah.heep.sax.de (uriah.heep.sax.de [213.240.137.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 088C443D48 for ; Mon, 20 Mar 2006 21:17:31 +0000 (GMT) (envelope-from j@uriah.heep.sax.de) Received: from localhost (localhost [127.0.0.1]) by uriah.heep.sax.de (Postfix) with ESMTP id 13B9813C for ; Mon, 20 Mar 2006 22:17:28 +0100 (MET) Received: from uriah.heep.sax.de (localhost [127.0.0.1]) by localhost (AvMailGate-2.0.2-10) id 31694-0B0369AC; Mon, 20 Mar 2006 22:17:27 +0100 Received: from uriah.heep.sax.de (localhost [127.0.0.1]) by uriah.heep.sax.de (Postfix) with ESMTP id A5F09C6 for ; Mon, 20 Mar 2006 22:17:21 +0100 (MET) Received: from uriah.heep.sax.de (localhost [127.0.0.1]) by uriah.heep.sax.de (Postfix) with ESMTP for ; Mon, 20 Mar 2006 22:17:21 +0100 (MET) Received: (from j@localhost) by uriah.heep.sax.de (8.13.4/8.13.1/Submit) id k2KLHL3Q031691 for freebsd-sparc64@freebsd.org; Mon, 20 Mar 2006 22:17:21 +0100 (MET) (envelope-from j) Date: Mon, 20 Mar 2006 22:17:21 +0100 From: Joerg Wunsch To: freebsd-sparc64@freebsd.org Message-ID: <20060320211720.GB31216@uriah.heep.sax.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-GPG-Fingerprint: 5E84 F980 C3CA FD4B B584 1070 F48C A81B 69A8 5873 User-Agent: Mutt/1.5.11 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on uriah.heep.sax.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=6.5 tests=none autolearn=failed version=3.0.2 X-AntiVirus: checked by AntiVir MailGate (version: 2.0.2-10; AVE: 6.33.0.19; VDF: 6.33.0.62; host: uriah.heep.sax.de) Subject: hme(4) broken on non-sparc64 systems in -current X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Joerg Wunsch List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Mar 2006 21:17:32 -0000 Even though this problem is not related to sparc64 system (I hope, the least), I think all those who know about hme(4) are listening here. I used to run a PCI QFE card in my (i386) scratch machine at home, for various experiments. After upgrading the machine from a 6-stable of about a year ago to -current, the QFE ceased to work. The symptoms were that I could still ping anyone (even with large packets), but all TCP and UDP traffic seemingly didn't ``arrive'' at the IP stack, even though the packets made it into the NIC at the lowest level (so tcpdump could still display them). This made me suspect the TCP/UDP checksum offloading, and indeed, after uncommenting the checksum capability: Index: if_hme.c =================================================================== RCS file: /home/ncvs/src/sys/dev/hme/if_hme.c,v retrieving revision 1.46 diff -u -r1.46 if_hme.c --- if_hme.c 17 Jan 2006 06:02:22 -0000 1.46 +++ if_hme.c 20 Mar 2006 20:56:54 -0000 @@ -340,9 +340,9 @@ * Tell the upper layer(s) we support long frames/checksum offloads. */ ifp->if_data.ifi_hdrlen = sizeof(struct ether_vlan_header); - ifp->if_capabilities |= IFCAP_VLAN_MTU | IFCAP_HWCSUM; + ifp->if_capabilities |= IFCAP_VLAN_MTU /* | IFCAP_HWCSUM */; ifp->if_hwassist |= sc->sc_csum_features; - ifp->if_capenable |= IFCAP_VLAN_MTU | IFCAP_HWCSUM; + ifp->if_capenable |= IFCAP_VLAN_MTU /* | IFCAP_HWCSUM */; return (0); fail_txdesc: everything works again. If anyone has any further ideas what might have broken this, I'm all ears, otherwise I might start digging down into the code myself. (I don't have a FreeBSD-sparc64 machine running -current around, so I cannot test right now whether it would work there.) -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)