diff options
| author | Kuniyuki Iwashima <kuniyu@google.com> | 2026-06-05 01:46:32 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-06-09 03:06:24 +0300 |
| commit | a4c98421720a79587ad6c528f81fe7976a45976b (patch) | |
| tree | 807b1deec5ca9746a43954339f158f9cade44f20 /include/linux | |
| parent | 2290727b2fdb9f56f6fa2e06b4c5061c4f28e2df (diff) | |
| download | linux-a4c98421720a79587ad6c528f81fe7976a45976b.tar.xz | |
ip6mr: Replace RTNL with a dedicated mutex for MFC.
ip6mr does not have rtnetlink interface for MFC unlike ipmr,
which uses dev_get_by_index_rcu() to set struct mfcctl.mfcc_parent.
ip6mr_mfc_add() and ip6mr_mfc_delete() are called under RTNL
from ip6_mroute_setsockopt() only.
There are no RTNL dependant, but ip6_mroute_setsockopt() reuses
RTNL just for mrt->mfc_hash and mrt->mfc_cache_list.
Let's replace RTNL with a new per-netns mutex.
Later, ip6mr_notifier_ops and ipmr_seq will be moved under
CONFIG_IPV6_MROUTE.
Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20260604224712.3209821-15-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
