]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: altera: TSE: do not use tx queue lock in tx completion handler
authorLino Sanfilippo <LinoSanfilippo@gmx.de>
Wed, 30 Nov 2016 22:48:32 +0000 (23:48 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Dec 2016 17:10:25 +0000 (12:10 -0500)
commitf87a39c4d58232f717820a06fbe8c98d67f00141
treed61537ba3843dd29b6ee988f76ace4368adf8ee6
parent1b5a1b43ac0135d2966e9d4146d7aa5972f0e34e
net: ethernet: altera: TSE: do not use tx queue lock in tx completion handler

The driver already uses its private lock for synchronization between xmit
and xmit completion handler making the additional use of the xmit_lock
unnecessary.
Furthermore the driver does not set NETIF_F_LLTX resulting in xmit to be
called with the xmit_lock held and then taking the private lock while xmit
completion handler does the reverse, first take the private lock, then the
xmit_lock.
Fix these issues by not taking the xmit_lock in the tx completion handler.

Signed-off-by: Lino Sanfilippo <LinoSanfilippo@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/altera/altera_tse_main.c