summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen Minqiang <ptpt52@gmail.com>2018-06-17 04:31:43 +0800
committerJohn Crispin <john@phrozen.org>2018-06-18 21:21:55 +0200
commit520c656d7ba908f219f60b188660b41ddc138c67 (patch)
tree70468a4e6754c1d3307ba5c3fe6bd00b11c62822
parent370078466c28bf9be0cc080e4e97724141cf2912 (diff)
downloadmtk-20170518-520c656d7ba908f219f60b188660b41ddc138c67.zip
mtk-20170518-520c656d7ba908f219f60b188660b41ddc138c67.tar.gz
mtk-20170518-520c656d7ba908f219f60b188660b41ddc138c67.tar.bz2
ipq40xx: essedma: fixup ip align
This fixup ip align in essedma driver rx path see cat /proc/cpu/alignment which reports alignment-fixups without this fix. Signed-off-by: Chen Minqiang <ptpt52@gmail.com> (cherry picked from commit 8f804f42d52e49191429ad1d716e7adb3cd10ceb)
-rw-r--r--target/linux/ipq40xx/patches-4.14/902-essedma-alloc-skb-ip-align.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/target/linux/ipq40xx/patches-4.14/902-essedma-alloc-skb-ip-align.patch b/target/linux/ipq40xx/patches-4.14/902-essedma-alloc-skb-ip-align.patch
new file mode 100644
index 0000000..82766c1
--- /dev/null
+++ b/target/linux/ipq40xx/patches-4.14/902-essedma-alloc-skb-ip-align.patch
@@ -0,0 +1,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
+