aboutsummaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-02-21 11:28:08 +0100
committerDavid S. Miller <davem@davemloft.net>2017-02-21 13:16:15 -0500
commit3eb2d9982288fbbbdc671af0fee4b9eb71d11b75 (patch)
treea25cab6370ac7aeb548f6ae8a10fdbaf55756cae /README
parentnet: mvpp2: drop useless fields in mvpp2_bm_pool and related code (diff)
downloadlinux-dev-3eb2d9982288fbbbdc671af0fee4b9eb71d11b75.tar.xz
linux-dev-3eb2d9982288fbbbdc671af0fee4b9eb71d11b75.zip
net: mvpp2: simplify mvpp2_bm_bufs_add()
The mvpp2_bm_bufs_add() currently creates a fake cookie by calling mvpp2_bm_cookie_pool_set(), just to be able to call mvpp2_pool_refill(). But all what mvpp2_pool_refill() does is extract the pool ID from the cookie, and call mvpp2_bm_pool_put() with this ID. Instead of doing this convoluted thing, just call mvpp2_bm_pool_put() directly, since we have the BM pool ID. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions