diff options
author | Matteo Croce <technoboy85@gmail.com> | 2021-05-21 04:26:38 +0300 |
---|---|---|
committer | Emil Renner Berthing <emil.renner.berthing@canonical.com> | 2022-10-25 18:36:45 +0300 |
commit | 271f407c2442e9778b2e04f246a4c3169c7e1a3e (patch) | |
tree | 21fd0c6392d1e46862d55451c220ce4dc302494d | |
parent | 247190166e5b8eb1408db33ad42a429f18dad481 (diff) | |
download | linux-271f407c2442e9778b2e04f246a4c3169c7e1a3e.tar.xz |
net: stmmac: use GFP_DMA32
Signed-off-by: Matteo Croce <mcroce@microsoft.com>
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index 8d9272f01e31..0c07dddc4e79 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -1392,7 +1392,7 @@ static int stmmac_init_rx_buffers(struct stmmac_priv *priv, struct dma_desc *p, { struct stmmac_rx_queue *rx_q = &priv->rx_queue[queue]; struct stmmac_rx_buffer *buf = &rx_q->buf_pool[i]; - gfp_t gfp = (GFP_ATOMIC | __GFP_NOWARN); + gfp_t gfp = (GFP_ATOMIC | __GFP_NOWARN | GFP_DMA32); if (priv->dma_cap.addr64 <= 32) gfp |= GFP_DMA32; @@ -4456,7 +4456,7 @@ static inline void stmmac_rx_refill(struct stmmac_priv *priv, u32 queue) struct stmmac_rx_queue *rx_q = &priv->rx_queue[queue]; int dirty = stmmac_rx_dirty(priv, queue); unsigned int entry = rx_q->dirty_rx; - gfp_t gfp = (GFP_ATOMIC | __GFP_NOWARN); + gfp_t gfp = (GFP_ATOMIC | __GFP_NOWARN | GFP_DMA32); if (priv->dma_cap.addr64 <= 32) gfp |= GFP_DMA32; |