From: Claudiu Manoil Date: Mon, 13 Jul 2015 13:22:03 +0000 (+0300) Subject: gianfar: Bundle Rx allocation, cleanup X-Git-Tag: omap-for-v4.3/fixes-rc1~110^2~362^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76f31e8b0911e620ac9191c8d3775cc91ed65c4c;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed