Skip to contentSkip to conversation

ipv6: correct comments about fib6_node sernum

PATCH Applied zhang kai 3 participants 3 messages Aug 23, 2021 – Aug 24, 2021

Subsystems (3)
lore
Share & tools
lore

zhang kai

author
#0 lore raw

PATCH 1/1 ipv6: correct comments about fib6_node sernum

correct comments in set and get fn_sernum

---
 include/net/ip6_fib.h | 4 ++--
 net/ipv6/ip6_fib.c    | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
include/net/ip6_fib.h +2 -2
index 15b7fbe6b..c412dde4d 100644
@@ -267,7 +267,7 @@ static inline bool fib6_check_expired(const struct fib6_info *f6i)
 	return false;
 }
 
-/* Function to safely get fn->sernum for passed in rt
+/* Function to safely get fn->fn_sernum for passed in rt
  * and store result in passed in cookie.
  * Return true if we can get cookie safely
  * Return false if not
@@ -282,7 +282,7 @@ static inline bool fib6_get_cookie_safe(const struct fib6_info *f6i,
 
 	if (fn) {
 		*cookie = fn->fn_sernum;
-		/* pairs with smp_wmb() in fib6_update_sernum_upto_root() */
+		/* pairs with smp_wmb() in __fib6_update_sernum_upto_root() */
 		smp_rmb();
 		status = true;
 	}
net/ipv6/ip6_fib.c +1 -1
index 679699e95..4d7b93baa 100644
@@ -1340,7 +1340,7 @@ static void __fib6_update_sernum_upto_root(struct fib6_info *rt,
 	struct fib6_node *fn = rcu_dereference_protected(rt->fib6_node,
 				lockdep_is_held(&rt->fib6_table->tb6_lock));
 
-	/* paired with smp_rmb() in rt6_get_cookie_safe() */
+	/* paired with smp_rmb() in fib6_get_cookie_safe() */
 	smp_wmb();
 	while (fn) {
 		fn->fn_sernum = sernum;
Signature · 1 line
2.17.1
#2 lore raw
In reply to zhang kai
This patch was applied to netdev/net.git (refs/heads/master):

Hello:

This patch was applied to netdev/net.git (refs/heads/master):

Quoted 7 lines · On Mon, 23 Aug 2021 11:49:00 +0800 you wrote:

correct comments in set and get fn_sernum

---
 include/net/ip6_fib.h | 4 ++--
 net/ipv6/ip6_fib.c    | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

Here is the summary with links:
- ipv6: correct comments about fib6_node sernum

    https://git.kernel.org/netdev/net/c/446e7f218b76

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html