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)
commitbb0590e2723eed53b524d61cf011d53fc7280949
treed34c8a10090ead1242c71882df26191639be2555
parent198dd26714ba4a60ccc5ce70bc4506613b4f0c2d
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