@@ -1061,8 +1061,6 @@ ip_vs_new_dest(struct ip_vs_service *svc, struct ip_vs_dest_user_kern *udest)
10611061 unsigned int atype ;
10621062 int ret ;
10631063
1064- EnterFunction (2 );
1065-
10661064#ifdef CONFIG_IP_VS_IPV6
10671065 if (udest -> af == AF_INET6 ) {
10681066 atype = ipv6_addr_type (& udest -> addr .in6 );
@@ -1111,7 +1109,6 @@ ip_vs_new_dest(struct ip_vs_service *svc, struct ip_vs_dest_user_kern *udest)
11111109 spin_lock_init (& dest -> dst_lock );
11121110 __ip_vs_update_dest (svc , dest , udest , 1 );
11131111
1114- LeaveFunction (2 );
11151112 return 0 ;
11161113
11171114err_stats :
@@ -1134,8 +1131,6 @@ ip_vs_add_dest(struct ip_vs_service *svc, struct ip_vs_dest_user_kern *udest)
11341131 __be16 dport = udest -> port ;
11351132 int ret ;
11361133
1137- EnterFunction (2 );
1138-
11391134 if (udest -> weight < 0 ) {
11401135 pr_err ("%s(): server weight less than zero\n" , __func__ );
11411136 return - ERANGE ;
@@ -1183,7 +1178,7 @@ ip_vs_add_dest(struct ip_vs_service *svc, struct ip_vs_dest_user_kern *udest)
11831178
11841179 ret = ip_vs_start_estimator (svc -> ipvs , & dest -> stats );
11851180 if (ret < 0 )
1186- goto err ;
1181+ return ret ;
11871182 __ip_vs_update_dest (svc , dest , udest , 1 );
11881183 } else {
11891184 /*
@@ -1192,9 +1187,6 @@ ip_vs_add_dest(struct ip_vs_service *svc, struct ip_vs_dest_user_kern *udest)
11921187 ret = ip_vs_new_dest (svc , udest );
11931188 }
11941189
1195- err :
1196- LeaveFunction (2 );
1197-
11981190 return ret ;
11991191}
12001192
@@ -1209,8 +1201,6 @@ ip_vs_edit_dest(struct ip_vs_service *svc, struct ip_vs_dest_user_kern *udest)
12091201 union nf_inet_addr daddr ;
12101202 __be16 dport = udest -> port ;
12111203
1212- EnterFunction (2 );
1213-
12141204 if (udest -> weight < 0 ) {
12151205 pr_err ("%s(): server weight less than zero\n" , __func__ );
12161206 return - ERANGE ;
@@ -1242,7 +1232,6 @@ ip_vs_edit_dest(struct ip_vs_service *svc, struct ip_vs_dest_user_kern *udest)
12421232 }
12431233
12441234 __ip_vs_update_dest (svc , dest , udest , 0 );
1245- LeaveFunction (2 );
12461235
12471236 return 0 ;
12481237}
@@ -1317,8 +1306,6 @@ ip_vs_del_dest(struct ip_vs_service *svc, struct ip_vs_dest_user_kern *udest)
13171306 struct ip_vs_dest * dest ;
13181307 __be16 dport = udest -> port ;
13191308
1320- EnterFunction (2 );
1321-
13221309 /* We use function that requires RCU lock */
13231310 rcu_read_lock ();
13241311 dest = ip_vs_lookup_dest (svc , udest -> af , & udest -> addr , dport );
@@ -1339,8 +1326,6 @@ ip_vs_del_dest(struct ip_vs_service *svc, struct ip_vs_dest_user_kern *udest)
13391326 */
13401327 __ip_vs_del_dest (svc -> ipvs , dest , false);
13411328
1342- LeaveFunction (2 );
1343-
13441329 return 0 ;
13451330}
13461331
@@ -1746,15 +1731,13 @@ void ip_vs_service_nets_cleanup(struct list_head *net_list)
17461731 struct netns_ipvs * ipvs ;
17471732 struct net * net ;
17481733
1749- EnterFunction (2 );
17501734 /* Check for "full" addressed entries */
17511735 mutex_lock (& __ip_vs_mutex );
17521736 list_for_each_entry (net , net_list , exit_list ) {
17531737 ipvs = net_ipvs (net );
17541738 ip_vs_flush (ipvs , true);
17551739 }
17561740 mutex_unlock (& __ip_vs_mutex );
1757- LeaveFunction (2 );
17581741}
17591742
17601743/* Put all references for device (dst_cache) */
@@ -1792,7 +1775,6 @@ static int ip_vs_dst_event(struct notifier_block *this, unsigned long event,
17921775 if (event != NETDEV_DOWN || !ipvs )
17931776 return NOTIFY_DONE ;
17941777 IP_VS_DBG (3 , "%s() dev=%s\n" , __func__ , dev -> name );
1795- EnterFunction (2 );
17961778 mutex_lock (& __ip_vs_mutex );
17971779 for (idx = 0 ; idx < IP_VS_SVC_TAB_SIZE ; idx ++ ) {
17981780 hlist_for_each_entry (svc , & ip_vs_svc_table [idx ], s_list ) {
@@ -1821,7 +1803,6 @@ static int ip_vs_dst_event(struct notifier_block *this, unsigned long event,
18211803 }
18221804 spin_unlock_bh (& ipvs -> dest_trash_lock );
18231805 mutex_unlock (& __ip_vs_mutex );
1824- LeaveFunction (2 );
18251806 return NOTIFY_DONE ;
18261807}
18271808
@@ -4537,8 +4518,6 @@ int __init ip_vs_control_init(void)
45374518 int idx ;
45384519 int ret ;
45394520
4540- EnterFunction (2 );
4541-
45424521 /* Initialize svc_table, ip_vs_svc_fwm_table */
45434522 for (idx = 0 ; idx < IP_VS_SVC_TAB_SIZE ; idx ++ ) {
45444523 INIT_HLIST_HEAD (& ip_vs_svc_table [idx ]);
@@ -4551,15 +4530,12 @@ int __init ip_vs_control_init(void)
45514530 if (ret < 0 )
45524531 return ret ;
45534532
4554- LeaveFunction (2 );
45554533 return 0 ;
45564534}
45574535
45584536
45594537void ip_vs_control_cleanup (void )
45604538{
4561- EnterFunction (2 );
45624539 unregister_netdevice_notifier (& ip_vs_dst_notifier );
45634540 /* relying on common rcu_barrier() in ip_vs_cleanup() */
4564- LeaveFunction (2 );
45654541}
0 commit comments