On Wednesday 23 October 2002 05:51, Joakim Tjernlund wrote: > On Monday 21 October 2002 15:13, Joakim Tjernlund wrote: > > Hi > > > > Here is a patch to drop the expensive memcpy of received ethernet frames > > in interrupt context. I have not done any bench marking, but mounting a > > NFS rootfs feels faster. > > > > I am using a heavily modified enet.c in my system, but I think I got the > > patch correct. > > > > Also fixed a bug in set_multicast_list(), move the dmi list forward when > > walking it(dmi = dmi->next;) > > > > Comments? Anyone care to do some benchmarking? > > No comments so far, no one interested in this? I'm interested! Indeed, I adapted and tested your patch in a 8260 FCC fast ethernet driver and it worked fine I had a 20% increase in routing throughput with the patch installed!
The bug fix in set_multicast_list worked too. But, since there's a continue clause inside the for command in this routine, I would suggest that the (dmi=dmi->next) command go inside the for increment clause, instead of the place you've put it; that is: for (...;...; i++, dmi = dmi->next) {...} > > A question, why do enet.c pass bad frames to netif_rx? Only late collisions > are disregarded, the rest is passed on. IMHO, this is another bug... > ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/