Skip to content

Commit

Permalink
net: stmmac: refactor stmmac_init_rx_buffers for stmmac_reinit_rx_buf…
Browse files Browse the repository at this point in the history
…fers

The per-queue RX buffer allocation in stmmac_reinit_rx_buffers() can be
made to use stmmac_alloc_rx_buffers() by merging the page_pool alloc
checks for "buf->page" and "buf->sec_page" in stmmac_init_rx_buffers().

This is in preparation for XSK pool allocation later.

Signed-off-by: Ong Boon Leong <boon.leong.ong@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
elvinongbl authored and davem330 committed Apr 13, 2021
1 parent 80f573c commit da5ec7f
Showing 1 changed file with 189 additions and 189 deletions.
Loading

0 comments on commit da5ec7f

Please sign in to comment.