Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

doc, net: Update documentation of synchronisation for TX multiqueue

Commits e308a5d806c852f56590ffdd3834d0df0cbed8d7 ('netdev: Add
netdev->addr_list_lock protection.') and
e8a0464cc950972824e2e128028ae3db666ec1ed ('netdev: Allocate multiple
queues for TX.') introduced more fine-grained locks.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Ben Hutchings and committed by
David S. Miller
04fd3d35 93b6a3ad

+3 -3
+3 -3
Documentation/networking/netdevices.txt
··· 65 65 Context: nominally process, but don't sleep inside an rwlock 66 66 67 67 dev->hard_start_xmit: 68 - Synchronization: netif_tx_lock spinlock. 68 + Synchronization: __netif_tx_lock spinlock. 69 69 70 70 When the driver sets NETIF_F_LLTX in dev->features this will be 71 71 called without holding netif_tx_lock. In this case the driver ··· 87 87 Only valid when NETIF_F_LLTX is set. 88 88 89 89 dev->tx_timeout: 90 - Synchronization: netif_tx_lock spinlock. 90 + Synchronization: netif_tx_lock spinlock; all TX queues frozen. 91 91 Context: BHs disabled 92 92 Notes: netif_queue_stopped() is guaranteed true 93 93 94 94 dev->set_rx_mode: 95 - Synchronization: netif_tx_lock spinlock. 95 + Synchronization: netif_addr_lock spinlock. 96 96 Context: BHs disabled 97 97 98 98 struct napi_struct synchronization rules