[Linux-stm32] [PATCH net-next v2 3/3] net: stmmac: Introducing support for Page Pool

Jose Abreu Jose.Abreu at synopsys.com
Thu Jul 4 15:40:45 UTC 2019


From: Jesper Dangaard Brouer <brouer at redhat.com>

> This code is okay, but I would likely write it as:
> 
>   if (rx_q->page_pool) {
> 	page_pool_request_shutdown(rx_q->page_pool));
> 	page_pool_free(rx_q->page_pool);
>   }
> 
> Because (as you noticed) page_pool_free() have some API misuse checks,
> that will get triggered, and thus provide a warning of you forget to
> update this when driver evolves.

Yeah, makes sense. I will update and resend. Thanks for the review!



More information about the Linux-stm32 mailing list