Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Nov 2010 07:09:41 -0500 (EST)
From:      Rick Macklem <rmacklem@uoguelph.ca>
To:        pyunyh@gmail.com
Cc:        alc@freebsd.org, freebsd-current@freebsd.org
Subject:   Re: re(4) driver dropping packets when reading NFS files
Message-ID:  <970925941.232054.1289218181757.JavaMail.root@erie.cs.uoguelph.ca>
In-Reply-To: <20101108014022.GG1279@michelle.cdnetworks.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> By chance, how about disabling RX early interrupt?
> You can add the following 3 lines of code into re_init_locked().
> 
> 2710 /*
> 2711 * Set the initial RX configuration.
> 2712 */
> 2713 re_set_rxmode(sc);
> 2714
> 2715 /* Disable RX early interrupt. */
> 2716 cfg = CSR_READ_2(sc, RL_MULTIINTR);
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 2717 cfg &= 0xF000;
> ^^^^^^^^^^^^^^
> 2718 CSR_WRITE_2(sc, RL_MULTIINTR, cfg);
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 2719
> 2720 #ifdef DEVICE_POLLING
>
Afraid it didn't help. I've also discovered that the June 7 kernel only
performs better sometimes. I see 500Kbytes/sec read rate on it for
most of the test runs. (It does work better sometimes, but maybe the
-current kernel would too, if I ran for long enough with it.)

I can try some other variations of enabling interrupts in early Dec, rick



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?970925941.232054.1289218181757.JavaMail.root>