Replace netdev_alloc_skb_ip_align with netdev_alloc_skb.
This is needed to support all configurations of AXIDMA.
If DRE in AXIDMA is not selected, the alignment of IP will cause failures.
Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
sizeof(*lp->rx_bd_v) *
((i + 1) % RX_BD_NUM);
- skb = netdev_alloc_skb_ip_align(ndev, lp->max_frm_size);
+ skb = netdev_alloc_skb(ndev, lp->max_frm_size);
if (!skb)
goto out;
size += length;
packets++;
- new_skb = netdev_alloc_skb_ip_align(ndev, lp->max_frm_size);
+ new_skb = netdev_alloc_skb(ndev, lp->max_frm_size);
if (new_skb == NULL) {
dev_err(lp->dev, "No memory for new_skb\n\r");
break;