Skip to content

Commit

Permalink
doc, net: Update documentation of synchronisation for TX multiqueue
Browse files Browse the repository at this point in the history
Commits e308a5d ('netdev: Add
netdev->addr_list_lock protection.') and
e8a0464 ('netdev: Allocate multiple
queues for TX.') introduced more fine-grained locks.

Signed-off-by: Ben Hutchings <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Ben Hutchings authored and davem330 committed Apr 6, 2012
1 parent 93b6a3a commit 04fd3d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Documentation/networking/netdevices.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ dev->get_stats:
Context: nominally process, but don't sleep inside an rwlock

dev->hard_start_xmit:
Synchronization: netif_tx_lock spinlock.
Synchronization: __netif_tx_lock spinlock.

When the driver sets NETIF_F_LLTX in dev->features this will be
called without holding netif_tx_lock. In this case the driver
Expand All @@ -87,12 +87,12 @@ dev->hard_start_xmit:
Only valid when NETIF_F_LLTX is set.

dev->tx_timeout:
Synchronization: netif_tx_lock spinlock.
Synchronization: netif_tx_lock spinlock; all TX queues frozen.
Context: BHs disabled
Notes: netif_queue_stopped() is guaranteed true

dev->set_rx_mode:
Synchronization: netif_tx_lock spinlock.
Synchronization: netif_addr_lock spinlock.
Context: BHs disabled

struct napi_struct synchronization rules
Expand Down

0 comments on commit 04fd3d3

Please sign in to comment.