re(4) driver dropping packets when reading NFS files
Rick Macklem
rmacklem at uoguelph.ca
Mon Nov 8 12:09:43 UTC 2010
>
> 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
More information about the freebsd-current
mailing list