summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/smsc
diff options
context:
space:
mode:
authorGanji Aravind <ganji.aravind@chelsio.com>2020-08-18 18:40:58 +0300
committerDavid S. Miller <davem@davemloft.net>2020-08-18 23:02:51 +0300
commitc650e04898072e4b579cbf8d9dd5b86bcdbe9b00 (patch)
tree18b6a4c5eb0c1d56c13c0705f5e3115bd163d4e6 /drivers/net/ethernet/smsc
parent335956421c86f64fd46186d76d3961f6adcff187 (diff)
downloadlinux-c650e04898072e4b579cbf8d9dd5b86bcdbe9b00.tar.xz
cxgb4: Fix race between loopback and normal Tx path
Even after Tx queues are marked stopped, there exists a small window where the current packet in the normal Tx path is still being sent out and loopback selftest ends up corrupting the same Tx ring. So, ensure selftest takes the Tx lock to synchronize access the Tx ring. Fixes: 7235ffae3d2c ("cxgb4: add loopback ethtool self-test") Signed-off-by: Ganji Aravind <ganji.aravind@chelsio.com> Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/smsc')
0 files changed, 0 insertions, 0 deletions