diff options
| author | Claudiu Manoil <claudiu.manoil@freescale.com> | 2015-07-13 09:22:03 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2015-07-15 20:13:23 -0400 |
| commit | 76f31e8b0911e620ac9191c8d3775cc91ed65c4c (patch) | |
| tree | 2e67920867ed291043c11c51e9ac15097edc0c5b /lib/mpi/mpi-bit.c | |
| parent | aad0d51e933f8656880592020319d2dbd09532a2 (diff) | |
gianfar: Bundle Rx allocation, cleanup
Use a more common consumer/ producer index design to improve
rx buffer allocation. Instead of allocating a single new buffer
(skb) on each iteration, bundle the allocation of several rx
buffers at a time. This also opens the path for further memory
optimizations.
Remove useless check of rxq->rfbptr, since this patch touches
rx pause frame handling code as well. rxq->rfbptr is always
initialized as part of Rx BD ring init.
Remove redundant (and misleading) 'amount_pull' parameter.
Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions
