diff options
author | Ioana Radulescu <ruxandra.radulescu@nxp.com> | 2017-06-06 10:00:30 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-06-13 12:02:54 +0200 |
commit | e40ef9e48fa44cb1b5d51bf6e602d4a292cc5dfb (patch) | |
tree | c563713394c10ad3533200ec831766958bff860d /drivers/staging/fsl-dpaa2 | |
parent | d87d5baf64e90d81ea526e7cc32dbc015067c677 (diff) | |
download | linux-stable-e40ef9e48fa44cb1b5d51bf6e602d4a292cc5dfb.tar.gz linux-stable-e40ef9e48fa44cb1b5d51bf6e602d4a292cc5dfb.tar.bz2 linux-stable-e40ef9e48fa44cb1b5d51bf6e602d4a292cc5dfb.zip |
staging: fsl-dpaa2/eth: Don't use GFP_DMA
Don't use GFP_DMA when allocating memory for the hash key,
as we don't actually need to allocate from the lowest zone.
Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fsl-dpaa2')
-rw-r--r-- | drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c index bf6f300affa7..57628cd3ecf2 100644 --- a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c +++ b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c @@ -1996,7 +1996,7 @@ static int dpaa2_eth_set_hash(struct net_device *net_dev, u64 flags) priv->rx_hash_fields |= hash_fields[i].rxnfc_field; } - dma_mem = kzalloc(DPAA2_CLASSIFIER_DMA_SIZE, GFP_DMA | GFP_KERNEL); + dma_mem = kzalloc(DPAA2_CLASSIFIER_DMA_SIZE, GFP_KERNEL); if (!dma_mem) return -ENOMEM; |