]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
batman-adv: document cleanup of batadv_wifi_net_devices entries
authorSven Eckelmann <sven@narfation.org>
Wed, 3 Jun 2026 08:47:53 +0000 (10:47 +0200)
committerSven Eckelmann <sven@narfation.org>
Fri, 5 Jun 2026 07:12:07 +0000 (09:12 +0200)
It doesn't seem to be obvious how the entries from the
batadv_wifi_net_devices rhashtable are getting removed before the actual
rhashtable is destroyed. Document the idea behind the process and which
steps are involved.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/hard-interface.c

index 04b227ec8052511e768e9f2591058e22e504eb03..e2c85bd8dbb53274a9f684e8164e4721ba280b51 100644 (file)
@@ -1185,5 +1185,9 @@ int __init batadv_wifi_net_devices_init(void)
  */
 void batadv_wifi_net_devices_deinit(void)
 {
+       /* just destroy table. entries should have been removed by
+        * unregister_netdevice_notifier() and the corresponding
+        * NETDEV_UNREGISTER events
+        */
        rhashtable_destroy(&batadv_wifi_net_devices);
 }