linux_dsm_epyc7002/drivers/net/ethernet/amd/xgbe
Lendacky, Thomas 20986ed826 amd-xgbe: Fix race between access of desc and desc index
During Tx cleanup it's still possible for the descriptor data to be
read ahead of the descriptor index. A memory barrier is required between
the read of the descriptor index and the start of the Tx cleanup loop.
This allows a change to a lighter-weight barrier in the Tx transmit
routine just before updating the current descriptor index.

Since the memory barrier does result in extra overhead on arm64, keep
the previous change to not chase the current descriptor value. This
prevents the execution of the barrier for each loop performed.

Suggested-by: Alexander Duyck <alexander.duyck@gmail.com>
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-10-27 19:49:22 -07:00
..
Makefile amd-xgbe: Add traffic class support 2014-07-30 18:46:53 -07:00
xgbe-common.h amd-xgbe: Move the PHY support into amd-xgbe 2015-05-15 15:21:43 -04:00
xgbe-dcb.c amd-xgbe: Add netif_* message support to the driver 2015-05-15 15:21:43 -04:00
xgbe-debugfs.c amd-xgbe: Check for successful buffer allocation before use 2015-10-05 23:30:51 -07:00
xgbe-desc.c amd-xgbe: Fix DMA API debug warning 2015-07-08 15:57:14 -07:00
xgbe-dev.c amd-xgbe: Fix race between access of desc and desc index 2015-10-27 19:49:22 -07:00
xgbe-drv.c amd-xgbe: Fix race between access of desc and desc index 2015-10-27 19:49:22 -07:00
xgbe-ethtool.c amd-xgbe: Fix flow control setting logic 2015-05-15 15:21:43 -04:00
xgbe-main.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2015-06-24 16:49:49 -07:00
xgbe-mdio.c amd-xgbe: Add more netif_dbg output to the driver 2015-05-25 00:13:58 -04:00
xgbe-ptp.c ptp: xgbe: convert to the 64 bit get/set time methods. 2015-03-31 12:01:16 -04:00
xgbe.h treewide: fix typos in comment blocks 2015-08-07 14:46:24 +02:00