From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Hershberger Date: Tue, 21 Mar 2017 11:57:54 -0500 Subject: [U-Boot] [PATCH v1 03/41] net: mvpp2: simplify mvpp2_bm_bufs_add() In-Reply-To: <20170321142802.24276-4-sr@denx.de> References: <20170321142802.24276-1-sr@denx.de> <20170321142802.24276-4-sr@denx.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Mar 21, 2017 at 9:27 AM, Stefan Roese wrote: > From: Thomas Petazzoni > > 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 > Signed-off-by: Stefan Roese Acked-by: Joe Hershberger