diff options
author | Camelia Groza <camelia.groza@nxp.com> | 2017-07-13 14:26:02 (GMT) |
---|---|---|
committer | Xie Xiaobo <xiaobo.xie@nxp.com> | 2017-09-25 07:25:48 (GMT) |
commit | 09d7af0db5d4bf54b523ab2f46c0678dc04d204d (patch) | |
tree | 5fa6e8228a69c28c7c715a392c3476077e35bd41 /drivers | |
parent | 5549919dcbe9896120fad6401d022ca8158f83bd (diff) | |
download | linux-09d7af0db5d4bf54b523ab2f46c0678dc04d204d.tar.xz |
sdk_dpaa: ls1043a errata: resplit the skb after copy
Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_sg.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_sg.c b/drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_sg.c index 4156c0e..726199e 100644 --- a/drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_sg.c +++ b/drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_sg.c @@ -1020,6 +1020,7 @@ int __hot dpa_tx_extended(struct sk_buff *skb, struct net_device *net_dev, #endif /* CONFIG_FSL_DPAA_TS */ #ifndef CONFIG_PPC +resplit_4k: if (unlikely(dpaa_errata_a010022)) { skb = split_skb_at_4k_boundaries(skb); if (!skb) @@ -1064,6 +1065,10 @@ int __hot dpa_tx_extended(struct sk_buff *skb, struct net_device *net_dev, struct sk_buff *nskb = skb_copy(skb, GFP_ATOMIC); kfree_skb(skb); skb = nskb; +#ifndef CONFIG_PPC + if (unlikely(dpaa_errata_a010022)) + goto resplit_4k; +#endif /* skb_copy() has now linearized the skbuff. */ } else if (unlikely(nonlinear)) { /* We are here because the egress skb contains |