]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r213423:
authoryongari <yongari@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 24 Oct 2010 21:22:00 +0000 (21:22 +0000)
committeryongari <yongari@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 24 Oct 2010 21:22:00 +0000 (21:22 +0000)
commit7a042182be69cab66be13ce50662c5a838c42564
treee811f85004a7cbd5cf568dac60166138ad13b310
parent90b8e7c2a81bc8f7efef7a3849eb37fe9f105d82
MFC r213423:
  Move updating TX packet counter to the inside of send loop. axe(4)
  controllers combine multiple TX requests into single one if there
  is room in TX buffer of controller. Updating TX packet counter at
  the end of TX completion resulted in incorrect TX packet counter as
  axe(4) thought it sent 1 packet. There is no easy way to know how
  many combined TX were completed in the callback.
  Because this change updates TX packet counter before actual
  transmission, it may not be ideal one. But I believe it's better
  than showing fake 8kpps under high TX load. With this change, TX
  shows 221kpps on Linksus USB200M.

git-svn-id: svn://svn.freebsd.org/base/stable/8@214297 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/usb/net/if_axe.c