linux/drivers/net/ethernet/freescale
Ioana Ciornei d5f4e19a85 dpaa2-eth: use the correct software annotation field
The incorrect software annotation field was being used, swa->sg.sgt_size
instead of swa->tso.sgt_size, which meant that the SGT buffer was
unmapped with a wrong size.
This is also confirmed by the DMA API debug prints which showed the
following:

[   38.962434] DMA-API: fsl_dpaa2_eth dpni.2: device driver frees DMA memory with different size [device address=0x0000fffffafba740] [map size=224 bytes] [unmap size=0 bytes]
[   38.980496] WARNING: CPU: 11 PID: 1131 at kernel/dma/debug.c:973 check_unmap+0x58c/0x9b0
[   38.988586] Modules linked in:
[   38.991631] CPU: 11 PID: 1131 Comm: iperf3 Not tainted 5.18.0-rc7-00117-g59130eeb2b8f #1972
[   38.999970] Hardware name: NXP Layerscape LX2160ARDB (DT)

Fixes: 3dc709e0cd ("dpaa2-eth: add support for software TSO")
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-05-22 22:18:05 +01:00
..
dpaa dpaa_eth: Fix missing of_node_put in dpaa_get_ts_info() 2022-04-11 12:02:33 +01:00
dpaa2 dpaa2-eth: use the correct software annotation field 2022-05-22 22:18:05 +01:00
enetc net: enetc: allow tc-etf offload even with NETIF_F_CSUM_MASK 2022-04-28 09:45:48 -07:00
fman Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-01-09 17:00:17 -08:00
fs_enet ethernet: use of_get_ethdev_address() 2021-10-07 13:39:51 +01:00
fec_main.c net: fec: Do proper error checking for optional clks 2022-05-22 21:47:13 +01:00
fec_mpc52xx_phy.c
fec_mpc52xx.c net: fec_mpc52xx: don't discard const from netdev->dev_addr 2022-01-25 11:10:46 +00:00
fec_mpc52xx.h
fec_ptp.c net: fec_ptp: remove redundant initialization of variable val 2022-01-24 17:07:37 -08:00
fec.h net: fec: only clear interrupt of handling queue in fec_enet_rx_queue() 2021-12-07 21:39:39 -08:00
fsl_pq_mdio.c net: freescale: convert comma to semicolon 2020-12-09 16:23:08 -08:00
gianfar_ethtool.c gianfar: ethtool: Fix refcount leak in gfar_get_ts_info 2022-03-10 12:20:54 -08:00
gianfar.c net_tstamp: add new flag HWTSTAMP_FLAG_BONDED_PHC_INDEX 2021-12-14 12:28:24 +00:00
gianfar.h net: gianfar: Implement rx_missed_errors counter 2021-06-17 11:39:48 -07:00
Kconfig ethernet: fix PTP_1588_CLOCK dependencies 2021-08-13 17:49:05 -07:00
Makefile net: enetc: fix link error again 2021-04-22 13:23:07 -07:00
ucc_geth_ethtool.c ethtool: extend ringparam setting/getting API with rx_buf_len 2021-11-22 12:31:49 +00:00
ucc_geth.c ethernet: use of_get_ethdev_address() 2021-10-07 13:39:51 +01:00
ucc_geth.h ethernet: ucc_geth: simplify rx/tx allocations 2021-01-21 12:19:56 -08:00
xgmac_mdio.c net/fsl: xgmac_mdio: use correct format characters 2022-03-17 16:34:12 -07:00