aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/layerscape/patches-5.4/701-net-0117-dpaa_eth-ERR010022-align-skb_shinfo.patch
blob: fbf1254db3e9f0c3009502599bf825e69bd179bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From d640266a4307a4c857b27c90d56c9161dd615bcb Mon Sep 17 00:00:00 2001
From: Camelia Groza <camelia.groza@nxp.com>
Date: Mon, 22 Jul 2019 14:50:10 +0300
Subject: [PATCH] dpaa_eth: ERR010022: align skb_shinfo

Cache-line align the new skb's shared info field.

Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
---
 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
+++ b/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
@@ -2171,7 +2171,7 @@ static struct sk_buff *dpaa_errata_a0100
 	 * aligned to 256.
 	 */
 	headroom = DPAA_A010022_HEADROOM;
-	nsize = headroom + skb->len +
+	nsize = ALIGN(headroom + skb->len, SMP_CACHE_BYTES) +
 		SKB_DATA_ALIGN(sizeof(struct skb_shared_info));
 
 	/* Reserve enough memory to accommodate Jumbo frames */