]> git.baikalelectronics.ru Git - kernel.git/commit
staging: nvec: Allow TX buffers only in the upper 75% of the pool
authorJulian Andres Klode <jak@jak-linux.org>
Tue, 27 Sep 2011 17:00:59 +0000 (19:00 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 30 Sep 2011 00:41:36 +0000 (17:41 -0700)
commitc2f8616c1b03ce3a77ceca5aa53fcec87bc1a984
treed34c8a10090ead1242c71882df26191639be2555
parentb988819a555253bac686acc9ae6c65d2204a1b4d
staging: nvec: Allow TX buffers only in the upper 75% of the pool

Allow TX buffers to be allocated only in the upper 75% of the pool
to avoid a completely filled buffer preventing the driver from
processing responses. This also improves performance, as RX
allocations do not require checking buffers allocated for TX
unless there are more than 16 incoming messages -- which is
highly unlikely.

An earlier version used the lower 75% for TX messages, but
that was considered to be not that effective due to the
overlaps of RX and TX buffers mentioned above.

Signed-off-by: Julian Andres Klode <jak@jak-linux.org>
Acked-by: Marc Dietrich <marvin24@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/nvec/nvec.c