Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ipmr: Define net->ipv4.{ipmr_notifier_ops,ipmr_seq} under CONFIG_IP_MROUTE.

net->ipv4.ipmr_notifier_ops and net->ipv4.ipmr_seq are used
only in net/ipv4/ipmr.c.

Let's move these definitions under CONFIG_IP_MROUTE.

Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260228221800.1082070-13-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Kuniyuki Iwashima and committed by
Jakub Kicinski
1c36d186 478c2add

+2 -3
+2 -3
include/net/netns/ipv4.h
··· 279 279 struct list_head mr_tables; 280 280 struct fib_rules_ops *mr_rules_ops; 281 281 #endif 282 + struct fib_notifier_ops *ipmr_notifier_ops; 283 + unsigned int ipmr_seq; /* protected by rtnl_mutex */ 282 284 #endif 283 285 #ifdef CONFIG_IP_ROUTE_MULTIPATH 284 286 struct sysctl_fib_multipath_hash_seed sysctl_fib_multipath_hash_seed; ··· 291 289 292 290 struct fib_notifier_ops *notifier_ops; 293 291 unsigned int fib_seq; /* writes protected by rtnl_mutex */ 294 - 295 - struct fib_notifier_ops *ipmr_notifier_ops; 296 - unsigned int ipmr_seq; /* protected by rtnl_mutex */ 297 292 298 293 atomic_t rt_genid; 299 294 siphash_key_t ip_id_key;