aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ipq40xx/patches-4.14/902-essedma-alloc-skb-ip-align.patch
blob: 82766c1f2c4dcc95552cad893a69806ab748ecec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 17681f0bb474d0d227f07369144149d1555d8bce Mon Sep 17 00:00:00 2001
From: Chen Minqiang <ptpt52@gmail.com>
Date: Sun, 17 Jun 2018 04:14:13 +0800
Subject: [PATCH] essedma: alloc skb ip align

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
---
 drivers/net/ethernet/qualcomm/essedma/edma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/qualcomm/essedma/edma.c b/drivers/net/ethernet/qualcomm/essedma/edma.c
index a3c0d66..29bc9f8 100644
--- a/drivers/net/ethernet/qualcomm/essedma/edma.c
+++ b/drivers/net/ethernet/qualcomm/essedma/edma.c
@@ -193,7 +193,7 @@ static int edma_alloc_rx_buf(struct edma_common_info
 			skb = sw_desc->skb;
 		} else {
 			/* alloc skb */
-			skb = netdev_alloc_skb(edma_netdev[0], length);
+			skb = netdev_alloc_skb_ip_align(edma_netdev[0], length);
 			if (!skb) {
 				/* Better luck next round */
 				break;
-- 
2.17.1