diff options
author | Jakub Kicinski <kuba@kernel.org> | 2021-01-04 17:22:24 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-01-05 16:41:51 -0800 |
commit | 9f9d41f03bb07069e6e83ff4720cfea74a63898d (patch) | |
tree | 225ef6af3164931a44d7e9684b0c8c922ba26b5a /Documentation | |
parent | 8db25530835e09e0fbda3cabed1f7c5d1f1cd0c4 (diff) | |
download | lwn-9f9d41f03bb07069e6e83ff4720cfea74a63898d.tar.gz lwn-9f9d41f03bb07069e6e83ff4720cfea74a63898d.zip |
docs: net: fix documentation on .ndo_get_stats
Fix calling context.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/networking/netdevices.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/networking/netdevices.rst b/Documentation/networking/netdevices.rst index 5a85fcc80c76..e65665c5ab50 100644 --- a/Documentation/networking/netdevices.rst +++ b/Documentation/networking/netdevices.rst @@ -64,8 +64,8 @@ ndo_do_ioctl: Context: process ndo_get_stats: - Synchronization: dev_base_lock rwlock. - Context: nominally process, but don't sleep inside an rwlock + Synchronization: rtnl_lock() semaphore, dev_base_lock rwlock, or RCU. + Context: atomic (can't sleep under rwlock or RCU) ndo_start_xmit: Synchronization: __netif_tx_lock spinlock. |