layerscape: add patches-5.4
[openwrt/openwrt.git] / target / linux / layerscape / patches-5.4 / 701-net-0117-dpaa_eth-ERR010022-align-skb_shinfo.patch
1 From d640266a4307a4c857b27c90d56c9161dd615bcb Mon Sep 17 00:00:00 2001
2 From: Camelia Groza <camelia.groza@nxp.com>
3 Date: Mon, 22 Jul 2019 14:50:10 +0300
4 Subject: [PATCH] dpaa_eth: ERR010022: align skb_shinfo
5
6 Cache-line align the new skb's shared info field.
7
8 Signed-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 */