diff options
author | Finn Thain <[email protected]> | 2020-01-23 09:07:26 +1100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2020-01-23 21:24:36 +0100 |
commit | 865ad2f2201dc18685ba2686f13217f8b3a9c52c (patch) | |
tree | 3ef509d765bcb69bf2a1c179114ba4555b8c9a55 /drivers/fpga/fpga-mgr.c | |
parent | 457bfc0a4bf531487ecc3cf82ec728a5e114fb1e (diff) |
net/sonic: Add mutual exclusion for accessing shared state
The netif_stop_queue() call in sonic_send_packet() races with the
netif_wake_queue() call in sonic_interrupt(). This causes issues
like "NETDEV WATCHDOG: eth0 (macsonic): transmit queue 0 timed out".
Fix this by disabling interrupts when accessing tx_skb[] and next_tx.
Update a comment to clarify the synchronization properties.
Fixes: efcce839360f ("[PATCH] macsonic/jazzsonic network drivers update")
Tested-by: Stan Johnson <[email protected]>
Signed-off-by: Finn Thain <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions