mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	ipv4: route: set ipv4 RTM_GETROUTE to not use rtnl
Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
		
							parent
							
								
									e3a22b7f5c
								
							
						
					
					
						commit
						394f51abb3
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -3073,7 +3073,8 @@ int __init ip_rt_init(void)
 | 
			
		|||
	xfrm_init();
 | 
			
		||||
	xfrm4_init();
 | 
			
		||||
#endif
 | 
			
		||||
	rtnl_register(PF_INET, RTM_GETROUTE, inet_rtm_getroute, NULL, 0);
 | 
			
		||||
	rtnl_register(PF_INET, RTM_GETROUTE, inet_rtm_getroute, NULL,
 | 
			
		||||
		      RTNL_FLAG_DOIT_UNLOCKED);
 | 
			
		||||
 | 
			
		||||
#ifdef CONFIG_SYSCTL
 | 
			
		||||
	register_pernet_subsys(&sysctl_route_ops);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue