]> git.baikalelectronics.ru Git - kernel.git/commit
net: lantiq: Add locking for TX DMA channel
authorHauke Mehrtens <hauke@hauke-m.de>
Tue, 22 Sep 2020 21:41:12 +0000 (23:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Sep 2020 01:01:03 +0000 (18:01 -0700)
commita90784a4c3b6c09fbf1a93b2d71c729e3631ddca
tree08ba91f1fe341c5335f11667088bcc207b6dac0e
parent58a55894eca33eee5a66080a65359f14c0acca28
net: lantiq: Add locking for TX DMA channel

The TX DMA channel data is accessed by the xrx200_start_xmit() and the
xrx200_tx_housekeeping() function from different threads. Make sure the
accesses are synchronized by acquiring the netif_tx_lock() in the
xrx200_tx_housekeeping() function too. This lock is acquired by the
kernel before calling xrx200_start_xmit().

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/lantiq_xrx200.c