Avoid deadlock situation due to use of xmit_lock

From: Lino Sanfilippo
Date: Fri Dec 02 2016 - 18:06:32 EST


Hi,

after stumbling over a potential deadlock situation in the altera driver
(see http://marc.info/?l=linux-netdev&m=148054615230447&w=2), I checked
all other ethernet drivers for the same issue and actually found it in 2
more, namely stmmac, and sxgbe. Please see the commit messages for a
description of the problem.
These 2 patches fix the concerning drivers.

Regards,
Lino