Subject: hardware-assisted checksum issue
To: NetBSD/xen <port-xen@NetBSD.org>
From: Joel CARNAT <joel@carnat.net>
List: port-xen
Date: 06/16/2006 14:30:58
--KsGdsel6WgEHnImy
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline

Hi,

looking for network improvement, I noticed my 3COM cards had
hardware-assisted ability not enabled:
########################################################################
ex0:
flags=8b63<UP,BROADCAST,NOTRAILERS,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST>
mtu 1500
        capabilities=7<IP4CSUM,TCP4CSUM,UDP4CSUM>
        enabled=0
        address: xx:xx:xx:xx:xx:xx
        media: Ethernet autoselect (100baseTX full-duplex)
        status: active
        input: 46233 packets, 11188562 bytes, 139 multicasts
        output: 46272 packets, 21887374 bytes, 20 multicasts
        inet x.x.x.x netmask 0xffffff00 broadcast x.x.x.255
########################################################################

The card is a 3COM 905C-TX:
########################################################################
ex0 at pci0 dev 9 function 0: 3Com 3c905C-TX 10/100 Ethernet with mngmt
(rev. 0x6c)
ex0: interrupting at irq 12, event channel 8
bmtphy0 at ex0 phy 24: Broadcom 3c905C internal PHY, rev. 4
########################################################################

When I tried to enable hardware-assisted using "ifconfig ex0 ip4csum
tcp4csum udp4csum", the network card just stopped working. From the
console I did configure those flags in ifconfig.ex0 and rebooted, but
the network card was still unable to get any data - input or output.

I had enabled those flags enabled
(enabled=66<TCP4CSUM,UDP4CSUM,TCP4CSUM_Rx,UDP4CSUM_Rx>) on an hme0
sparc64 interface (same NetBSD version) using the same command line (so
I expect it to be correct).

Any idea ?
TIA,
	Jo

PS:
NetBSD 3.0_STABLE (LUUNA) #2: Thu Apr 20 22:23:40 CEST 2006
xentools20-2.0.7nb5 Userland Tools for Xen
xenkernel20-2.0.7   Xen Kernel
xenconsole-0.15b1.1 Console monitor for Xen


--KsGdsel6WgEHnImy
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFEkqSC0/VH7L7F7Y4RAvnxAJ9fDbas68lci/8h/QaFupcKYvrswACgi45J
nzCZ9/9tpRr3O/NbTOFsytM=
=AIi7
-----END PGP SIGNATURE-----

--KsGdsel6WgEHnImy--