diff mbox series

ipv6: correct comments about fib6_node sernum

Message ID 20210823034900.22967-1-zhangkaiheb@126.com (mailing list archive)
State Accepted
Commit 446e7f218b7662c912c610aae99069543aa88a40
Delegated to: Netdev Maintainers
Headers show
Series ipv6: correct comments about fib6_node sernum | expand

Checks

Context Check Description
netdev/cover_letter success Link
netdev/fixes_present success Link
netdev/patch_count success Link
netdev/tree_selection success Guessed tree name to be net-next
netdev/subject_prefix warning Target tree name not specified in the subject
netdev/cc_maintainers success CCed 5 of 5 maintainers
netdev/source_inline success Was 0 now: 0
netdev/verify_signedoff success Link
netdev/module_param success Was 0 now: 0
netdev/build_32bit fail Errors and warnings before: 665 this patch: 665
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/verify_fixes success Link
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 24 lines checked
netdev/build_allmodconfig_warn fail Errors and warnings before: 631 this patch: 631
netdev/header_inline success Link

Commit Message

kai zhang Aug. 23, 2021, 3:49 a.m. UTC
correct comments in set and get fn_sernum

Signed-off-by: zhang kai <zhangkaiheb@126.com>
---
 include/net/ip6_fib.h | 4 ++--
 net/ipv6/ip6_fib.c    | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

Comments

David Ahern Aug. 24, 2021, 4:21 a.m. UTC | #1
On 8/22/21 9:49 PM, zhang kai wrote:
> correct comments in set and get fn_sernum
> 
> Signed-off-by: zhang kai <zhangkaiheb@126.com>
> ---
>  include/net/ip6_fib.h | 4 ++--
>  net/ipv6/ip6_fib.c    | 2 +-
>  2 files changed, 3 insertions(+), 3 deletions(-)
> 



Reviewed-by: David Ahern <dsahern@kernel.org>
patchwork-bot+netdevbpf@kernel.org Aug. 24, 2021, 9:10 a.m. UTC | #2
Hello:

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

On Mon, 23 Aug 2021 11:49:00 +0800 you wrote:
> correct comments in set and get fn_sernum
> 
> Signed-off-by: zhang kai <zhangkaiheb@126.com>
> ---
>  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
diff mbox series

Patch

diff --git a/include/net/ip6_fib.h b/include/net/ip6_fib.h
index 15b7fbe6b..c412dde4d 100644
--- a/include/net/ip6_fib.h
+++ b/include/net/ip6_fib.h
@@ -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;
 	}
diff --git a/net/ipv6/ip6_fib.c b/net/ipv6/ip6_fib.c
index 679699e95..4d7b93baa 100644
--- a/net/ipv6/ip6_fib.c
+++ b/net/ipv6/ip6_fib.c
@@ -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;