diff options
author | Leon Romanovsky <leonro@mellanox.com> | 2017-05-23 14:38:15 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-07-17 21:21:24 -0400 |
commit | 8900b894e769dd88b53e519e3502e0e3c349fe95 (patch) | |
tree | eb1d5d8d7a17cdfc737df6056bf8847cb1d3e2c4 /drivers/net/ethernet/mellanox/mlx4/en_tx.c | |
parent | 0f4d027c3b4240ecb314daa948238d459fdc3a00 (diff) | |
download | linux-stable-8900b894e769dd88b53e519e3502e0e3c349fe95.tar.gz linux-stable-8900b894e769dd88b53e519e3502e0e3c349fe95.tar.bz2 linux-stable-8900b894e769dd88b53e519e3502e0e3c349fe95.zip |
{net, IB}/mlx4: Remove gfp flags argument
The caller to the driver marks GFP_NOIO allocations with help
of memalloc_noio-* calls now. This makes redundant to pass down
to the driver gfp flags, which can be GFP_KERNEL only.
The patch removes the gfp flags argument and updates all driver paths.
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/en_tx.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/en_tx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_tx.c b/drivers/net/ethernet/mellanox/mlx4/en_tx.c index 4f3a9b27ce4a..73faa3d77921 100644 --- a/drivers/net/ethernet/mellanox/mlx4/en_tx.c +++ b/drivers/net/ethernet/mellanox/mlx4/en_tx.c @@ -111,7 +111,7 @@ int mlx4_en_create_tx_ring(struct mlx4_en_priv *priv, goto err_hwq_res; } - err = mlx4_qp_alloc(mdev->dev, ring->qpn, &ring->sp_qp, GFP_KERNEL); + err = mlx4_qp_alloc(mdev->dev, ring->qpn, &ring->sp_qp); if (err) { en_err(priv, "Failed allocating qp %d\n", ring->qpn); goto err_reserve; |