DragonFly commits List (threaded) for 2008-07
DragonFly BSD
DragonFly commits List (threaded) for 2008-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/sys/dev/netif/nfe if_nfe.c if_nfereg.h if_nfevar.h


From: Sepherosa Ziehau <sephe@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 12 Jul 2008 04:44:18 -0700 (PDT)

sephe       2008/07/12 04:44:18 PDT

DragonFly src repository

  Modified files:
    sys/dev/netif/nfe    if_nfe.c if_nfereg.h if_nfevar.h 
  Log:
  - Check number of free TX descs before trying to xmit packets
  - Recollect TX descs in nfe_start() if nfe(4) is going to enter OACTIVE
  - Use dynamic segment limit for bus_dmamap_load() in nfe_encap()
  
  This change gives me following result on AMD64X2 3600+ with MCP51:
  
  10 seconds, TX 64bytes packets, before/after
  
  256 TX desc
   imtimer | packets     | if_snd full    | if_oerrors
    -125     1.08M/1.08M   84532/82786      90/0
    -250     990K/1.08M    3735886/157125   38872/0
  
  4096 TX desc
   imtimer | packets     | if_snd full    | if_oerrors
    -125     1.08M/1.09M   0/0              45/0
    -250     1.08M/1.10M   0/0              39/0
  
  It gives great improvement when number of TX desc is 256 (default),
  and it at least will not loose any packets if number TX desc is 4096.
  
  Revision  Changes    Path
  1.40      +59 -25    src/sys/dev/netif/nfe/if_nfe.c
  1.13      +3 -0      src/sys/dev/netif/nfe/if_nfereg.h
  1.13      +1 -0      src/sys/dev/netif/nfe/if_nfevar.h


http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/nfe/if_nfe.c.diff?r1=1.39&r2=1.40&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/nfe/if_nfereg.h.diff?r1=1.12&r2=1.13&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/nfe/if_nfevar.h.diff?r1=1.12&r2=1.13&f=u



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]