blob: fbf1254db3e9f0c3009502599bf825e69bd179bc [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From d640266a4307a4c857b27c90d56c9161dd615bcb Mon Sep 17 00:00:00 2001
2From: Camelia Groza <camelia.groza@nxp.com>
3Date: Mon, 22 Jul 2019 14:50:10 +0300
4Subject: [PATCH] dpaa_eth: ERR010022: align skb_shinfo
5
6Cache-line align the new skb's shared info field.
7
8Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
9---
10 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13--- a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
14+++ b/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
15@@ -2171,7 +2171,7 @@ static struct sk_buff *dpaa_errata_a0100
16 * aligned to 256.
17 */
18 headroom = DPAA_A010022_HEADROOM;
19- nsize = headroom + skb->len +
20+ nsize = ALIGN(headroom + skb->len, SMP_CACHE_BYTES) +
21 SKB_DATA_ALIGN(sizeof(struct skb_shared_info));
22
23 /* Reserve enough memory to accommodate Jumbo frames */