/net/netfilter/ipvs/ |
D | ip_vs_sync.c | 298 sb_dequeue(struct netns_ipvs *ipvs, struct ipvs_master_sync_state *ms) in sb_dequeue() argument 302 spin_lock_bh(&ipvs->sync_lock); in sb_dequeue() 314 spin_unlock_bh(&ipvs->sync_lock); in sb_dequeue() 323 ip_vs_sync_buff_create(struct netns_ipvs *ipvs) in ip_vs_sync_buff_create() argument 330 sb->mesg = kmalloc(ipvs->send_mesg_maxlen, GFP_ATOMIC); in ip_vs_sync_buff_create() 337 sb->mesg->syncid = ipvs->master_syncid; in ip_vs_sync_buff_create() 342 sb->end = (unsigned char *)sb->mesg + ipvs->send_mesg_maxlen; in ip_vs_sync_buff_create() 354 static inline void sb_queue_tail(struct netns_ipvs *ipvs, in sb_queue_tail() argument 359 spin_lock(&ipvs->sync_lock); in sb_queue_tail() 360 if (ipvs->sync_state & IP_VS_STATE_MASTER && in sb_queue_tail() [all …]
|
D | ip_vs_ctl.c | 97 static void update_defense_level(struct netns_ipvs *ipvs) in update_defense_level() argument 113 nomem = (availmem < ipvs->sysctl_amemthresh); in update_defense_level() 118 spin_lock(&ipvs->dropentry_lock); in update_defense_level() 119 switch (ipvs->sysctl_drop_entry) { in update_defense_level() 121 atomic_set(&ipvs->dropentry, 0); in update_defense_level() 125 atomic_set(&ipvs->dropentry, 1); in update_defense_level() 126 ipvs->sysctl_drop_entry = 2; in update_defense_level() 128 atomic_set(&ipvs->dropentry, 0); in update_defense_level() 133 atomic_set(&ipvs->dropentry, 1); in update_defense_level() 135 atomic_set(&ipvs->dropentry, 0); in update_defense_level() [all …]
|
D | ip_vs_est.c | 103 struct netns_ipvs *ipvs; in estimation_timer() local 105 ipvs = net_ipvs(net); in estimation_timer() 106 spin_lock(&ipvs->est_lock); in estimation_timer() 107 list_for_each_entry(e, &ipvs->est_list, list) { in estimation_timer() 140 spin_unlock(&ipvs->est_lock); in estimation_timer() 141 mod_timer(&ipvs->est_timer, jiffies + 2*HZ); in estimation_timer() 146 struct netns_ipvs *ipvs = net_ipvs(net); in ip_vs_start_estimator() local 151 spin_lock_bh(&ipvs->est_lock); in ip_vs_start_estimator() 152 list_add(&est->list, &ipvs->est_list); in ip_vs_start_estimator() 153 spin_unlock_bh(&ipvs->est_lock); in ip_vs_start_estimator() [all …]
|
D | ip_vs_lblc.c | 253 struct netns_ipvs *ipvs = net_ipvs(svc->net); in sysctl_lblc_expiration() local 254 return ipvs->sysctl_lblc_expiration; in sysctl_lblc_expiration() 555 struct netns_ipvs *ipvs = net_ipvs(net); in __ip_vs_lblc_init() local 557 if (!ipvs) in __ip_vs_lblc_init() 561 ipvs->lblc_ctl_table = kmemdup(vs_vars_table, in __ip_vs_lblc_init() 564 if (ipvs->lblc_ctl_table == NULL) in __ip_vs_lblc_init() 569 ipvs->lblc_ctl_table[0].procname = NULL; in __ip_vs_lblc_init() 572 ipvs->lblc_ctl_table = vs_vars_table; in __ip_vs_lblc_init() 573 ipvs->sysctl_lblc_expiration = DEFAULT_EXPIRATION; in __ip_vs_lblc_init() 574 ipvs->lblc_ctl_table[0].data = &ipvs->sysctl_lblc_expiration; in __ip_vs_lblc_init() [all …]
|
D | ip_vs_proto.c | 68 struct netns_ipvs *ipvs = net_ipvs(net); in register_ip_vs_proto_netns() local 77 pd->next = ipvs->proto_data_table[hash]; in register_ip_vs_proto_netns() 78 ipvs->proto_data_table[hash] = pd; in register_ip_vs_proto_netns() 85 ipvs->proto_data_table[hash] = pd->next; in register_ip_vs_proto_netns() 121 struct netns_ipvs *ipvs = net_ipvs(net); in unregister_ip_vs_proto_netns() local 125 pd_p = &ipvs->proto_data_table[hash]; in unregister_ip_vs_proto_netns() 160 __ipvs_proto_data_get(struct netns_ipvs *ipvs, unsigned short proto) in __ipvs_proto_data_get() argument 165 for (pd = ipvs->proto_data_table[hash]; pd; pd = pd->next) { in __ipvs_proto_data_get() 176 struct netns_ipvs *ipvs = net_ipvs(net); in ip_vs_proto_data_get() local 178 return __ipvs_proto_data_get(ipvs, proto); in ip_vs_proto_data_get() [all …]
|
D | ip_vs_app.c | 196 struct netns_ipvs *ipvs = net_ipvs(net); in register_ip_vs_app() local 200 if (!ipvs) in register_ip_vs_app() 205 list_for_each_entry(a, &ipvs->app_list, a_list) { in register_ip_vs_app() 217 list_add(&a->a_list, &ipvs->app_list); in register_ip_vs_app() 235 struct netns_ipvs *ipvs = net_ipvs(net); in unregister_ip_vs_app() local 238 if (!ipvs) in unregister_ip_vs_app() 243 list_for_each_entry_safe(a, anxt, &ipvs->app_list, a_list) { in unregister_ip_vs_app() 520 static struct ip_vs_app *ip_vs_app_idx(struct netns_ipvs *ipvs, loff_t pos) in ip_vs_app_idx() argument 524 list_for_each_entry(app, &ipvs->app_list, a_list) { in ip_vs_app_idx() 537 struct netns_ipvs *ipvs = net_ipvs(net); in ip_vs_app_seq_start() local [all …]
|
D | ip_vs_lblcr.c | 418 struct netns_ipvs *ipvs = net_ipvs(svc->net); in sysctl_lblcr_expiration() local 419 return ipvs->sysctl_lblcr_expiration; in sysctl_lblcr_expiration() 741 struct netns_ipvs *ipvs = net_ipvs(net); in __ip_vs_lblcr_init() local 743 if (!ipvs) in __ip_vs_lblcr_init() 747 ipvs->lblcr_ctl_table = kmemdup(vs_vars_table, in __ip_vs_lblcr_init() 750 if (ipvs->lblcr_ctl_table == NULL) in __ip_vs_lblcr_init() 755 ipvs->lblcr_ctl_table[0].procname = NULL; in __ip_vs_lblcr_init() 757 ipvs->lblcr_ctl_table = vs_vars_table; in __ip_vs_lblcr_init() 758 ipvs->sysctl_lblcr_expiration = DEFAULT_EXPIRATION; in __ip_vs_lblcr_init() 759 ipvs->lblcr_ctl_table[0].data = &ipvs->sysctl_lblcr_expiration; in __ip_vs_lblcr_init() [all …]
|
D | ip_vs_core.c | 115 struct netns_ipvs *ipvs = net_ipvs(skb_net(skb)); in ip_vs_in_stats() local 136 s = this_cpu_ptr(ipvs->tot_stats.cpustats); in ip_vs_in_stats() 149 struct netns_ipvs *ipvs = net_ipvs(skb_net(skb)); in ip_vs_out_stats() local 170 s = this_cpu_ptr(ipvs->tot_stats.cpustats); in ip_vs_out_stats() 182 struct netns_ipvs *ipvs = net_ipvs(svc->net); in ip_vs_conn_stats() local 191 s = this_cpu_ptr(ipvs->tot_stats.cpustats); in ip_vs_conn_stats() 528 struct netns_ipvs *ipvs; in ip_vs_leave() local 550 ipvs = net_ipvs(net); in ip_vs_leave() 551 if (ipvs->sysctl_cache_bypass && svc->fwmark && unicast) { in ip_vs_leave() 624 struct netns_ipvs *ipvs = net_ipvs(skb_net(skb)); in sysctl_snat_reroute() local [all …]
|
D | ip_vs_proto_sctp.c | 18 struct netns_ipvs *ipvs; in sctp_conn_schedule() local 36 ipvs = net_ipvs(net); in sctp_conn_schedule() 38 if ((sch->type == SCTP_CID_INIT || sysctl_sloppy_sctp(ipvs)) && in sctp_conn_schedule() 43 if (ip_vs_todrop(ipvs)) { in sctp_conn_schedule() 483 struct netns_ipvs *ipvs = net_ipvs(net); in sctp_register_app() local 488 list_for_each_entry(i, &ipvs->sctp_apps[hash], p_list) { in sctp_register_app() 494 list_add_rcu(&inc->p_list, &ipvs->sctp_apps[hash]); in sctp_register_app() 511 struct netns_ipvs *ipvs = net_ipvs(ip_vs_conn_net(cp)); in sctp_app_conn_bind() local 523 list_for_each_entry_rcu(inc, &ipvs->sctp_apps[hash], p_list) { in sctp_app_conn_bind() 554 struct netns_ipvs *ipvs = net_ipvs(net); in __ip_vs_sctp_init() local [all …]
|
D | ip_vs_proto_tcp.c | 42 struct netns_ipvs *ipvs; in tcp_conn_schedule() local 50 ipvs = net_ipvs(net); in tcp_conn_schedule() 53 if ((th->syn || sysctl_sloppy_tcp(ipvs)) && !th->rst && in tcp_conn_schedule() 58 if (ip_vs_todrop(ipvs)) { in tcp_conn_schedule() 580 struct netns_ipvs *ipvs = net_ipvs(net); in tcp_register_app() local 585 list_for_each_entry(i, &ipvs->tcp_apps[hash], p_list) { in tcp_register_app() 591 list_add_rcu(&inc->p_list, &ipvs->tcp_apps[hash]); in tcp_register_app() 612 struct netns_ipvs *ipvs = net_ipvs(ip_vs_conn_net(cp)); in tcp_app_conn_bind() local 625 list_for_each_entry_rcu(inc, &ipvs->tcp_apps[hash], p_list) { in tcp_app_conn_bind() 673 struct netns_ipvs *ipvs = net_ipvs(net); in __ip_vs_tcp_init() local [all …]
|
D | ip_vs_conn.c | 730 static int expire_quiescent_template(struct netns_ipvs *ipvs, in expire_quiescent_template() argument 734 return ipvs->sysctl_expire_quiescent_template && in expire_quiescent_template() 749 struct netns_ipvs *ipvs = net_ipvs(ip_vs_conn_net(ct)); in ip_vs_check_template() local 756 expire_quiescent_template(ipvs, dest)) { in ip_vs_check_template() 804 struct netns_ipvs *ipvs = net_ipvs(net); in ip_vs_conn_expire() local 827 if (ipvs->enable) in ip_vs_conn_expire() 837 atomic_dec(&ipvs->conn_count); in ip_vs_conn_expire() 849 if (ipvs->sync_state & IP_VS_STATE_MASTER) in ip_vs_conn_expire() 850 ip_vs_sync_conn(net, cp, sysctl_sync_threshold(ipvs)); in ip_vs_conn_expire() 878 struct netns_ipvs *ipvs = net_ipvs(p->net); in ip_vs_conn_new() local [all …]
|
D | ip_vs_proto_udp.c | 357 struct netns_ipvs *ipvs = net_ipvs(net); in udp_register_app() local 362 list_for_each_entry(i, &ipvs->udp_apps[hash], p_list) { in udp_register_app() 368 list_add_rcu(&inc->p_list, &ipvs->udp_apps[hash]); in udp_register_app() 388 struct netns_ipvs *ipvs = net_ipvs(ip_vs_conn_net(cp)); in udp_app_conn_bind() local 401 list_for_each_entry_rcu(inc, &ipvs->udp_apps[hash], p_list) { in udp_app_conn_bind() 461 struct netns_ipvs *ipvs = net_ipvs(net); in __udp_init() local 463 ip_vs_init_hash_table(ipvs->udp_apps, UDP_APP_TAB_SIZE); in __udp_init()
|
D | ip_vs_ftp.c | 445 struct netns_ipvs *ipvs = net_ipvs(net); in __ip_vs_ftp_init() local 447 if (!ipvs) in __ip_vs_ftp_init()
|
D | ip_vs_xmit.c | 236 struct netns_ipvs *ipvs = net_ipvs(skb_net(skb)); in ensure_mtu_is_adequate() local 241 if ((rt_mode & IP_VS_RT_MODE_TUNNEL) && !sysctl_pmtu_disc(ipvs)) in ensure_mtu_is_adequate() 954 struct netns_ipvs *ipvs = net_ipvs(skb_net(skb)); in ip_vs_tunnel_xmit() local 991 dfp = sysctl_pmtu_disc(ipvs) ? &df : NULL; in ip_vs_tunnel_xmit()
|
/net/netfilter/ |
D | Makefile | 177 obj-$(CONFIG_IP_VS) += ipvs/
|
D | Kconfig | 1161 tristate '"ipvs" match support' 1480 source "net/netfilter/ipvs/Kconfig"
|