linux/drivers/soc/fsl
Ioana Ciornei 86ec882f59 soc: fsl: dpio: read the consumer index from the cache inhibited area
Once we added support in the dpaa2-eth for driver level software TSO we
observed the following situation: if the EQCR CI (consumer index) is
read from the cache-enabled area we sometimes end up with a computed
value of available enqueue entries bigger than the size of the ring.

This eventually will lead to the multiple enqueue of the same FD which
will determine the same FD to end up on the Tx confirmation path and the
same skb being freed twice.

Just read the consumer index from the cache inhibited area so that we
avoid this situation.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-02-09 13:15:35 +00:00
..
dpio soc: fsl: dpio: read the consumer index from the cache inhibited area 2022-02-09 13:15:35 +00:00
qbman cpumask: replace cpumask_next_* with cpumask_first_* where appropriate 2022-01-15 08:47:31 -08:00
qe soc: fsl: qe: fix static checker warning 2021-08-13 16:56:10 -05:00
dpaa2-console.c soc: fsl: dpaa2-console: free buffer before returning from dpaa2_console_read 2021-10-21 18:19:52 -05:00
guts.c soc: fsl: guts: Make use of the helper function devm_platform_ioremap_resource() 2021-10-21 19:34:47 -05:00
Kconfig soc: fsl: dpio: add Net DIM integration 2021-10-15 14:32:41 +01:00
Makefile soc: fsl: add RCPM driver 2019-11-12 15:26:05 -06:00
rcpm.c soc: fsl: rcpm: Make use of the helper function devm_platform_ioremap_resource() 2021-10-21 19:37:32 -05:00