mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 09:39:00 +00:00
24 lines
851 B
Diff
24 lines
851 B
Diff
|
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 */
|