linux/drivers/net/ethernet/freescale/dpaa2
Ioana Ciornei 8c838f53e1 dpaa2-eth: fix race condition with bql frame accounting
It might happen that Tx conf acknowledges a frame before it was
subscribed in bql, as subscribing was previously done after the enqueue
operation.

This patch moves the netdev_tx_sent_queue call before the actual frame
enqueue, so that this can never happen.

Fixes: 569dac6a5a ("dpaa2-eth: bql support")
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-03-26 11:43:49 -07:00
..
dpaa2-eth-debugfs.c dpaa2-eth: add debugfs statistics 2019-01-19 10:28:43 -08:00
dpaa2-eth-debugfs.h dpaa2-eth: add debugfs statistics 2019-01-19 10:28:43 -08:00
dpaa2-eth-trace.h
dpaa2-eth.c dpaa2-eth: fix race condition with bql frame accounting 2019-03-26 11:43:49 -07:00
dpaa2-eth.h dpaa2-eth: add XDP_REDIRECT support 2019-03-03 20:41:18 -08:00
dpaa2-ethtool.c dpaa2-eth: add XDP_REDIRECT support 2019-03-03 20:41:18 -08:00
dpaa2-ptp.c dpaa2-ptp: defer probe when portal allocation failed 2018-11-09 20:08:58 -08:00
dpaa2-ptp.h net: dpaa2: move DPAA2 PTP driver out of staging/ 2018-10-08 10:23:22 -07:00
dpkg.h
dpni-cmd.h dpaa2-eth: Add ethtool support for flow classification 2018-10-02 22:24:08 -07:00
dpni.c dpaa2-eth: Add ethtool support for flow classification 2018-10-02 22:24:08 -07:00
dpni.h dpaa2-eth: Add ethtool support for flow classification 2018-10-02 22:24:08 -07:00
dprtc-cmd.h net: dpaa2: remove unused code for dprtc 2018-10-08 10:23:22 -07:00
dprtc.c net: dpaa2: remove unused code for dprtc 2018-10-08 10:23:22 -07:00
dprtc.h net: dpaa2: remove unused code for dprtc 2018-10-08 10:23:22 -07:00
Kconfig net: dpaa2: improve PTP Kconfig option 2019-01-22 17:38:14 -08:00
Makefile dpaa2-eth: add debugfs statistics 2019-01-19 10:28:43 -08:00