Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4ec49a37 authored by Vineet Gupta's avatar Vineet Gupta Committed by David S. Miller
Browse files

stmmac: replace open coded __netdev_alloc_skb_ip_align() with actual call



This also matches with the sibling call netdev_alloc_skb_ip_align() made in
rx fast path.

Signed-off-by: default avatarVineet Gupta <vgupta@synopsys.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3f6e785f
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -975,13 +975,11 @@ static int stmmac_init_rx_buffers(struct stmmac_priv *priv, struct dma_desc *p,
{
	struct sk_buff *skb;

	skb = __netdev_alloc_skb(priv->dev, priv->dma_buf_sz + NET_IP_ALIGN,
				 flags);
	skb = __netdev_alloc_skb_ip_align(priv->dev, priv->dma_buf_sz, flags);
	if (!skb) {
		pr_err("%s: Rx init fails; skb is NULL\n", __func__);
		return -ENOMEM;
	}
	skb_reserve(skb, NET_IP_ALIGN);
	priv->rx_skbuff[i] = skb;
	priv->rx_skbuff_dma[i] = dma_map_single(priv->device, skb->data,
						priv->dma_buf_sz,