Revision 22e1170310ec6afa41e0dc7ac9dfac735d82dcab authored by Stephen Hemminger on 12 July 2006, 22:23:48 UTC, committed by Jeff Garzik on 12 July 2006, 22:39:22 UTC
When the driver handles multiple packets per NAPI poll, it is
better to reload the receive ring, then tell the hardware. Otherwise,
under packet storm with flow control, the driver/hardware will degrade
down to one packet getting through per pause-exchange.

Likewise on transmit, don't wakeup until a little more than minimum
ring space is available.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
1 parent afa195d
History
File Mode Size
arch-v10
arch-v32
Kbuild -rw-r--r-- 39 bytes
a.out.h -rw-r--r-- 977 bytes
atomic.h -rw-r--r-- 3.5 KB
auxvec.h -rw-r--r-- 62 bytes
axisflashmap.h -rw-r--r-- 1.4 KB
bitops.h -rw-r--r-- 4.4 KB
bug.h -rw-r--r-- 76 bytes
bugs.h -rw-r--r-- 300 bytes
byteorder.h -rw-r--r-- 512 bytes
cache.h -rw-r--r-- 98 bytes
cacheflush.h -rw-r--r-- 1.2 KB
checksum.h -rw-r--r-- 2.1 KB
cputime.h -rw-r--r-- 115 bytes
current.h -rw-r--r-- 268 bytes
delay.h -rw-r--r-- 442 bytes
div64.h -rw-r--r-- 31 bytes
dma-mapping.h -rw-r--r-- 4.0 KB
dma.h -rw-r--r-- 423 bytes
elf.h -rw-r--r-- 2.9 KB
emergency-restart.h -rw-r--r-- 149 bytes
errno.h -rw-r--r-- 84 bytes
eshlibld.h -rw-r--r-- 3.5 KB
ethernet.h -rw-r--r-- 654 bytes
etraxgpio.h -rw-r--r-- 3.8 KB
etraxi2c.h -rw-r--r-- 980 bytes
fasttimer.h -rw-r--r-- 1.1 KB
fcntl.h -rw-r--r-- 31 bytes
futex.h -rw-r--r-- 82 bytes
hardirq.h -rw-r--r-- 578 bytes
hw_irq.h -rw-r--r-- 53 bytes
ide.h -rw-r--r-- 26 bytes
io.h -rw-r--r-- 4.9 KB
ioctl.h -rw-r--r-- 31 bytes
ioctls.h -rw-r--r-- 2.6 KB
ipc.h -rw-r--r-- 29 bytes
ipcbuf.h -rw-r--r-- 631 bytes
irq.h -rw-r--r-- 159 bytes
kmap_types.h -rw-r--r-- 364 bytes
linkage.h -rw-r--r-- 86 bytes
local.h -rw-r--r-- 31 bytes
mman.h -rw-r--r-- 658 bytes
mmu.h -rw-r--r-- 120 bytes
mmu_context.h -rw-r--r-- 741 bytes
module.h -rw-r--r-- 220 bytes
msgbuf.h -rw-r--r-- 1016 bytes
mutex.h -rw-r--r-- 308 bytes
namei.h -rw-r--r-- 358 bytes
page.h -rw-r--r-- 2.7 KB
param.h -rw-r--r-- 480 bytes
pci.h -rw-r--r-- 2.8 KB
percpu.h -rw-r--r-- 108 bytes
pgalloc.h -rw-r--r-- 1.1 KB
pgtable.h -rw-r--r-- 10.4 KB
poll.h -rw-r--r-- 430 bytes
posix_types.h -rw-r--r-- 2.2 KB
processor.h -rw-r--r-- 2.0 KB
ptrace.h -rw-r--r-- 333 bytes
resource.h -rw-r--r-- 93 bytes
rs485.h -rw-r--r-- 454 bytes
rtc.h -rw-r--r-- 3.3 KB
scatterlist.h -rw-r--r-- 533 bytes
sections.h -rw-r--r-- 126 bytes
segment.h -rw-r--r-- 109 bytes
semaphore-helper.h -rw-r--r-- 1.5 KB
semaphore.h -rw-r--r-- 3.1 KB
sembuf.h -rw-r--r-- 697 bytes
setup.h -rw-r--r-- 83 bytes
shmbuf.h -rw-r--r-- 1.2 KB
shmparam.h -rw-r--r-- 193 bytes
sigcontext.h -rw-r--r-- 690 bytes
siginfo.h -rw-r--r-- 90 bytes
signal.h -rw-r--r-- 3.5 KB
smp.h -rw-r--r-- 221 bytes
socket.h -rw-r--r-- 1.2 KB
sockios.h -rw-r--r-- 277 bytes
spinlock.h -rw-r--r-- 31 bytes
stat.h -rw-r--r-- 1.8 KB
statfs.h -rw-r--r-- 87 bytes
string.h -rw-r--r-- 320 bytes
sync_serial.h -rw-r--r-- 2.9 KB
system.h -rw-r--r-- 2.0 KB
termbits.h -rw-r--r-- 4.6 KB
termios.h -rw-r--r-- 3.1 KB
thread_info.h -rw-r--r-- 2.9 KB
timex.h -rw-r--r-- 398 bytes
tlb.h -rw-r--r-- 390 bytes
tlbflush.h -rw-r--r-- 1.4 KB
topology.h -rw-r--r-- 128 bytes
types.h -rw-r--r-- 1.1 KB
uaccess.h -rw-r--r-- 12.5 KB
ucontext.h -rw-r--r-- 283 bytes
unaligned.h -rw-r--r-- 387 bytes
unistd.h -rw-r--r-- 11.6 KB
user.h -rw-r--r-- 2.1 KB

back to top