@@ -1483,7 +1483,7 @@ static int ip_vs_flush(struct net *net)
14831483 * Delete service by {netns} in the service table.
14841484 * Called by __ip_vs_cleanup()
14851485 */
1486- void __ip_vs_service_cleanup (struct net * net )
1486+ void ip_vs_service_net_cleanup (struct net * net )
14871487{
14881488 EnterFunction (2 );
14891489 /* Check for "full" addressed entries */
@@ -1662,7 +1662,7 @@ proc_do_sync_mode(ctl_table *table, int write,
16621662/*
16631663 * IPVS sysctl table (under the /proc/sys/net/ipv4/vs/)
16641664 * Do not change order or insert new entries without
1665- * align with netns init in __ip_vs_control_init ()
1665+ * align with netns init in ip_vs_control_net_init ()
16661666 */
16671667
16681668static struct ctl_table vs_vars [] = {
@@ -3595,7 +3595,7 @@ static void ip_vs_genl_unregister(void)
35953595 * per netns intit/exit func.
35963596 */
35973597#ifdef CONFIG_SYSCTL
3598- int __net_init __ip_vs_control_init_sysctl (struct net * net )
3598+ int __net_init ip_vs_control_net_init_sysctl (struct net * net )
35993599{
36003600 int idx ;
36013601 struct netns_ipvs * ipvs = net_ipvs (net );
@@ -3654,7 +3654,7 @@ int __net_init __ip_vs_control_init_sysctl(struct net *net)
36543654 return 0 ;
36553655}
36563656
3657- void __net_init __ip_vs_control_cleanup_sysctl (struct net * net )
3657+ void __net_init ip_vs_control_net_cleanup_sysctl (struct net * net )
36583658{
36593659 struct netns_ipvs * ipvs = net_ipvs (net );
36603660
@@ -3665,16 +3665,16 @@ void __net_init __ip_vs_control_cleanup_sysctl(struct net *net)
36653665
36663666#else
36673667
3668- int __net_init __ip_vs_control_init_sysctl (struct net * net ) { return 0 ; }
3669- void __net_init __ip_vs_control_cleanup_sysctl (struct net * net ) { }
3668+ int __net_init ip_vs_control_net_init_sysctl (struct net * net ) { return 0 ; }
3669+ void __net_init ip_vs_control_net_cleanup_sysctl (struct net * net ) { }
36703670
36713671#endif
36723672
36733673static struct notifier_block ip_vs_dst_notifier = {
36743674 .notifier_call = ip_vs_dst_event ,
36753675};
36763676
3677- int __net_init __ip_vs_control_init (struct net * net )
3677+ int __net_init ip_vs_control_net_init (struct net * net )
36783678{
36793679 int idx ;
36803680 struct netns_ipvs * ipvs = net_ipvs (net );
@@ -3702,7 +3702,7 @@ int __net_init __ip_vs_control_init(struct net *net)
37023702 proc_net_fops_create (net , "ip_vs_stats_percpu" , 0 ,
37033703 & ip_vs_stats_percpu_fops );
37043704
3705- if (__ip_vs_control_init_sysctl (net ))
3705+ if (ip_vs_control_net_init_sysctl (net ))
37063706 goto err ;
37073707
37083708 return 0 ;
@@ -3712,13 +3712,13 @@ int __net_init __ip_vs_control_init(struct net *net)
37123712 return - ENOMEM ;
37133713}
37143714
3715- void __net_exit __ip_vs_control_cleanup (struct net * net )
3715+ void __net_exit ip_vs_control_net_cleanup (struct net * net )
37163716{
37173717 struct netns_ipvs * ipvs = net_ipvs (net );
37183718
37193719 ip_vs_trash_cleanup (net );
37203720 ip_vs_stop_estimator (net , & ipvs -> tot_stats );
3721- __ip_vs_control_cleanup_sysctl (net );
3721+ ip_vs_control_net_cleanup_sysctl (net );
37223722 proc_net_remove (net , "ip_vs_stats_percpu" );
37233723 proc_net_remove (net , "ip_vs_stats" );
37243724 proc_net_remove (net , "ip_vs" );
0 commit comments