diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2020-01-23 01:07:26 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-01-23 23:24:36 +0300 |
commit | 865ad2f2201dc18685ba2686f13217f8b3a9c52c (patch) | |
tree | 3ef509d765bcb69bf2a1c179114ba4555b8c9a55 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 457bfc0a4bf531487ecc3cf82ec728a5e114fb1e (diff) | |
download | linux-865ad2f2201dc18685ba2686f13217f8b3a9c52c.tar.xz |
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 <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions