diff mbox series

[net,v2] docs: net: fix documentation on .ndo_get_stats

Message ID 20210105012224.1681573-1-kuba@kernel.org
State New
Headers show
Series [net,v2] docs: net: fix documentation on .ndo_get_stats | expand

Commit Message

Jakub Kicinski Jan. 5, 2021, 1:22 a.m. UTC
Fix calling context.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
 Documentation/networking/netdevices.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

David Miller Jan. 6, 2021, 12:42 a.m. UTC | #1
From: Jakub Kicinski <kuba@kernel.org>

Date: Mon,  4 Jan 2021 17:22:24 -0800

> Fix calling context.

> 

> Signed-off-by: Jakub Kicinski <kuba@kernel.org>


Applied, thanks.
diff mbox series

Patch

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 @@  struct net_device synchronization rules
 	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.