ipvs 41 include/net/ip_vs.h return net->ipvs; ipvs 428 include/net/ip_vs.h int (*init_netns)(struct netns_ipvs *ipvs, struct ip_vs_proto_data *pd); ipvs 430 include/net/ip_vs.h void (*exit_netns)(struct netns_ipvs *ipvs, struct ip_vs_proto_data *pd); ipvs 432 include/net/ip_vs.h int (*conn_schedule)(struct netns_ipvs *ipvs, ipvs 439 include/net/ip_vs.h (*conn_in_get)(struct netns_ipvs *ipvs, ipvs 445 include/net/ip_vs.h (*conn_out_get)(struct netns_ipvs *ipvs, ipvs 462 include/net/ip_vs.h int (*register_app)(struct netns_ipvs *ipvs, struct ip_vs_app *inc); ipvs 464 include/net/ip_vs.h void (*unregister_app)(struct netns_ipvs *ipvs, struct ip_vs_app *inc); ipvs 486 include/net/ip_vs.h struct ip_vs_proto_data *ip_vs_proto_data_get(struct netns_ipvs *ipvs, ipvs 490 include/net/ip_vs.h struct netns_ipvs *ipvs; ipvs 517 include/net/ip_vs.h struct netns_ipvs *ipvs; ipvs 627 include/net/ip_vs.h struct netns_ipvs *ipvs; ipvs 814 include/net/ip_vs.h struct netns_ipvs *ipvs; ipvs 981 include/net/ip_vs.h static inline int sysctl_sync_threshold(struct netns_ipvs *ipvs) ipvs 983 include/net/ip_vs.h return ipvs->sysctl_sync_threshold[0]; ipvs 986 include/net/ip_vs.h static inline int sysctl_sync_period(struct netns_ipvs *ipvs) ipvs 988 include/net/ip_vs.h return READ_ONCE(ipvs->sysctl_sync_threshold[1]); ipvs 991 include/net/ip_vs.h static inline unsigned int sysctl_sync_refresh_period(struct netns_ipvs *ipvs) ipvs 993 include/net/ip_vs.h return READ_ONCE(ipvs->sysctl_sync_refresh_period); ipvs 996 include/net/ip_vs.h static inline int sysctl_sync_retries(struct netns_ipvs *ipvs) ipvs 998 include/net/ip_vs.h return ipvs->sysctl_sync_retries; ipvs 1001 include/net/ip_vs.h static inline int sysctl_sync_ver(struct netns_ipvs *ipvs) ipvs 1003 include/net/ip_vs.h return ipvs->sysctl_sync_ver; ipvs 1006 include/net/ip_vs.h static inline int sysctl_sloppy_tcp(struct netns_ipvs *ipvs) ipvs 1008 include/net/ip_vs.h return ipvs->sysctl_sloppy_tcp; ipvs 1011 include/net/ip_vs.h static inline int sysctl_sloppy_sctp(struct netns_ipvs *ipvs) ipvs 1013 include/net/ip_vs.h return ipvs->sysctl_sloppy_sctp; ipvs 1016 include/net/ip_vs.h static inline int sysctl_sync_ports(struct netns_ipvs *ipvs) ipvs 1018 include/net/ip_vs.h return READ_ONCE(ipvs->sysctl_sync_ports); ipvs 1021 include/net/ip_vs.h static inline int sysctl_sync_persist_mode(struct netns_ipvs *ipvs) ipvs 1023 include/net/ip_vs.h return ipvs->sysctl_sync_persist_mode; ipvs 1026 include/net/ip_vs.h static inline unsigned long sysctl_sync_qlen_max(struct netns_ipvs *ipvs) ipvs 1028 include/net/ip_vs.h return ipvs->sysctl_sync_qlen_max; ipvs 1031 include/net/ip_vs.h static inline int sysctl_sync_sock_size(struct netns_ipvs *ipvs) ipvs 1033 include/net/ip_vs.h return ipvs->sysctl_sync_sock_size; ipvs 1036 include/net/ip_vs.h static inline int sysctl_pmtu_disc(struct netns_ipvs *ipvs) ipvs 1038 include/net/ip_vs.h return ipvs->sysctl_pmtu_disc; ipvs 1041 include/net/ip_vs.h static inline int sysctl_backup_only(struct netns_ipvs *ipvs) ipvs 1043 include/net/ip_vs.h return ipvs->sync_state & IP_VS_STATE_BACKUP && ipvs 1044 include/net/ip_vs.h ipvs->sysctl_backup_only; ipvs 1047 include/net/ip_vs.h static inline int sysctl_conn_reuse_mode(struct netns_ipvs *ipvs) ipvs 1049 include/net/ip_vs.h return ipvs->sysctl_conn_reuse_mode; ipvs 1052 include/net/ip_vs.h static inline int sysctl_schedule_icmp(struct netns_ipvs *ipvs) ipvs 1054 include/net/ip_vs.h return ipvs->sysctl_schedule_icmp; ipvs 1057 include/net/ip_vs.h static inline int sysctl_ignore_tunneled(struct netns_ipvs *ipvs) ipvs 1059 include/net/ip_vs.h return ipvs->sysctl_ignore_tunneled; ipvs 1062 include/net/ip_vs.h static inline int sysctl_cache_bypass(struct netns_ipvs *ipvs) ipvs 1064 include/net/ip_vs.h return ipvs->sysctl_cache_bypass; ipvs 1069 include/net/ip_vs.h static inline int sysctl_sync_threshold(struct netns_ipvs *ipvs) ipvs 1074 include/net/ip_vs.h static inline int sysctl_sync_period(struct netns_ipvs *ipvs) ipvs 1079 include/net/ip_vs.h static inline unsigned int sysctl_sync_refresh_period(struct netns_ipvs *ipvs) ipvs 1084 include/net/ip_vs.h static inline int sysctl_sync_retries(struct netns_ipvs *ipvs) ipvs 1089 include/net/ip_vs.h static inline int sysctl_sync_ver(struct netns_ipvs *ipvs) ipvs 1094 include/net/ip_vs.h static inline int sysctl_sloppy_tcp(struct netns_ipvs *ipvs) ipvs 1099 include/net/ip_vs.h static inline int sysctl_sloppy_sctp(struct netns_ipvs *ipvs) ipvs 1104 include/net/ip_vs.h static inline int sysctl_sync_ports(struct netns_ipvs *ipvs) ipvs 1109 include/net/ip_vs.h static inline int sysctl_sync_persist_mode(struct netns_ipvs *ipvs) ipvs 1114 include/net/ip_vs.h static inline unsigned long sysctl_sync_qlen_max(struct netns_ipvs *ipvs) ipvs 1119 include/net/ip_vs.h static inline int sysctl_sync_sock_size(struct netns_ipvs *ipvs) ipvs 1124 include/net/ip_vs.h static inline int sysctl_pmtu_disc(struct netns_ipvs *ipvs) ipvs 1129 include/net/ip_vs.h static inline int sysctl_backup_only(struct netns_ipvs *ipvs) ipvs 1134 include/net/ip_vs.h static inline int sysctl_conn_reuse_mode(struct netns_ipvs *ipvs) ipvs 1139 include/net/ip_vs.h static inline int sysctl_schedule_icmp(struct netns_ipvs *ipvs) ipvs 1144 include/net/ip_vs.h static inline int sysctl_ignore_tunneled(struct netns_ipvs *ipvs) ipvs 1149 include/net/ip_vs.h static inline int sysctl_cache_bypass(struct netns_ipvs *ipvs) ipvs 1181 include/net/ip_vs.h static inline void ip_vs_conn_fill_param(struct netns_ipvs *ipvs, int af, int protocol, ipvs 1188 include/net/ip_vs.h p->ipvs = ipvs; ipvs 1202 include/net/ip_vs.h struct ip_vs_conn * ip_vs_conn_in_get_proto(struct netns_ipvs *ipvs, int af, ipvs 1208 include/net/ip_vs.h struct ip_vs_conn * ip_vs_conn_out_get_proto(struct netns_ipvs *ipvs, int af, ipvs 1240 include/net/ip_vs.h void ip_vs_random_dropentry(struct netns_ipvs *ipvs); ipvs 1316 include/net/ip_vs.h int ip_vs_estimator_net_init(struct netns_ipvs *ipvs); ipvs 1317 include/net/ip_vs.h int ip_vs_control_net_init(struct netns_ipvs *ipvs); ipvs 1318 include/net/ip_vs.h int ip_vs_protocol_net_init(struct netns_ipvs *ipvs); ipvs 1319 include/net/ip_vs.h int ip_vs_app_net_init(struct netns_ipvs *ipvs); ipvs 1320 include/net/ip_vs.h int ip_vs_conn_net_init(struct netns_ipvs *ipvs); ipvs 1321 include/net/ip_vs.h int ip_vs_sync_net_init(struct netns_ipvs *ipvs); ipvs 1322 include/net/ip_vs.h void ip_vs_conn_net_cleanup(struct netns_ipvs *ipvs); ipvs 1323 include/net/ip_vs.h void ip_vs_app_net_cleanup(struct netns_ipvs *ipvs); ipvs 1324 include/net/ip_vs.h void ip_vs_protocol_net_cleanup(struct netns_ipvs *ipvs); ipvs 1325 include/net/ip_vs.h void ip_vs_control_net_cleanup(struct netns_ipvs *ipvs); ipvs 1326 include/net/ip_vs.h void ip_vs_estimator_net_cleanup(struct netns_ipvs *ipvs); ipvs 1327 include/net/ip_vs.h void ip_vs_sync_net_cleanup(struct netns_ipvs *ipvs); ipvs 1328 include/net/ip_vs.h void ip_vs_service_net_cleanup(struct netns_ipvs *ipvs); ipvs 1334 include/net/ip_vs.h struct ip_vs_app *register_ip_vs_app(struct netns_ipvs *ipvs, struct ip_vs_app *app); ipvs 1335 include/net/ip_vs.h void unregister_ip_vs_app(struct netns_ipvs *ipvs, struct ip_vs_app *app); ipvs 1338 include/net/ip_vs.h int register_ip_vs_app_inc(struct netns_ipvs *ipvs, struct ip_vs_app *app, __u16 proto, ipvs 1365 include/net/ip_vs.h void ip_vs_protocol_timeout_change(struct netns_ipvs *ipvs, int flags); ipvs 1403 include/net/ip_vs.h ip_vs_service_find(struct netns_ipvs *ipvs, int af, __u32 fwmark, __u16 protocol, ipvs 1406 include/net/ip_vs.h bool ip_vs_has_real_service(struct netns_ipvs *ipvs, int af, __u16 protocol, ipvs 1410 include/net/ip_vs.h ip_vs_find_real_service(struct netns_ipvs *ipvs, int af, __u16 protocol, ipvs 1412 include/net/ip_vs.h struct ip_vs_dest *ip_vs_find_tunnel(struct netns_ipvs *ipvs, int af, ipvs 1423 include/net/ip_vs.h ip_vs_find_dest(struct netns_ipvs *ipvs, int svc_af, int dest_af, ipvs 1449 include/net/ip_vs.h int start_sync_thread(struct netns_ipvs *ipvs, struct ipvs_sync_daemon_cfg *cfg, ipvs 1451 include/net/ip_vs.h int stop_sync_thread(struct netns_ipvs *ipvs, int state); ipvs 1452 include/net/ip_vs.h void ip_vs_sync_conn(struct netns_ipvs *ipvs, struct ip_vs_conn *cp, int pkts); ipvs 1455 include/net/ip_vs.h void ip_vs_start_estimator(struct netns_ipvs *ipvs, struct ip_vs_stats *stats); ipvs 1456 include/net/ip_vs.h void ip_vs_stop_estimator(struct netns_ipvs *ipvs, struct ip_vs_stats *stats); ipvs 1495 include/net/ip_vs.h static inline int ip_vs_todrop(struct netns_ipvs *ipvs) ipvs 1497 include/net/ip_vs.h if (!ipvs->drop_rate) ipvs 1499 include/net/ip_vs.h if (--ipvs->drop_counter > 0) ipvs 1501 include/net/ip_vs.h ipvs->drop_counter = ipvs->drop_rate; ipvs 1505 include/net/ip_vs.h static inline int ip_vs_todrop(struct netns_ipvs *ipvs) { return 0; } ipvs 1588 include/net/ip_vs.h static inline int ip_vs_conntrack_enabled(struct netns_ipvs *ipvs) ipvs 1591 include/net/ip_vs.h return ipvs->sysctl_conntrack; ipvs 1607 include/net/ip_vs.h static inline int ip_vs_conntrack_enabled(struct netns_ipvs *ipvs) ipvs 1651 include/net/ip_vs.h ret = nf_ct_netns_get(svc->ipvs->net, svc->af); ipvs 1667 include/net/ip_vs.h nf_ct_netns_put(svc->ipvs->net, svc->af); ipvs 169 include/net/net_namespace.h struct netns_ipvs *ipvs; ipvs 73 net/netfilter/ipvs/ip_vs_app.c ip_vs_app_inc_new(struct netns_ipvs *ipvs, struct ip_vs_app *app, __u16 proto, ipvs 105 net/netfilter/ipvs/ip_vs_app.c ret = pp->register_app(ipvs, inc); ipvs 125 net/netfilter/ipvs/ip_vs_app.c ip_vs_app_inc_release(struct netns_ipvs *ipvs, struct ip_vs_app *inc) ipvs 133 net/netfilter/ipvs/ip_vs_app.c pp->unregister_app(ipvs, inc); ipvs 173 net/netfilter/ipvs/ip_vs_app.c register_ip_vs_app_inc(struct netns_ipvs *ipvs, struct ip_vs_app *app, __u16 proto, ipvs 180 net/netfilter/ipvs/ip_vs_app.c result = ip_vs_app_inc_new(ipvs, app, proto, port); ipvs 189 net/netfilter/ipvs/ip_vs_app.c struct ip_vs_app *register_ip_vs_app(struct netns_ipvs *ipvs, struct ip_vs_app *app) ipvs 202 net/netfilter/ipvs/ip_vs_app.c list_for_each_entry(a, &ipvs->app_list, a_list) { ipvs 218 net/netfilter/ipvs/ip_vs_app.c list_add(&a->a_list, &ipvs->app_list); ipvs 232 net/netfilter/ipvs/ip_vs_app.c void unregister_ip_vs_app(struct netns_ipvs *ipvs, struct ip_vs_app *app) ipvs 238 net/netfilter/ipvs/ip_vs_app.c list_for_each_entry_safe(a, anxt, &ipvs->app_list, a_list) { ipvs 242 net/netfilter/ipvs/ip_vs_app.c ip_vs_app_inc_release(ipvs, inc); ipvs 519 net/netfilter/ipvs/ip_vs_app.c static struct ip_vs_app *ip_vs_app_idx(struct netns_ipvs *ipvs, loff_t pos) ipvs 523 net/netfilter/ipvs/ip_vs_app.c list_for_each_entry(app, &ipvs->app_list, a_list) { ipvs 536 net/netfilter/ipvs/ip_vs_app.c struct netns_ipvs *ipvs = net_ipvs(net); ipvs 540 net/netfilter/ipvs/ip_vs_app.c return *pos ? ip_vs_app_idx(ipvs, *pos - 1) : SEQ_START_TOKEN; ipvs 548 net/netfilter/ipvs/ip_vs_app.c struct netns_ipvs *ipvs = net_ipvs(net); ipvs 552 net/netfilter/ipvs/ip_vs_app.c return ip_vs_app_idx(ipvs, 0); ipvs 561 net/netfilter/ipvs/ip_vs_app.c for (e = app->a_list.next; e != &ipvs->app_list; e = e->next) { ipvs 599 net/netfilter/ipvs/ip_vs_app.c int __net_init ip_vs_app_net_init(struct netns_ipvs *ipvs) ipvs 601 net/netfilter/ipvs/ip_vs_app.c INIT_LIST_HEAD(&ipvs->app_list); ipvs 602 net/netfilter/ipvs/ip_vs_app.c proc_create_net("ip_vs_app", 0, ipvs->net->proc_net, &ip_vs_app_seq_ops, ipvs 607 net/netfilter/ipvs/ip_vs_app.c void __net_exit ip_vs_app_net_cleanup(struct netns_ipvs *ipvs) ipvs 609 net/netfilter/ipvs/ip_vs_app.c unregister_ip_vs_app(ipvs, NULL /* all */); ipvs 610 net/netfilter/ipvs/ip_vs_app.c remove_proc_entry("ip_vs_app", ipvs->net->proc_net); ipvs 107 net/netfilter/ipvs/ip_vs_conn.c static unsigned int ip_vs_conn_hashkey(struct netns_ipvs *ipvs, int af, unsigned int proto, ipvs 115 net/netfilter/ipvs/ip_vs_conn.c ((size_t)ipvs>>8)) & ip_vs_conn_tab_mask; ipvs 119 net/netfilter/ipvs/ip_vs_conn.c ((size_t)ipvs>>8)) & ip_vs_conn_tab_mask; ipvs 140 net/netfilter/ipvs/ip_vs_conn.c return ip_vs_conn_hashkey(p->ipvs, p->af, p->protocol, addr, port); ipvs 147 net/netfilter/ipvs/ip_vs_conn.c ip_vs_conn_fill_param(cp->ipvs, cp->af, cp->protocol, ipvs 279 net/netfilter/ipvs/ip_vs_conn.c cp->ipvs == p->ipvs) { ipvs 314 net/netfilter/ipvs/ip_vs_conn.c ip_vs_conn_fill_param_proto(struct netns_ipvs *ipvs, ipvs 326 net/netfilter/ipvs/ip_vs_conn.c ip_vs_conn_fill_param(ipvs, af, iph->protocol, &iph->saddr, ipvs 329 net/netfilter/ipvs/ip_vs_conn.c ip_vs_conn_fill_param(ipvs, af, iph->protocol, &iph->daddr, ipvs 335 net/netfilter/ipvs/ip_vs_conn.c ip_vs_conn_in_get_proto(struct netns_ipvs *ipvs, int af, ipvs 341 net/netfilter/ipvs/ip_vs_conn.c if (ip_vs_conn_fill_param_proto(ipvs, af, skb, iph, &p)) ipvs 360 net/netfilter/ipvs/ip_vs_conn.c if (cp->ipvs != p->ipvs) ipvs 378 net/netfilter/ipvs/ip_vs_conn.c cp->ipvs == p->ipvs) { ipvs 419 net/netfilter/ipvs/ip_vs_conn.c cp->ipvs == p->ipvs) { ipvs 440 net/netfilter/ipvs/ip_vs_conn.c ip_vs_conn_out_get_proto(struct netns_ipvs *ipvs, int af, ipvs 446 net/netfilter/ipvs/ip_vs_conn.c if (ip_vs_conn_fill_param_proto(ipvs, af, skb, iph, &p)) ipvs 650 net/netfilter/ipvs/ip_vs_conn.c dest = ip_vs_find_dest(cp->ipvs, cp->af, cp->af, &cp->daddr, ipvs 680 net/netfilter/ipvs/ip_vs_conn.c pd = ip_vs_proto_data_get(cp->ipvs, cp->protocol); ipvs 739 net/netfilter/ipvs/ip_vs_conn.c static int expire_quiescent_template(struct netns_ipvs *ipvs, ipvs 743 net/netfilter/ipvs/ip_vs_conn.c return ipvs->sysctl_expire_quiescent_template && ipvs 758 net/netfilter/ipvs/ip_vs_conn.c struct netns_ipvs *ipvs = ct->ipvs; ipvs 765 net/netfilter/ipvs/ip_vs_conn.c expire_quiescent_template(ipvs, dest) || ipvs 813 net/netfilter/ipvs/ip_vs_conn.c struct netns_ipvs *ipvs = cp->ipvs; ipvs 848 net/netfilter/ipvs/ip_vs_conn.c if (ipvs->enable) ipvs 861 net/netfilter/ipvs/ip_vs_conn.c atomic_dec(&ipvs->conn_count); ipvs 873 net/netfilter/ipvs/ip_vs_conn.c if (ipvs->sync_state & IP_VS_STATE_MASTER) ipvs 874 net/netfilter/ipvs/ip_vs_conn.c ip_vs_sync_conn(ipvs, cp, sysctl_sync_threshold(ipvs)); ipvs 906 net/netfilter/ipvs/ip_vs_conn.c struct netns_ipvs *ipvs = p->ipvs; ipvs 907 net/netfilter/ipvs/ip_vs_conn.c struct ip_vs_proto_data *pd = ip_vs_proto_data_get(p->ipvs, ipvs 918 net/netfilter/ipvs/ip_vs_conn.c cp->ipvs = ipvs; ipvs 962 net/netfilter/ipvs/ip_vs_conn.c atomic_inc(&ipvs->conn_count); ipvs 994 net/netfilter/ipvs/ip_vs_conn.c if (ip_vs_conntrack_enabled(ipvs)) ipvs 1092 net/netfilter/ipvs/ip_vs_conn.c if (!net_eq(cp->ipvs->net, net)) ipvs 1167 net/netfilter/ipvs/ip_vs_conn.c if (!net_eq(cp->ipvs->net, net)) ipvs 1261 net/netfilter/ipvs/ip_vs_conn.c void ip_vs_random_dropentry(struct netns_ipvs *ipvs) ipvs 1274 net/netfilter/ipvs/ip_vs_conn.c if (cp->ipvs != ipvs) ipvs 1332 net/netfilter/ipvs/ip_vs_conn.c static void ip_vs_conn_flush(struct netns_ipvs *ipvs) ipvs 1342 net/netfilter/ipvs/ip_vs_conn.c if (cp->ipvs != ipvs) ipvs 1364 net/netfilter/ipvs/ip_vs_conn.c if (atomic_read(&ipvs->conn_count) != 0) { ipvs 1372 net/netfilter/ipvs/ip_vs_conn.c int __net_init ip_vs_conn_net_init(struct netns_ipvs *ipvs) ipvs 1374 net/netfilter/ipvs/ip_vs_conn.c atomic_set(&ipvs->conn_count, 0); ipvs 1376 net/netfilter/ipvs/ip_vs_conn.c proc_create_net("ip_vs_conn", 0, ipvs->net->proc_net, ipvs 1378 net/netfilter/ipvs/ip_vs_conn.c proc_create_net("ip_vs_conn_sync", 0, ipvs->net->proc_net, ipvs 1384 net/netfilter/ipvs/ip_vs_conn.c void __net_exit ip_vs_conn_net_cleanup(struct netns_ipvs *ipvs) ipvs 1387 net/netfilter/ipvs/ip_vs_conn.c ip_vs_conn_flush(ipvs); ipvs 1388 net/netfilter/ipvs/ip_vs_conn.c remove_proc_entry("ip_vs_conn", ipvs->net->proc_net); ipvs 1389 net/netfilter/ipvs/ip_vs_conn.c remove_proc_entry("ip_vs_conn_sync", ipvs->net->proc_net); ipvs 137 net/netfilter/ipvs/ip_vs_core.c struct netns_ipvs *ipvs = cp->ipvs; ipvs 158 net/netfilter/ipvs/ip_vs_core.c s = this_cpu_ptr(ipvs->tot_stats.cpustats); ipvs 173 net/netfilter/ipvs/ip_vs_core.c struct netns_ipvs *ipvs = cp->ipvs; ipvs 194 net/netfilter/ipvs/ip_vs_core.c s = this_cpu_ptr(ipvs->tot_stats.cpustats); ipvs 208 net/netfilter/ipvs/ip_vs_core.c struct netns_ipvs *ipvs = svc->ipvs; ipvs 223 net/netfilter/ipvs/ip_vs_core.c s = this_cpu_ptr(ipvs->tot_stats.cpustats); ipvs 248 net/netfilter/ipvs/ip_vs_core.c ip_vs_conn_fill_param(svc->ipvs, svc->af, protocol, caddr, cport, vaddr, ipvs 409 net/netfilter/ipvs/ip_vs_core.c ip_vs_conn_fill_param(svc->ipvs, svc->af, iph->protocol, src_addr, ipvs 503 net/netfilter/ipvs/ip_vs_core.c ip_vs_conn_in_get_proto, svc->ipvs, ipvs 559 net/netfilter/ipvs/ip_vs_core.c ip_vs_conn_fill_param(svc->ipvs, svc->af, iph->protocol, ipvs 601 net/netfilter/ipvs/ip_vs_core.c struct netns_ipvs *ipvs = svc->ipvs; ipvs 602 net/netfilter/ipvs/ip_vs_core.c struct net *net = ipvs->net; ipvs 612 net/netfilter/ipvs/ip_vs_core.c if (sysctl_cache_bypass(ipvs) && svc->fwmark && ipvs 626 net/netfilter/ipvs/ip_vs_core.c ip_vs_conn_fill_param(svc->ipvs, svc->af, iph->protocol, ipvs 687 net/netfilter/ipvs/ip_vs_core.c static int sysctl_snat_reroute(struct netns_ipvs *ipvs) ipvs 689 net/netfilter/ipvs/ip_vs_core.c return ipvs->sysctl_snat_reroute; ipvs 692 net/netfilter/ipvs/ip_vs_core.c static int sysctl_nat_icmp_send(struct netns_ipvs *ipvs) ipvs 694 net/netfilter/ipvs/ip_vs_core.c return ipvs->sysctl_nat_icmp_send; ipvs 697 net/netfilter/ipvs/ip_vs_core.c static int sysctl_expire_nodest_conn(struct netns_ipvs *ipvs) ipvs 699 net/netfilter/ipvs/ip_vs_core.c return ipvs->sysctl_expire_nodest_conn; ipvs 704 net/netfilter/ipvs/ip_vs_core.c static int sysctl_snat_reroute(struct netns_ipvs *ipvs) { return 0; } ipvs 705 net/netfilter/ipvs/ip_vs_core.c static int sysctl_nat_icmp_send(struct netns_ipvs *ipvs) { return 0; } ipvs 706 net/netfilter/ipvs/ip_vs_core.c static int sysctl_expire_nodest_conn(struct netns_ipvs *ipvs) { return 0; } ipvs 724 net/netfilter/ipvs/ip_vs_core.c static inline int ip_vs_gather_frags(struct netns_ipvs *ipvs, ipvs 730 net/netfilter/ipvs/ip_vs_core.c err = ip_defrag(ipvs->net, skb, user); ipvs 738 net/netfilter/ipvs/ip_vs_core.c static int ip_vs_route_me_harder(struct netns_ipvs *ipvs, int af, ipvs 741 net/netfilter/ipvs/ip_vs_core.c if (!sysctl_snat_reroute(ipvs)) ipvs 751 net/netfilter/ipvs/ip_vs_core.c ip6_route_me_harder(ipvs->net, skb) != 0) ipvs 756 net/netfilter/ipvs/ip_vs_core.c ip_route_me_harder(ipvs->net, skb, RTN_LOCAL) != 0) ipvs 907 net/netfilter/ipvs/ip_vs_core.c if (ip_vs_route_me_harder(cp->ipvs, af, skb, hooknum)) ipvs 933 net/netfilter/ipvs/ip_vs_core.c static int ip_vs_out_icmp(struct netns_ipvs *ipvs, struct sk_buff *skb, ipvs 949 net/netfilter/ipvs/ip_vs_core.c if (ip_vs_gather_frags(ipvs, skb, ip_vs_defrag_user(hooknum))) ipvs 999 net/netfilter/ipvs/ip_vs_core.c ipvs, AF_INET, skb, &ciph); ipvs 1009 net/netfilter/ipvs/ip_vs_core.c static int ip_vs_out_icmp_v6(struct netns_ipvs *ipvs, struct sk_buff *skb, ipvs 1056 net/netfilter/ipvs/ip_vs_core.c ipvs, AF_INET6, skb, &ciph); ipvs 1208 net/netfilter/ipvs/ip_vs_core.c ip_vs_conn_fill_param(svc->ipvs, svc->af, iph->protocol, ipvs 1242 net/netfilter/ipvs/ip_vs_core.c struct netns_ipvs *ipvs, ipvs 1258 net/netfilter/ipvs/ip_vs_core.c dest = ip_vs_find_real_service(ipvs, af, iph->protocol, ipvs 1320 net/netfilter/ipvs/ip_vs_core.c if (ip_vs_route_me_harder(cp->ipvs, af, skb, hooknum)) ipvs 1348 net/netfilter/ipvs/ip_vs_core.c ip_vs_out(struct netns_ipvs *ipvs, unsigned int hooknum, struct sk_buff *skb, int af) ipvs 1374 net/netfilter/ipvs/ip_vs_core.c if (!ipvs->enable) ipvs 1382 net/netfilter/ipvs/ip_vs_core.c int verdict = ip_vs_out_icmp_v6(ipvs, skb, &related, ipvs 1392 net/netfilter/ipvs/ip_vs_core.c int verdict = ip_vs_out_icmp(ipvs, skb, &related, hooknum); ipvs 1398 net/netfilter/ipvs/ip_vs_core.c pd = ip_vs_proto_data_get(ipvs, iph.protocol); ipvs 1408 net/netfilter/ipvs/ip_vs_core.c if (ip_vs_gather_frags(ipvs, skb, ipvs 1419 net/netfilter/ipvs/ip_vs_core.c ipvs, af, skb, &iph); ipvs 1428 net/netfilter/ipvs/ip_vs_core.c if (atomic_read(&ipvs->conn_out_counter)) { ipvs 1435 net/netfilter/ipvs/ip_vs_core.c cp = __ip_vs_rs_conn_out(hooknum, ipvs, af, skb, &iph); ipvs 1442 net/netfilter/ipvs/ip_vs_core.c if (sysctl_nat_icmp_send(ipvs) && ipvs 1452 net/netfilter/ipvs/ip_vs_core.c if (ip_vs_has_real_service(ipvs, af, iph.protocol, &iph.saddr, ipvs 1469 net/netfilter/ipvs/ip_vs_core.c skb->dev = ipvs->net->loopback_dev; ipvs 1545 net/netfilter/ipvs/ip_vs_core.c ip_vs_try_to_schedule(struct netns_ipvs *ipvs, int af, struct sk_buff *skb, ipvs 1558 net/netfilter/ipvs/ip_vs_core.c if (!pp->conn_schedule(ipvs, af, skb, pd, verdict, cpp, iph)) ipvs 1580 net/netfilter/ipvs/ip_vs_core.c static int ipvs_udp_decap(struct netns_ipvs *ipvs, struct sk_buff *skb, ipvs 1591 net/netfilter/ipvs/ip_vs_core.c dest = ip_vs_find_tunnel(ipvs, af, daddr, udph->dest); ipvs 1615 net/netfilter/ipvs/ip_vs_core.c static int ipvs_gre_decap(struct netns_ipvs *ipvs, struct sk_buff *skb, ipvs 1625 net/netfilter/ipvs/ip_vs_core.c dest = ip_vs_find_tunnel(ipvs, af, daddr, 0); ipvs 1653 net/netfilter/ipvs/ip_vs_core.c ip_vs_in_icmp(struct netns_ipvs *ipvs, struct sk_buff *skb, int *related, ipvs 1671 net/netfilter/ipvs/ip_vs_core.c if (ip_vs_gather_frags(ipvs, skb, ip_vs_defrag_user(hooknum))) ipvs 1716 net/netfilter/ipvs/ip_vs_core.c dest = ip_vs_find_tunnel(ipvs, AF_INET, raddr, 0); ipvs 1737 net/netfilter/ipvs/ip_vs_core.c ulen = ipvs_udp_decap(ipvs, skb, offset2, AF_INET, ipvs 1740 net/netfilter/ipvs/ip_vs_core.c ulen = ipvs_gre_decap(ipvs, skb, offset2, AF_INET, ipvs 1756 net/netfilter/ipvs/ip_vs_core.c pd = ip_vs_proto_data_get(ipvs, cih->protocol); ipvs 1777 net/netfilter/ipvs/ip_vs_core.c ipvs, AF_INET, skb, &ciph); ipvs 1782 net/netfilter/ipvs/ip_vs_core.c if (ipip || !sysctl_schedule_icmp(ipvs)) ipvs 1785 net/netfilter/ipvs/ip_vs_core.c if (!ip_vs_try_to_schedule(ipvs, AF_INET, skb, pd, &v, &cp, &ciph)) ipvs 1819 net/netfilter/ipvs/ip_vs_core.c ipv4_update_pmtu(skb, ipvs->net, mtu, 0, 0); ipvs 1871 net/netfilter/ipvs/ip_vs_core.c static int ip_vs_in_icmp_v6(struct netns_ipvs *ipvs, struct sk_buff *skb, ipvs 1914 net/netfilter/ipvs/ip_vs_core.c pd = ip_vs_proto_data_get(ipvs, ciph.protocol); ipvs 1930 net/netfilter/ipvs/ip_vs_core.c ipvs, AF_INET6, skb, &ciph); ipvs 1935 net/netfilter/ipvs/ip_vs_core.c if (!sysctl_schedule_icmp(ipvs)) ipvs 1938 net/netfilter/ipvs/ip_vs_core.c if (!ip_vs_try_to_schedule(ipvs, AF_INET6, skb, pd, &v, &cp, &ciph)) ipvs 1978 net/netfilter/ipvs/ip_vs_core.c ip_vs_in(struct netns_ipvs *ipvs, unsigned int hooknum, struct sk_buff *skb, int af) ipvs 2008 net/netfilter/ipvs/ip_vs_core.c if (unlikely(sysctl_backup_only(ipvs) || !ipvs->enable)) ipvs 2026 net/netfilter/ipvs/ip_vs_core.c int verdict = ip_vs_in_icmp_v6(ipvs, skb, &related, ipvs 2036 net/netfilter/ipvs/ip_vs_core.c int verdict = ip_vs_in_icmp(ipvs, skb, &related, ipvs 2044 net/netfilter/ipvs/ip_vs_core.c pd = ip_vs_proto_data_get(ipvs, iph.protocol); ipvs 2050 net/netfilter/ipvs/ip_vs_core.c if (sysctl_ignore_tunneled(ipvs)) ipvs 2060 net/netfilter/ipvs/ip_vs_core.c ipvs, af, skb, &iph); ipvs 2062 net/netfilter/ipvs/ip_vs_core.c conn_reuse_mode = sysctl_conn_reuse_mode(ipvs); ipvs 2066 net/netfilter/ipvs/ip_vs_core.c if (unlikely(sysctl_expire_nodest_conn(ipvs)) && cp->dest && ipvs 2096 net/netfilter/ipvs/ip_vs_core.c if (!ip_vs_try_to_schedule(ipvs, af, skb, pd, &v, &cp, &iph)) ipvs 2114 net/netfilter/ipvs/ip_vs_core.c if (sysctl_expire_nodest_conn(ipvs) && ipvs 2143 net/netfilter/ipvs/ip_vs_core.c pkts = sysctl_sync_threshold(ipvs); ipvs 2147 net/netfilter/ipvs/ip_vs_core.c if (ipvs->sync_state & IP_VS_STATE_MASTER) ipvs 2148 net/netfilter/ipvs/ip_vs_core.c ip_vs_sync_conn(ipvs, cp, pkts); ipvs 2220 net/netfilter/ipvs/ip_vs_core.c struct netns_ipvs *ipvs = net_ipvs(state->net); ipvs 2226 net/netfilter/ipvs/ip_vs_core.c if (unlikely(sysctl_backup_only(ipvs) || !ipvs->enable)) ipvs 2229 net/netfilter/ipvs/ip_vs_core.c return ip_vs_in_icmp(ipvs, skb, &r, state->hook); ipvs 2238 net/netfilter/ipvs/ip_vs_core.c struct netns_ipvs *ipvs = net_ipvs(state->net); ipvs 2246 net/netfilter/ipvs/ip_vs_core.c if (unlikely(sysctl_backup_only(ipvs) || !ipvs->enable)) ipvs 2249 net/netfilter/ipvs/ip_vs_core.c return ip_vs_in_icmp_v6(ipvs, skb, &r, state->hook, &iphdr); ipvs 2353 net/netfilter/ipvs/ip_vs_core.c struct netns_ipvs *ipvs; ipvs 2355 net/netfilter/ipvs/ip_vs_core.c ipvs = net_generic(net, ip_vs_net_id); ipvs 2356 net/netfilter/ipvs/ip_vs_core.c if (ipvs == NULL) ipvs 2360 net/netfilter/ipvs/ip_vs_core.c ipvs->enable = 0; ipvs 2361 net/netfilter/ipvs/ip_vs_core.c ipvs->net = net; ipvs 2363 net/netfilter/ipvs/ip_vs_core.c ipvs->gen = atomic_read(&ipvs_netns_cnt); ipvs 2365 net/netfilter/ipvs/ip_vs_core.c net->ipvs = ipvs; ipvs 2367 net/netfilter/ipvs/ip_vs_core.c if (ip_vs_estimator_net_init(ipvs) < 0) ipvs 2370 net/netfilter/ipvs/ip_vs_core.c if (ip_vs_control_net_init(ipvs) < 0) ipvs 2373 net/netfilter/ipvs/ip_vs_core.c if (ip_vs_protocol_net_init(ipvs) < 0) ipvs 2376 net/netfilter/ipvs/ip_vs_core.c if (ip_vs_app_net_init(ipvs) < 0) ipvs 2379 net/netfilter/ipvs/ip_vs_core.c if (ip_vs_conn_net_init(ipvs) < 0) ipvs 2382 net/netfilter/ipvs/ip_vs_core.c if (ip_vs_sync_net_init(ipvs) < 0) ipvs 2391 net/netfilter/ipvs/ip_vs_core.c ip_vs_conn_net_cleanup(ipvs); ipvs 2393 net/netfilter/ipvs/ip_vs_core.c ip_vs_app_net_cleanup(ipvs); ipvs 2395 net/netfilter/ipvs/ip_vs_core.c ip_vs_protocol_net_cleanup(ipvs); ipvs 2397 net/netfilter/ipvs/ip_vs_core.c ip_vs_control_net_cleanup(ipvs); ipvs 2399 net/netfilter/ipvs/ip_vs_core.c ip_vs_estimator_net_cleanup(ipvs); ipvs 2401 net/netfilter/ipvs/ip_vs_core.c net->ipvs = NULL; ipvs 2407 net/netfilter/ipvs/ip_vs_core.c struct netns_ipvs *ipvs = net_ipvs(net); ipvs 2409 net/netfilter/ipvs/ip_vs_core.c ip_vs_service_net_cleanup(ipvs); /* ip_vs_flush() with locks */ ipvs 2410 net/netfilter/ipvs/ip_vs_core.c ip_vs_conn_net_cleanup(ipvs); ipvs 2411 net/netfilter/ipvs/ip_vs_core.c ip_vs_app_net_cleanup(ipvs); ipvs 2412 net/netfilter/ipvs/ip_vs_core.c ip_vs_protocol_net_cleanup(ipvs); ipvs 2413 net/netfilter/ipvs/ip_vs_core.c ip_vs_control_net_cleanup(ipvs); ipvs 2414 net/netfilter/ipvs/ip_vs_core.c ip_vs_estimator_net_cleanup(ipvs); ipvs 2415 net/netfilter/ipvs/ip_vs_core.c IP_VS_DBG(2, "ipvs netns %d released\n", ipvs->gen); ipvs 2416 net/netfilter/ipvs/ip_vs_core.c net->ipvs = NULL; ipvs 2434 net/netfilter/ipvs/ip_vs_core.c struct netns_ipvs *ipvs = net_ipvs(net); ipvs 2437 net/netfilter/ipvs/ip_vs_core.c ipvs->enable = 0; /* Disable packet reception */ ipvs 2439 net/netfilter/ipvs/ip_vs_core.c ip_vs_sync_net_cleanup(ipvs); ipvs 93 net/netfilter/ipvs/ip_vs_ctl.c static void update_defense_level(struct netns_ipvs *ipvs) ipvs 108 net/netfilter/ipvs/ip_vs_ctl.c nomem = (availmem < ipvs->sysctl_amemthresh); ipvs 113 net/netfilter/ipvs/ip_vs_ctl.c spin_lock(&ipvs->dropentry_lock); ipvs 114 net/netfilter/ipvs/ip_vs_ctl.c switch (ipvs->sysctl_drop_entry) { ipvs 116 net/netfilter/ipvs/ip_vs_ctl.c atomic_set(&ipvs->dropentry, 0); ipvs 120 net/netfilter/ipvs/ip_vs_ctl.c atomic_set(&ipvs->dropentry, 1); ipvs 121 net/netfilter/ipvs/ip_vs_ctl.c ipvs->sysctl_drop_entry = 2; ipvs 123 net/netfilter/ipvs/ip_vs_ctl.c atomic_set(&ipvs->dropentry, 0); ipvs 128 net/netfilter/ipvs/ip_vs_ctl.c atomic_set(&ipvs->dropentry, 1); ipvs 130 net/netfilter/ipvs/ip_vs_ctl.c atomic_set(&ipvs->dropentry, 0); ipvs 131 net/netfilter/ipvs/ip_vs_ctl.c ipvs->sysctl_drop_entry = 1; ipvs 135 net/netfilter/ipvs/ip_vs_ctl.c atomic_set(&ipvs->dropentry, 1); ipvs 138 net/netfilter/ipvs/ip_vs_ctl.c spin_unlock(&ipvs->dropentry_lock); ipvs 141 net/netfilter/ipvs/ip_vs_ctl.c spin_lock(&ipvs->droppacket_lock); ipvs 142 net/netfilter/ipvs/ip_vs_ctl.c switch (ipvs->sysctl_drop_packet) { ipvs 144 net/netfilter/ipvs/ip_vs_ctl.c ipvs->drop_rate = 0; ipvs 148 net/netfilter/ipvs/ip_vs_ctl.c ipvs->drop_rate = ipvs->drop_counter ipvs 149 net/netfilter/ipvs/ip_vs_ctl.c = ipvs->sysctl_amemthresh / ipvs 150 net/netfilter/ipvs/ip_vs_ctl.c (ipvs->sysctl_amemthresh-availmem); ipvs 151 net/netfilter/ipvs/ip_vs_ctl.c ipvs->sysctl_drop_packet = 2; ipvs 153 net/netfilter/ipvs/ip_vs_ctl.c ipvs->drop_rate = 0; ipvs 158 net/netfilter/ipvs/ip_vs_ctl.c ipvs->drop_rate = ipvs->drop_counter ipvs 159 net/netfilter/ipvs/ip_vs_ctl.c = ipvs->sysctl_amemthresh / ipvs 160 net/netfilter/ipvs/ip_vs_ctl.c (ipvs->sysctl_amemthresh-availmem); ipvs 162 net/netfilter/ipvs/ip_vs_ctl.c ipvs->drop_rate = 0; ipvs 163 net/netfilter/ipvs/ip_vs_ctl.c ipvs->sysctl_drop_packet = 1; ipvs 167 net/netfilter/ipvs/ip_vs_ctl.c ipvs->drop_rate = ipvs->sysctl_am_droprate; ipvs 170 net/netfilter/ipvs/ip_vs_ctl.c spin_unlock(&ipvs->droppacket_lock); ipvs 173 net/netfilter/ipvs/ip_vs_ctl.c spin_lock(&ipvs->securetcp_lock); ipvs 174 net/netfilter/ipvs/ip_vs_ctl.c switch (ipvs->sysctl_secure_tcp) { ipvs 176 net/netfilter/ipvs/ip_vs_ctl.c if (ipvs->old_secure_tcp >= 2) ipvs 181 net/netfilter/ipvs/ip_vs_ctl.c if (ipvs->old_secure_tcp < 2) ipvs 183 net/netfilter/ipvs/ip_vs_ctl.c ipvs->sysctl_secure_tcp = 2; ipvs 185 net/netfilter/ipvs/ip_vs_ctl.c if (ipvs->old_secure_tcp >= 2) ipvs 191 net/netfilter/ipvs/ip_vs_ctl.c if (ipvs->old_secure_tcp < 2) ipvs 194 net/netfilter/ipvs/ip_vs_ctl.c if (ipvs->old_secure_tcp >= 2) ipvs 196 net/netfilter/ipvs/ip_vs_ctl.c ipvs->sysctl_secure_tcp = 1; ipvs 200 net/netfilter/ipvs/ip_vs_ctl.c if (ipvs->old_secure_tcp < 2) ipvs 204 net/netfilter/ipvs/ip_vs_ctl.c ipvs->old_secure_tcp = ipvs->sysctl_secure_tcp; ipvs 206 net/netfilter/ipvs/ip_vs_ctl.c ip_vs_protocol_timeout_change(ipvs, ipvs 207 net/netfilter/ipvs/ip_vs_ctl.c ipvs->sysctl_secure_tcp > 1); ipvs 208 net/netfilter/ipvs/ip_vs_ctl.c spin_unlock(&ipvs->securetcp_lock); ipvs 221 net/netfilter/ipvs/ip_vs_ctl.c struct netns_ipvs *ipvs = ipvs 224 net/netfilter/ipvs/ip_vs_ctl.c update_defense_level(ipvs); ipvs 225 net/netfilter/ipvs/ip_vs_ctl.c if (atomic_read(&ipvs->dropentry)) ipvs 226 net/netfilter/ipvs/ip_vs_ctl.c ip_vs_random_dropentry(ipvs); ipvs 227 net/netfilter/ipvs/ip_vs_ctl.c schedule_delayed_work(&ipvs->defense_work, DEFENSE_TIMER_PERIOD); ipvs 261 net/netfilter/ipvs/ip_vs_ctl.c ip_vs_svc_hashkey(struct netns_ipvs *ipvs, int af, unsigned int proto, ipvs 274 net/netfilter/ipvs/ip_vs_ctl.c ahash ^= ((size_t) ipvs >> 8); ipvs 283 net/netfilter/ipvs/ip_vs_ctl.c static inline unsigned int ip_vs_svc_fwm_hashkey(struct netns_ipvs *ipvs, __u32 fwmark) ipvs 285 net/netfilter/ipvs/ip_vs_ctl.c return (((size_t)ipvs>>8) ^ fwmark) & IP_VS_SVC_TAB_MASK; ipvs 307 net/netfilter/ipvs/ip_vs_ctl.c hash = ip_vs_svc_hashkey(svc->ipvs, svc->af, svc->protocol, ipvs 314 net/netfilter/ipvs/ip_vs_ctl.c hash = ip_vs_svc_fwm_hashkey(svc->ipvs, svc->fwmark); ipvs 355 net/netfilter/ipvs/ip_vs_ctl.c __ip_vs_service_find(struct netns_ipvs *ipvs, int af, __u16 protocol, ipvs 362 net/netfilter/ipvs/ip_vs_ctl.c hash = ip_vs_svc_hashkey(ipvs, af, protocol, vaddr, vport); ipvs 369 net/netfilter/ipvs/ip_vs_ctl.c && (svc->ipvs == ipvs)) { ipvs 383 net/netfilter/ipvs/ip_vs_ctl.c __ip_vs_svc_fwm_find(struct netns_ipvs *ipvs, int af, __u32 fwmark) ipvs 389 net/netfilter/ipvs/ip_vs_ctl.c hash = ip_vs_svc_fwm_hashkey(ipvs, fwmark); ipvs 393 net/netfilter/ipvs/ip_vs_ctl.c && (svc->ipvs == ipvs)) { ipvs 404 net/netfilter/ipvs/ip_vs_ctl.c ip_vs_service_find(struct netns_ipvs *ipvs, int af, __u32 fwmark, __u16 protocol, ipvs 413 net/netfilter/ipvs/ip_vs_ctl.c svc = __ip_vs_svc_fwm_find(ipvs, af, fwmark); ipvs 422 net/netfilter/ipvs/ip_vs_ctl.c svc = __ip_vs_service_find(ipvs, af, protocol, vaddr, vport); ipvs 425 net/netfilter/ipvs/ip_vs_ctl.c atomic_read(&ipvs->ftpsvc_counter) && ipvs 426 net/netfilter/ipvs/ip_vs_ctl.c (vport == FTPDATA || ntohs(vport) >= inet_prot_sock(ipvs->net))) { ipvs 431 net/netfilter/ipvs/ip_vs_ctl.c svc = __ip_vs_service_find(ipvs, af, protocol, vaddr, FTPPORT); ipvs 435 net/netfilter/ipvs/ip_vs_ctl.c && atomic_read(&ipvs->nullsvc_counter)) { ipvs 439 net/netfilter/ipvs/ip_vs_ctl.c svc = __ip_vs_service_find(ipvs, af, protocol, vaddr, 0); ipvs 509 net/netfilter/ipvs/ip_vs_ctl.c static void ip_vs_rs_hash(struct netns_ipvs *ipvs, struct ip_vs_dest *dest) ipvs 544 net/netfilter/ipvs/ip_vs_ctl.c hlist_add_head_rcu(&dest->d_list, &ipvs->rs_table[hash]); ipvs 561 net/netfilter/ipvs/ip_vs_ctl.c bool ip_vs_has_real_service(struct netns_ipvs *ipvs, int af, __u16 protocol, ipvs 570 net/netfilter/ipvs/ip_vs_ctl.c hlist_for_each_entry_rcu(dest, &ipvs->rs_table[hash], d_list) { ipvs 590 net/netfilter/ipvs/ip_vs_ctl.c struct ip_vs_dest *ip_vs_find_real_service(struct netns_ipvs *ipvs, int af, ipvs 601 net/netfilter/ipvs/ip_vs_ctl.c hlist_for_each_entry_rcu(dest, &ipvs->rs_table[hash], d_list) { ipvs 621 net/netfilter/ipvs/ip_vs_ctl.c struct ip_vs_dest *ip_vs_find_tunnel(struct netns_ipvs *ipvs, int af, ipvs 631 net/netfilter/ipvs/ip_vs_ctl.c hlist_for_each_entry_rcu(dest, &ipvs->rs_table[hash], d_list) { ipvs 676 net/netfilter/ipvs/ip_vs_ctl.c struct ip_vs_dest *ip_vs_find_dest(struct netns_ipvs *ipvs, int svc_af, int dest_af, ipvs 687 net/netfilter/ipvs/ip_vs_ctl.c svc = ip_vs_service_find(ipvs, svc_af, fwmark, protocol, vaddr, vport); ipvs 735 net/netfilter/ipvs/ip_vs_ctl.c struct netns_ipvs *ipvs = svc->ipvs; ipvs 740 net/netfilter/ipvs/ip_vs_ctl.c spin_lock_bh(&ipvs->dest_trash_lock); ipvs 741 net/netfilter/ipvs/ip_vs_ctl.c list_for_each_entry(dest, &ipvs->dest_trash, t_list) { ipvs 765 net/netfilter/ipvs/ip_vs_ctl.c spin_unlock_bh(&ipvs->dest_trash_lock); ipvs 789 net/netfilter/ipvs/ip_vs_ctl.c static void ip_vs_trash_cleanup(struct netns_ipvs *ipvs) ipvs 793 net/netfilter/ipvs/ip_vs_ctl.c del_timer_sync(&ipvs->dest_trash_timer); ipvs 795 net/netfilter/ipvs/ip_vs_ctl.c list_for_each_entry_safe(dest, nxt, &ipvs->dest_trash, t_list) { ipvs 861 net/netfilter/ipvs/ip_vs_ctl.c struct netns_ipvs *ipvs = svc->ipvs; ipvs 870 net/netfilter/ipvs/ip_vs_ctl.c ipvs->mixed_address_family_dests++; ipvs 903 net/netfilter/ipvs/ip_vs_ctl.c ip_vs_rs_hash(ipvs, dest); ipvs 932 net/netfilter/ipvs/ip_vs_ctl.c ip_vs_start_estimator(svc->ipvs, &dest->stats); ipvs 965 net/netfilter/ipvs/ip_vs_ctl.c !__ip_vs_addr_is_local_v6(svc->ipvs->net, &udest->addr.in6)) ipvs 968 net/netfilter/ipvs/ip_vs_ctl.c ret = nf_defrag_ipv6_enable(svc->ipvs->net); ipvs 974 net/netfilter/ipvs/ip_vs_ctl.c atype = inet_addr_type(svc->ipvs->net, udest->addr.ip); ipvs 1145 net/netfilter/ipvs/ip_vs_ctl.c static void __ip_vs_del_dest(struct netns_ipvs *ipvs, struct ip_vs_dest *dest, ipvs 1148 net/netfilter/ipvs/ip_vs_ctl.c ip_vs_stop_estimator(ipvs, &dest->stats); ipvs 1155 net/netfilter/ipvs/ip_vs_ctl.c spin_lock_bh(&ipvs->dest_trash_lock); ipvs 1159 net/netfilter/ipvs/ip_vs_ctl.c if (list_empty(&ipvs->dest_trash) && !cleanup) ipvs 1160 net/netfilter/ipvs/ip_vs_ctl.c mod_timer(&ipvs->dest_trash_timer, ipvs 1163 net/netfilter/ipvs/ip_vs_ctl.c list_add(&dest->t_list, &ipvs->dest_trash); ipvs 1165 net/netfilter/ipvs/ip_vs_ctl.c spin_unlock_bh(&ipvs->dest_trash_lock); ipvs 1185 net/netfilter/ipvs/ip_vs_ctl.c svc->ipvs->mixed_address_family_dests--; ipvs 1226 net/netfilter/ipvs/ip_vs_ctl.c __ip_vs_del_dest(svc->ipvs, dest, false); ipvs 1235 net/netfilter/ipvs/ip_vs_ctl.c struct netns_ipvs *ipvs = from_timer(ipvs, t, dest_trash_timer); ipvs 1239 net/netfilter/ipvs/ip_vs_ctl.c spin_lock(&ipvs->dest_trash_lock); ipvs 1240 net/netfilter/ipvs/ip_vs_ctl.c list_for_each_entry_safe(dest, next, &ipvs->dest_trash, t_list) { ipvs 1258 net/netfilter/ipvs/ip_vs_ctl.c if (!list_empty(&ipvs->dest_trash)) ipvs 1259 net/netfilter/ipvs/ip_vs_ctl.c mod_timer(&ipvs->dest_trash_timer, ipvs 1261 net/netfilter/ipvs/ip_vs_ctl.c spin_unlock(&ipvs->dest_trash_lock); ipvs 1268 net/netfilter/ipvs/ip_vs_ctl.c ip_vs_add_service(struct netns_ipvs *ipvs, struct ip_vs_service_user_kern *u, ipvs 1310 net/netfilter/ipvs/ip_vs_ctl.c ret = nf_defrag_ipv6_enable(ipvs->net); ipvs 1346 net/netfilter/ipvs/ip_vs_ctl.c svc->ipvs = ipvs; ipvs 1366 net/netfilter/ipvs/ip_vs_ctl.c atomic_inc(&ipvs->ftpsvc_counter); ipvs 1368 net/netfilter/ipvs/ip_vs_ctl.c atomic_inc(&ipvs->nullsvc_counter); ipvs 1370 net/netfilter/ipvs/ip_vs_ctl.c atomic_inc(&ipvs->conn_out_counter); ipvs 1372 net/netfilter/ipvs/ip_vs_ctl.c ip_vs_start_estimator(ipvs, &svc->stats); ipvs 1376 net/netfilter/ipvs/ip_vs_ctl.c ipvs->num_services++; ipvs 1383 net/netfilter/ipvs/ip_vs_ctl.c ipvs->enable = 1; ipvs 1480 net/netfilter/ipvs/ip_vs_ctl.c atomic_inc(&svc->ipvs->conn_out_counter); ipvs 1482 net/netfilter/ipvs/ip_vs_ctl.c atomic_dec(&svc->ipvs->conn_out_counter); ipvs 1501 net/netfilter/ipvs/ip_vs_ctl.c struct netns_ipvs *ipvs = svc->ipvs; ipvs 1505 net/netfilter/ipvs/ip_vs_ctl.c ipvs->num_services--; ipvs 1507 net/netfilter/ipvs/ip_vs_ctl.c ip_vs_stop_estimator(svc->ipvs, &svc->stats); ipvs 1517 net/netfilter/ipvs/ip_vs_ctl.c atomic_dec(&ipvs->conn_out_counter); ipvs 1525 net/netfilter/ipvs/ip_vs_ctl.c __ip_vs_del_dest(svc->ipvs, dest, cleanup); ipvs 1532 net/netfilter/ipvs/ip_vs_ctl.c atomic_dec(&ipvs->ftpsvc_counter); ipvs 1534 net/netfilter/ipvs/ip_vs_ctl.c atomic_dec(&ipvs->nullsvc_counter); ipvs 1577 net/netfilter/ipvs/ip_vs_ctl.c static int ip_vs_flush(struct netns_ipvs *ipvs, bool cleanup) ipvs 1589 net/netfilter/ipvs/ip_vs_ctl.c if (svc->ipvs == ipvs) ipvs 1600 net/netfilter/ipvs/ip_vs_ctl.c if (svc->ipvs == ipvs) ipvs 1612 net/netfilter/ipvs/ip_vs_ctl.c void ip_vs_service_net_cleanup(struct netns_ipvs *ipvs) ipvs 1617 net/netfilter/ipvs/ip_vs_ctl.c ip_vs_flush(ipvs, true); ipvs 1649 net/netfilter/ipvs/ip_vs_ctl.c struct netns_ipvs *ipvs = net_ipvs(net); ipvs 1654 net/netfilter/ipvs/ip_vs_ctl.c if (event != NETDEV_DOWN || !ipvs) ipvs 1661 net/netfilter/ipvs/ip_vs_ctl.c if (svc->ipvs == ipvs) { ipvs 1670 net/netfilter/ipvs/ip_vs_ctl.c if (svc->ipvs == ipvs) { ipvs 1680 net/netfilter/ipvs/ip_vs_ctl.c spin_lock_bh(&ipvs->dest_trash_lock); ipvs 1681 net/netfilter/ipvs/ip_vs_ctl.c list_for_each_entry(dest, &ipvs->dest_trash, t_list) { ipvs 1684 net/netfilter/ipvs/ip_vs_ctl.c spin_unlock_bh(&ipvs->dest_trash_lock); ipvs 1704 net/netfilter/ipvs/ip_vs_ctl.c static int ip_vs_zero_all(struct netns_ipvs *ipvs) ipvs 1711 net/netfilter/ipvs/ip_vs_ctl.c if (svc->ipvs == ipvs) ipvs 1718 net/netfilter/ipvs/ip_vs_ctl.c if (svc->ipvs == ipvs) ipvs 1723 net/netfilter/ipvs/ip_vs_ctl.c ip_vs_zero_stats(&ipvs->tot_stats); ipvs 1735 net/netfilter/ipvs/ip_vs_ctl.c struct netns_ipvs *ipvs = table->extra2; ipvs 1752 net/netfilter/ipvs/ip_vs_ctl.c update_defense_level(ipvs); ipvs 2022 net/netfilter/ipvs/ip_vs_ctl.c struct netns_ipvs *ipvs = net_ipvs(net); ipvs 2030 net/netfilter/ipvs/ip_vs_ctl.c if ((svc->ipvs == ipvs) && pos-- == 0) { ipvs 2042 net/netfilter/ipvs/ip_vs_ctl.c if ((svc->ipvs == ipvs) && pos-- == 0) { ipvs 2128 net/netfilter/ipvs/ip_vs_ctl.c struct netns_ipvs *ipvs = net_ipvs(net); ipvs 2135 net/netfilter/ipvs/ip_vs_ctl.c if (svc->ipvs != ipvs) ipvs 2294 net/netfilter/ipvs/ip_vs_ctl.c static int ip_vs_set_timeout(struct netns_ipvs *ipvs, struct ip_vs_timeout_user *u) ipvs 2319 net/netfilter/ipvs/ip_vs_ctl.c pd = ip_vs_proto_data_get(ipvs, IPPROTO_TCP); ipvs 2325 net/netfilter/ipvs/ip_vs_ctl.c pd = ip_vs_proto_data_get(ipvs, IPPROTO_TCP); ipvs 2333 net/netfilter/ipvs/ip_vs_ctl.c pd = ip_vs_proto_data_get(ipvs, IPPROTO_UDP); ipvs 2421 net/netfilter/ipvs/ip_vs_ctl.c struct netns_ipvs *ipvs = net_ipvs(net); ipvs 2452 net/netfilter/ipvs/ip_vs_ctl.c ret = start_sync_thread(ipvs, &cfg, dm->state); ipvs 2454 net/netfilter/ipvs/ip_vs_ctl.c ret = stop_sync_thread(ipvs, dm->state); ipvs 2462 net/netfilter/ipvs/ip_vs_ctl.c ret = ip_vs_flush(ipvs, false); ipvs 2466 net/netfilter/ipvs/ip_vs_ctl.c ret = ip_vs_set_timeout(ipvs, (struct ip_vs_timeout_user *)arg); ipvs 2481 net/netfilter/ipvs/ip_vs_ctl.c ret = ip_vs_zero_all(ipvs); ipvs 2506 net/netfilter/ipvs/ip_vs_ctl.c svc = __ip_vs_service_find(ipvs, usvc.af, usvc.protocol, ipvs 2509 net/netfilter/ipvs/ip_vs_ctl.c svc = __ip_vs_svc_fwm_find(ipvs, usvc.af, usvc.fwmark); ipvs 2523 net/netfilter/ipvs/ip_vs_ctl.c ret = ip_vs_add_service(ipvs, &usvc, &svc); ipvs 2578 net/netfilter/ipvs/ip_vs_ctl.c __ip_vs_get_service_entries(struct netns_ipvs *ipvs, ipvs 2590 net/netfilter/ipvs/ip_vs_ctl.c if (svc->af != AF_INET || (svc->ipvs != ipvs)) ipvs 2609 net/netfilter/ipvs/ip_vs_ctl.c if (svc->af != AF_INET || (svc->ipvs != ipvs)) ipvs 2629 net/netfilter/ipvs/ip_vs_ctl.c __ip_vs_get_dest_entries(struct netns_ipvs *ipvs, const struct ip_vs_get_dests *get, ipvs 2638 net/netfilter/ipvs/ip_vs_ctl.c svc = __ip_vs_svc_fwm_find(ipvs, AF_INET, get->fwmark); ipvs 2640 net/netfilter/ipvs/ip_vs_ctl.c svc = __ip_vs_service_find(ipvs, AF_INET, get->protocol, &addr, ipvs 2685 net/netfilter/ipvs/ip_vs_ctl.c __ip_vs_get_timeouts(struct netns_ipvs *ipvs, struct ip_vs_timeout_user *u) ipvs 2694 net/netfilter/ipvs/ip_vs_ctl.c pd = ip_vs_proto_data_get(ipvs, IPPROTO_TCP); ipvs 2699 net/netfilter/ipvs/ip_vs_ctl.c pd = ip_vs_proto_data_get(ipvs, IPPROTO_UDP); ipvs 2734 net/netfilter/ipvs/ip_vs_ctl.c struct netns_ipvs *ipvs = net_ipvs(net); ipvs 2759 net/netfilter/ipvs/ip_vs_ctl.c mutex_lock(&ipvs->sync_mutex); ipvs 2760 net/netfilter/ipvs/ip_vs_ctl.c if (ipvs->sync_state & IP_VS_STATE_MASTER) { ipvs 2762 net/netfilter/ipvs/ip_vs_ctl.c strlcpy(d[0].mcast_ifn, ipvs->mcfg.mcast_ifn, ipvs 2764 net/netfilter/ipvs/ip_vs_ctl.c d[0].syncid = ipvs->mcfg.syncid; ipvs 2766 net/netfilter/ipvs/ip_vs_ctl.c if (ipvs->sync_state & IP_VS_STATE_BACKUP) { ipvs 2768 net/netfilter/ipvs/ip_vs_ctl.c strlcpy(d[1].mcast_ifn, ipvs->bcfg.mcast_ifn, ipvs 2770 net/netfilter/ipvs/ip_vs_ctl.c d[1].syncid = ipvs->bcfg.syncid; ipvs 2774 net/netfilter/ipvs/ip_vs_ctl.c mutex_unlock(&ipvs->sync_mutex); ipvs 2799 net/netfilter/ipvs/ip_vs_ctl.c info.num_services = ipvs->num_services; ipvs 2817 net/netfilter/ipvs/ip_vs_ctl.c ret = __ip_vs_get_service_entries(ipvs, get, user); ipvs 2831 net/netfilter/ipvs/ip_vs_ctl.c svc = __ip_vs_svc_fwm_find(ipvs, AF_INET, entry->fwmark); ipvs 2833 net/netfilter/ipvs/ip_vs_ctl.c svc = __ip_vs_service_find(ipvs, AF_INET, ipvs 2858 net/netfilter/ipvs/ip_vs_ctl.c ret = __ip_vs_get_dest_entries(ipvs, get, user); ipvs 2866 net/netfilter/ipvs/ip_vs_ctl.c __ip_vs_get_timeouts(ipvs, &t); ipvs 3110 net/netfilter/ipvs/ip_vs_ctl.c struct netns_ipvs *ipvs = net_ipvs(net); ipvs 3115 net/netfilter/ipvs/ip_vs_ctl.c if (++idx <= start || (svc->ipvs != ipvs)) ipvs 3126 net/netfilter/ipvs/ip_vs_ctl.c if (++idx <= start || (svc->ipvs != ipvs)) ipvs 3153 net/netfilter/ipvs/ip_vs_ctl.c static int ip_vs_genl_parse_service(struct netns_ipvs *ipvs, ipvs 3194 net/netfilter/ipvs/ip_vs_ctl.c svc = __ip_vs_svc_fwm_find(ipvs, usvc->af, usvc->fwmark); ipvs 3196 net/netfilter/ipvs/ip_vs_ctl.c svc = __ip_vs_service_find(ipvs, usvc->af, usvc->protocol, ipvs 3234 net/netfilter/ipvs/ip_vs_ctl.c static struct ip_vs_service *ip_vs_genl_find_service(struct netns_ipvs *ipvs, ipvs 3241 net/netfilter/ipvs/ip_vs_ctl.c ret = ip_vs_genl_parse_service(ipvs, &usvc, nla, false, &svc); ipvs 3323 net/netfilter/ipvs/ip_vs_ctl.c struct netns_ipvs *ipvs = net_ipvs(net); ipvs 3332 net/netfilter/ipvs/ip_vs_ctl.c svc = ip_vs_genl_find_service(ipvs, attrs[IPVS_CMD_ATTR_SERVICE]); ipvs 3482 net/netfilter/ipvs/ip_vs_ctl.c struct netns_ipvs *ipvs = net_ipvs(net); ipvs 3484 net/netfilter/ipvs/ip_vs_ctl.c mutex_lock(&ipvs->sync_mutex); ipvs 3485 net/netfilter/ipvs/ip_vs_ctl.c if ((ipvs->sync_state & IP_VS_STATE_MASTER) && !cb->args[0]) { ipvs 3487 net/netfilter/ipvs/ip_vs_ctl.c &ipvs->mcfg, cb) < 0) ipvs 3493 net/netfilter/ipvs/ip_vs_ctl.c if ((ipvs->sync_state & IP_VS_STATE_BACKUP) && !cb->args[1]) { ipvs 3495 net/netfilter/ipvs/ip_vs_ctl.c &ipvs->bcfg, cb) < 0) ipvs 3502 net/netfilter/ipvs/ip_vs_ctl.c mutex_unlock(&ipvs->sync_mutex); ipvs 3507 net/netfilter/ipvs/ip_vs_ctl.c static int ip_vs_genl_new_daemon(struct netns_ipvs *ipvs, struct nlattr **attrs) ipvs 3560 net/netfilter/ipvs/ip_vs_ctl.c if (ipvs->mixed_address_family_dests > 0) ipvs 3563 net/netfilter/ipvs/ip_vs_ctl.c ret = start_sync_thread(ipvs, &c, ipvs 3568 net/netfilter/ipvs/ip_vs_ctl.c static int ip_vs_genl_del_daemon(struct netns_ipvs *ipvs, struct nlattr **attrs) ipvs 3575 net/netfilter/ipvs/ip_vs_ctl.c ret = stop_sync_thread(ipvs, ipvs 3580 net/netfilter/ipvs/ip_vs_ctl.c static int ip_vs_genl_set_config(struct netns_ipvs *ipvs, struct nlattr **attrs) ipvs 3584 net/netfilter/ipvs/ip_vs_ctl.c __ip_vs_get_timeouts(ipvs, &t); ipvs 3596 net/netfilter/ipvs/ip_vs_ctl.c return ip_vs_set_timeout(ipvs, &t); ipvs 3603 net/netfilter/ipvs/ip_vs_ctl.c struct netns_ipvs *ipvs = net_ipvs(net); ipvs 3615 net/netfilter/ipvs/ip_vs_ctl.c ret = ip_vs_genl_new_daemon(ipvs, daemon_attrs); ipvs 3617 net/netfilter/ipvs/ip_vs_ctl.c ret = ip_vs_genl_del_daemon(ipvs, daemon_attrs); ipvs 3632 net/netfilter/ipvs/ip_vs_ctl.c struct netns_ipvs *ipvs = net_ipvs(net); ipvs 3639 net/netfilter/ipvs/ip_vs_ctl.c ret = ip_vs_flush(ipvs, false); ipvs 3642 net/netfilter/ipvs/ip_vs_ctl.c ret = ip_vs_genl_set_config(ipvs, info->attrs); ipvs 3646 net/netfilter/ipvs/ip_vs_ctl.c ret = ip_vs_zero_all(ipvs); ipvs 3656 net/netfilter/ipvs/ip_vs_ctl.c ret = ip_vs_genl_parse_service(ipvs, &usvc, ipvs 3700 net/netfilter/ipvs/ip_vs_ctl.c if (ipvs->sync_state) { ipvs 3720 net/netfilter/ipvs/ip_vs_ctl.c ret = ip_vs_add_service(ipvs, &usvc, &svc); ipvs 3759 net/netfilter/ipvs/ip_vs_ctl.c struct netns_ipvs *ipvs = net_ipvs(net); ipvs 3789 net/netfilter/ipvs/ip_vs_ctl.c svc = ip_vs_genl_find_service(ipvs, ipvs 3810 net/netfilter/ipvs/ip_vs_ctl.c __ip_vs_get_timeouts(ipvs, &t); ipvs 3980 net/netfilter/ipvs/ip_vs_ctl.c static int __net_init ip_vs_control_net_init_sysctl(struct netns_ipvs *ipvs) ipvs 3982 net/netfilter/ipvs/ip_vs_ctl.c struct net *net = ipvs->net; ipvs 3986 net/netfilter/ipvs/ip_vs_ctl.c atomic_set(&ipvs->dropentry, 0); ipvs 3987 net/netfilter/ipvs/ip_vs_ctl.c spin_lock_init(&ipvs->dropentry_lock); ipvs 3988 net/netfilter/ipvs/ip_vs_ctl.c spin_lock_init(&ipvs->droppacket_lock); ipvs 3989 net/netfilter/ipvs/ip_vs_ctl.c spin_lock_init(&ipvs->securetcp_lock); ipvs 4004 net/netfilter/ipvs/ip_vs_ctl.c tbl[idx].extra2 = ipvs; ipvs 4007 net/netfilter/ipvs/ip_vs_ctl.c ipvs->sysctl_amemthresh = 1024; ipvs 4008 net/netfilter/ipvs/ip_vs_ctl.c tbl[idx++].data = &ipvs->sysctl_amemthresh; ipvs 4009 net/netfilter/ipvs/ip_vs_ctl.c ipvs->sysctl_am_droprate = 10; ipvs 4010 net/netfilter/ipvs/ip_vs_ctl.c tbl[idx++].data = &ipvs->sysctl_am_droprate; ipvs 4011 net/netfilter/ipvs/ip_vs_ctl.c tbl[idx++].data = &ipvs->sysctl_drop_entry; ipvs 4012 net/netfilter/ipvs/ip_vs_ctl.c tbl[idx++].data = &ipvs->sysctl_drop_packet; ipvs 4014 net/netfilter/ipvs/ip_vs_ctl.c tbl[idx++].data = &ipvs->sysctl_conntrack; ipvs 4016 net/netfilter/ipvs/ip_vs_ctl.c tbl[idx++].data = &ipvs->sysctl_secure_tcp; ipvs 4017 net/netfilter/ipvs/ip_vs_ctl.c ipvs->sysctl_snat_reroute = 1; ipvs 4018 net/netfilter/ipvs/ip_vs_ctl.c tbl[idx++].data = &ipvs->sysctl_snat_reroute; ipvs 4019 net/netfilter/ipvs/ip_vs_ctl.c ipvs->sysctl_sync_ver = 1; ipvs 4020 net/netfilter/ipvs/ip_vs_ctl.c tbl[idx++].data = &ipvs->sysctl_sync_ver; ipvs 4021 net/netfilter/ipvs/ip_vs_ctl.c ipvs->sysctl_sync_ports = 1; ipvs 4022 net/netfilter/ipvs/ip_vs_ctl.c tbl[idx++].data = &ipvs->sysctl_sync_ports; ipvs 4023 net/netfilter/ipvs/ip_vs_ctl.c tbl[idx++].data = &ipvs->sysctl_sync_persist_mode; ipvs 4024 net/netfilter/ipvs/ip_vs_ctl.c ipvs->sysctl_sync_qlen_max = nr_free_buffer_pages() / 32; ipvs 4025 net/netfilter/ipvs/ip_vs_ctl.c tbl[idx++].data = &ipvs->sysctl_sync_qlen_max; ipvs 4026 net/netfilter/ipvs/ip_vs_ctl.c ipvs->sysctl_sync_sock_size = 0; ipvs 4027 net/netfilter/ipvs/ip_vs_ctl.c tbl[idx++].data = &ipvs->sysctl_sync_sock_size; ipvs 4028 net/netfilter/ipvs/ip_vs_ctl.c tbl[idx++].data = &ipvs->sysctl_cache_bypass; ipvs 4029 net/netfilter/ipvs/ip_vs_ctl.c tbl[idx++].data = &ipvs->sysctl_expire_nodest_conn; ipvs 4030 net/netfilter/ipvs/ip_vs_ctl.c tbl[idx++].data = &ipvs->sysctl_sloppy_tcp; ipvs 4031 net/netfilter/ipvs/ip_vs_ctl.c tbl[idx++].data = &ipvs->sysctl_sloppy_sctp; ipvs 4032 net/netfilter/ipvs/ip_vs_ctl.c tbl[idx++].data = &ipvs->sysctl_expire_quiescent_template; ipvs 4033 net/netfilter/ipvs/ip_vs_ctl.c ipvs->sysctl_sync_threshold[0] = DEFAULT_SYNC_THRESHOLD; ipvs 4034 net/netfilter/ipvs/ip_vs_ctl.c ipvs->sysctl_sync_threshold[1] = DEFAULT_SYNC_PERIOD; ipvs 4035 net/netfilter/ipvs/ip_vs_ctl.c tbl[idx].data = &ipvs->sysctl_sync_threshold; ipvs 4036 net/netfilter/ipvs/ip_vs_ctl.c tbl[idx++].maxlen = sizeof(ipvs->sysctl_sync_threshold); ipvs 4037 net/netfilter/ipvs/ip_vs_ctl.c ipvs->sysctl_sync_refresh_period = DEFAULT_SYNC_REFRESH_PERIOD; ipvs 4038 net/netfilter/ipvs/ip_vs_ctl.c tbl[idx++].data = &ipvs->sysctl_sync_refresh_period; ipvs 4039 net/netfilter/ipvs/ip_vs_ctl.c ipvs->sysctl_sync_retries = clamp_t(int, DEFAULT_SYNC_RETRIES, 0, 3); ipvs 4040 net/netfilter/ipvs/ip_vs_ctl.c tbl[idx++].data = &ipvs->sysctl_sync_retries; ipvs 4041 net/netfilter/ipvs/ip_vs_ctl.c tbl[idx++].data = &ipvs->sysctl_nat_icmp_send; ipvs 4042 net/netfilter/ipvs/ip_vs_ctl.c ipvs->sysctl_pmtu_disc = 1; ipvs 4043 net/netfilter/ipvs/ip_vs_ctl.c tbl[idx++].data = &ipvs->sysctl_pmtu_disc; ipvs 4044 net/netfilter/ipvs/ip_vs_ctl.c tbl[idx++].data = &ipvs->sysctl_backup_only; ipvs 4045 net/netfilter/ipvs/ip_vs_ctl.c ipvs->sysctl_conn_reuse_mode = 1; ipvs 4046 net/netfilter/ipvs/ip_vs_ctl.c tbl[idx++].data = &ipvs->sysctl_conn_reuse_mode; ipvs 4047 net/netfilter/ipvs/ip_vs_ctl.c tbl[idx++].data = &ipvs->sysctl_schedule_icmp; ipvs 4048 net/netfilter/ipvs/ip_vs_ctl.c tbl[idx++].data = &ipvs->sysctl_ignore_tunneled; ipvs 4050 net/netfilter/ipvs/ip_vs_ctl.c ipvs->sysctl_hdr = register_net_sysctl(net, "net/ipv4/vs", tbl); ipvs 4051 net/netfilter/ipvs/ip_vs_ctl.c if (ipvs->sysctl_hdr == NULL) { ipvs 4056 net/netfilter/ipvs/ip_vs_ctl.c ip_vs_start_estimator(ipvs, &ipvs->tot_stats); ipvs 4057 net/netfilter/ipvs/ip_vs_ctl.c ipvs->sysctl_tbl = tbl; ipvs 4059 net/netfilter/ipvs/ip_vs_ctl.c INIT_DELAYED_WORK(&ipvs->defense_work, defense_work_handler); ipvs 4060 net/netfilter/ipvs/ip_vs_ctl.c schedule_delayed_work(&ipvs->defense_work, DEFENSE_TIMER_PERIOD); ipvs 4065 net/netfilter/ipvs/ip_vs_ctl.c static void __net_exit ip_vs_control_net_cleanup_sysctl(struct netns_ipvs *ipvs) ipvs 4067 net/netfilter/ipvs/ip_vs_ctl.c struct net *net = ipvs->net; ipvs 4069 net/netfilter/ipvs/ip_vs_ctl.c cancel_delayed_work_sync(&ipvs->defense_work); ipvs 4070 net/netfilter/ipvs/ip_vs_ctl.c cancel_work_sync(&ipvs->defense_work.work); ipvs 4071 net/netfilter/ipvs/ip_vs_ctl.c unregister_net_sysctl_table(ipvs->sysctl_hdr); ipvs 4072 net/netfilter/ipvs/ip_vs_ctl.c ip_vs_stop_estimator(ipvs, &ipvs->tot_stats); ipvs 4075 net/netfilter/ipvs/ip_vs_ctl.c kfree(ipvs->sysctl_tbl); ipvs 4080 net/netfilter/ipvs/ip_vs_ctl.c static int __net_init ip_vs_control_net_init_sysctl(struct netns_ipvs *ipvs) { return 0; } ipvs 4081 net/netfilter/ipvs/ip_vs_ctl.c static void __net_exit ip_vs_control_net_cleanup_sysctl(struct netns_ipvs *ipvs) { } ipvs 4092 net/netfilter/ipvs/ip_vs_ctl.c int __net_init ip_vs_control_net_init(struct netns_ipvs *ipvs) ipvs 4098 net/netfilter/ipvs/ip_vs_ctl.c INIT_HLIST_HEAD(&ipvs->rs_table[idx]); ipvs 4100 net/netfilter/ipvs/ip_vs_ctl.c INIT_LIST_HEAD(&ipvs->dest_trash); ipvs 4101 net/netfilter/ipvs/ip_vs_ctl.c spin_lock_init(&ipvs->dest_trash_lock); ipvs 4102 net/netfilter/ipvs/ip_vs_ctl.c timer_setup(&ipvs->dest_trash_timer, ip_vs_dest_trash_expire, 0); ipvs 4103 net/netfilter/ipvs/ip_vs_ctl.c atomic_set(&ipvs->ftpsvc_counter, 0); ipvs 4104 net/netfilter/ipvs/ip_vs_ctl.c atomic_set(&ipvs->nullsvc_counter, 0); ipvs 4105 net/netfilter/ipvs/ip_vs_ctl.c atomic_set(&ipvs->conn_out_counter, 0); ipvs 4108 net/netfilter/ipvs/ip_vs_ctl.c ipvs->tot_stats.cpustats = alloc_percpu(struct ip_vs_cpu_stats); ipvs 4109 net/netfilter/ipvs/ip_vs_ctl.c if (!ipvs->tot_stats.cpustats) ipvs 4114 net/netfilter/ipvs/ip_vs_ctl.c ipvs_tot_stats = per_cpu_ptr(ipvs->tot_stats.cpustats, i); ipvs 4118 net/netfilter/ipvs/ip_vs_ctl.c spin_lock_init(&ipvs->tot_stats.lock); ipvs 4120 net/netfilter/ipvs/ip_vs_ctl.c proc_create_net("ip_vs", 0, ipvs->net->proc_net, &ip_vs_info_seq_ops, ipvs 4122 net/netfilter/ipvs/ip_vs_ctl.c proc_create_net_single("ip_vs_stats", 0, ipvs->net->proc_net, ipvs 4124 net/netfilter/ipvs/ip_vs_ctl.c proc_create_net_single("ip_vs_stats_percpu", 0, ipvs->net->proc_net, ipvs 4127 net/netfilter/ipvs/ip_vs_ctl.c if (ip_vs_control_net_init_sysctl(ipvs)) ipvs 4133 net/netfilter/ipvs/ip_vs_ctl.c free_percpu(ipvs->tot_stats.cpustats); ipvs 4137 net/netfilter/ipvs/ip_vs_ctl.c void __net_exit ip_vs_control_net_cleanup(struct netns_ipvs *ipvs) ipvs 4139 net/netfilter/ipvs/ip_vs_ctl.c ip_vs_trash_cleanup(ipvs); ipvs 4140 net/netfilter/ipvs/ip_vs_ctl.c ip_vs_control_net_cleanup_sysctl(ipvs); ipvs 4141 net/netfilter/ipvs/ip_vs_ctl.c remove_proc_entry("ip_vs_stats_percpu", ipvs->net->proc_net); ipvs 4142 net/netfilter/ipvs/ip_vs_ctl.c remove_proc_entry("ip_vs_stats", ipvs->net->proc_net); ipvs 4143 net/netfilter/ipvs/ip_vs_ctl.c remove_proc_entry("ip_vs", ipvs->net->proc_net); ipvs 4144 net/netfilter/ipvs/ip_vs_ctl.c free_percpu(ipvs->tot_stats.cpustats); ipvs 101 net/netfilter/ipvs/ip_vs_est.c struct netns_ipvs *ipvs = from_timer(ipvs, t, est_timer); ipvs 103 net/netfilter/ipvs/ip_vs_est.c spin_lock(&ipvs->est_lock); ipvs 104 net/netfilter/ipvs/ip_vs_est.c list_for_each_entry(e, &ipvs->est_list, list) { ipvs 133 net/netfilter/ipvs/ip_vs_est.c spin_unlock(&ipvs->est_lock); ipvs 134 net/netfilter/ipvs/ip_vs_est.c mod_timer(&ipvs->est_timer, jiffies + 2*HZ); ipvs 137 net/netfilter/ipvs/ip_vs_est.c void ip_vs_start_estimator(struct netns_ipvs *ipvs, struct ip_vs_stats *stats) ipvs 143 net/netfilter/ipvs/ip_vs_est.c spin_lock_bh(&ipvs->est_lock); ipvs 144 net/netfilter/ipvs/ip_vs_est.c list_add(&est->list, &ipvs->est_list); ipvs 145 net/netfilter/ipvs/ip_vs_est.c spin_unlock_bh(&ipvs->est_lock); ipvs 148 net/netfilter/ipvs/ip_vs_est.c void ip_vs_stop_estimator(struct netns_ipvs *ipvs, struct ip_vs_stats *stats) ipvs 152 net/netfilter/ipvs/ip_vs_est.c spin_lock_bh(&ipvs->est_lock); ipvs 154 net/netfilter/ipvs/ip_vs_est.c spin_unlock_bh(&ipvs->est_lock); ipvs 187 net/netfilter/ipvs/ip_vs_est.c int __net_init ip_vs_estimator_net_init(struct netns_ipvs *ipvs) ipvs 189 net/netfilter/ipvs/ip_vs_est.c INIT_LIST_HEAD(&ipvs->est_list); ipvs 190 net/netfilter/ipvs/ip_vs_est.c spin_lock_init(&ipvs->est_lock); ipvs 191 net/netfilter/ipvs/ip_vs_est.c timer_setup(&ipvs->est_timer, estimation_timer, 0); ipvs 192 net/netfilter/ipvs/ip_vs_est.c mod_timer(&ipvs->est_timer, jiffies + 2 * HZ); ipvs 196 net/netfilter/ipvs/ip_vs_est.c void __net_exit ip_vs_estimator_net_cleanup(struct netns_ipvs *ipvs) ipvs 198 net/netfilter/ipvs/ip_vs_est.c del_timer_sync(&ipvs->est_timer); ipvs 320 net/netfilter/ipvs/ip_vs_ftp.c ip_vs_conn_fill_param(cp->ipvs, cp->af, ipvs 328 net/netfilter/ipvs/ip_vs_ftp.c ip_vs_conn_fill_param(cp->ipvs, ipvs 531 net/netfilter/ipvs/ip_vs_ftp.c ip_vs_conn_fill_param(cp->ipvs, cp->af, ipvs 579 net/netfilter/ipvs/ip_vs_ftp.c struct netns_ipvs *ipvs = net_ipvs(net); ipvs 581 net/netfilter/ipvs/ip_vs_ftp.c if (!ipvs) ipvs 584 net/netfilter/ipvs/ip_vs_ftp.c app = register_ip_vs_app(ipvs, &ip_vs_ftp); ipvs 591 net/netfilter/ipvs/ip_vs_ftp.c ret = register_ip_vs_app_inc(ipvs, app, app->protocol, ports[i]); ipvs 600 net/netfilter/ipvs/ip_vs_ftp.c unregister_ip_vs_app(ipvs, &ip_vs_ftp); ipvs 608 net/netfilter/ipvs/ip_vs_ftp.c struct netns_ipvs *ipvs = net_ipvs(net); ipvs 610 net/netfilter/ipvs/ip_vs_ftp.c if (!ipvs) ipvs 613 net/netfilter/ipvs/ip_vs_ftp.c unregister_ip_vs_app(ipvs, &ip_vs_ftp); ipvs 250 net/netfilter/ipvs/ip_vs_lblc.c return svc->ipvs->sysctl_lblc_expiration; ipvs 552 net/netfilter/ipvs/ip_vs_lblc.c struct netns_ipvs *ipvs = net_ipvs(net); ipvs 554 net/netfilter/ipvs/ip_vs_lblc.c if (!ipvs) ipvs 558 net/netfilter/ipvs/ip_vs_lblc.c ipvs->lblc_ctl_table = kmemdup(vs_vars_table, ipvs 561 net/netfilter/ipvs/ip_vs_lblc.c if (ipvs->lblc_ctl_table == NULL) ipvs 566 net/netfilter/ipvs/ip_vs_lblc.c ipvs->lblc_ctl_table[0].procname = NULL; ipvs 569 net/netfilter/ipvs/ip_vs_lblc.c ipvs->lblc_ctl_table = vs_vars_table; ipvs 570 net/netfilter/ipvs/ip_vs_lblc.c ipvs->sysctl_lblc_expiration = DEFAULT_EXPIRATION; ipvs 571 net/netfilter/ipvs/ip_vs_lblc.c ipvs->lblc_ctl_table[0].data = &ipvs->sysctl_lblc_expiration; ipvs 573 net/netfilter/ipvs/ip_vs_lblc.c ipvs->lblc_ctl_header = ipvs 574 net/netfilter/ipvs/ip_vs_lblc.c register_net_sysctl(net, "net/ipv4/vs", ipvs->lblc_ctl_table); ipvs 575 net/netfilter/ipvs/ip_vs_lblc.c if (!ipvs->lblc_ctl_header) { ipvs 577 net/netfilter/ipvs/ip_vs_lblc.c kfree(ipvs->lblc_ctl_table); ipvs 586 net/netfilter/ipvs/ip_vs_lblc.c struct netns_ipvs *ipvs = net_ipvs(net); ipvs 588 net/netfilter/ipvs/ip_vs_lblc.c unregister_net_sysctl_table(ipvs->lblc_ctl_header); ipvs 591 net/netfilter/ipvs/ip_vs_lblc.c kfree(ipvs->lblc_ctl_table); ipvs 415 net/netfilter/ipvs/ip_vs_lblcr.c return svc->ipvs->sysctl_lblcr_expiration; ipvs 738 net/netfilter/ipvs/ip_vs_lblcr.c struct netns_ipvs *ipvs = net_ipvs(net); ipvs 740 net/netfilter/ipvs/ip_vs_lblcr.c if (!ipvs) ipvs 744 net/netfilter/ipvs/ip_vs_lblcr.c ipvs->lblcr_ctl_table = kmemdup(vs_vars_table, ipvs 747 net/netfilter/ipvs/ip_vs_lblcr.c if (ipvs->lblcr_ctl_table == NULL) ipvs 752 net/netfilter/ipvs/ip_vs_lblcr.c ipvs->lblcr_ctl_table[0].procname = NULL; ipvs 754 net/netfilter/ipvs/ip_vs_lblcr.c ipvs->lblcr_ctl_table = vs_vars_table; ipvs 755 net/netfilter/ipvs/ip_vs_lblcr.c ipvs->sysctl_lblcr_expiration = DEFAULT_EXPIRATION; ipvs 756 net/netfilter/ipvs/ip_vs_lblcr.c ipvs->lblcr_ctl_table[0].data = &ipvs->sysctl_lblcr_expiration; ipvs 758 net/netfilter/ipvs/ip_vs_lblcr.c ipvs->lblcr_ctl_header = ipvs 759 net/netfilter/ipvs/ip_vs_lblcr.c register_net_sysctl(net, "net/ipv4/vs", ipvs->lblcr_ctl_table); ipvs 760 net/netfilter/ipvs/ip_vs_lblcr.c if (!ipvs->lblcr_ctl_header) { ipvs 762 net/netfilter/ipvs/ip_vs_lblcr.c kfree(ipvs->lblcr_ctl_table); ipvs 771 net/netfilter/ipvs/ip_vs_lblcr.c struct netns_ipvs *ipvs = net_ipvs(net); ipvs 773 net/netfilter/ipvs/ip_vs_lblcr.c unregister_net_sysctl_table(ipvs->lblcr_ctl_header); ipvs 776 net/netfilter/ipvs/ip_vs_lblcr.c kfree(ipvs->lblcr_ctl_table); ipvs 262 net/netfilter/ipvs/ip_vs_nfct.c h = nf_conntrack_find_get(cp->ipvs->net, &nf_ct_zone_dflt, &tuple); ipvs 66 net/netfilter/ipvs/ip_vs_proto.c register_ip_vs_proto_netns(struct netns_ipvs *ipvs, struct ip_vs_protocol *pp) ipvs 76 net/netfilter/ipvs/ip_vs_proto.c pd->next = ipvs->proto_data_table[hash]; ipvs 77 net/netfilter/ipvs/ip_vs_proto.c ipvs->proto_data_table[hash] = pd; ipvs 81 net/netfilter/ipvs/ip_vs_proto.c int ret = pp->init_netns(ipvs, pd); ipvs 84 net/netfilter/ipvs/ip_vs_proto.c ipvs->proto_data_table[hash] = pd->next; ipvs 118 net/netfilter/ipvs/ip_vs_proto.c unregister_ip_vs_proto_netns(struct netns_ipvs *ipvs, struct ip_vs_proto_data *pd) ipvs 123 net/netfilter/ipvs/ip_vs_proto.c pd_p = &ipvs->proto_data_table[hash]; ipvs 128 net/netfilter/ipvs/ip_vs_proto.c pd->pp->exit_netns(ipvs, pd); ipvs 158 net/netfilter/ipvs/ip_vs_proto.c ip_vs_proto_data_get(struct netns_ipvs *ipvs, unsigned short proto) ipvs 163 net/netfilter/ipvs/ip_vs_proto.c for (pd = ipvs->proto_data_table[hash]; pd; pd = pd->next) { ipvs 175 net/netfilter/ipvs/ip_vs_proto.c void ip_vs_protocol_timeout_change(struct netns_ipvs *ipvs, int flags) ipvs 181 net/netfilter/ipvs/ip_vs_proto.c for (pd = ipvs->proto_data_table[i]; pd; pd = pd->next) { ipvs 296 net/netfilter/ipvs/ip_vs_proto.c int __net_init ip_vs_protocol_net_init(struct netns_ipvs *ipvs) ipvs 318 net/netfilter/ipvs/ip_vs_proto.c ret = register_ip_vs_proto_netns(ipvs, protos[i]); ipvs 325 net/netfilter/ipvs/ip_vs_proto.c ip_vs_protocol_net_cleanup(ipvs); ipvs 329 net/netfilter/ipvs/ip_vs_proto.c void __net_exit ip_vs_protocol_net_cleanup(struct netns_ipvs *ipvs) ipvs 336 net/netfilter/ipvs/ip_vs_proto.c while ((pd = ipvs->proto_data_table[i]) != NULL) ipvs 337 net/netfilter/ipvs/ip_vs_proto.c unregister_ip_vs_proto_netns(ipvs, pd); ipvs 40 net/netfilter/ipvs/ip_vs_proto_ah_esp.c ah_esp_conn_fill_param_proto(struct netns_ipvs *ipvs, int af, ipvs 45 net/netfilter/ipvs/ip_vs_proto_ah_esp.c ip_vs_conn_fill_param(ipvs, af, IPPROTO_UDP, ipvs 49 net/netfilter/ipvs/ip_vs_proto_ah_esp.c ip_vs_conn_fill_param(ipvs, af, IPPROTO_UDP, ipvs 55 net/netfilter/ipvs/ip_vs_proto_ah_esp.c ah_esp_conn_in_get(struct netns_ipvs *ipvs, int af, const struct sk_buff *skb, ipvs 61 net/netfilter/ipvs/ip_vs_proto_ah_esp.c ah_esp_conn_fill_param_proto(ipvs, af, iph, &p); ipvs 81 net/netfilter/ipvs/ip_vs_proto_ah_esp.c ah_esp_conn_out_get(struct netns_ipvs *ipvs, int af, const struct sk_buff *skb, ipvs 87 net/netfilter/ipvs/ip_vs_proto_ah_esp.c ah_esp_conn_fill_param_proto(ipvs, af, iph, &p); ipvs 103 net/netfilter/ipvs/ip_vs_proto_ah_esp.c ah_esp_conn_schedule(struct netns_ipvs *ipvs, int af, struct sk_buff *skb, ipvs 16 net/netfilter/ipvs/ip_vs_proto_sctp.c sctp_conn_schedule(struct netns_ipvs *ipvs, int af, struct sk_buff *skb, ipvs 33 net/netfilter/ipvs/ip_vs_proto_sctp.c !(sysctl_sloppy_sctp(ipvs) || ipvs 50 net/netfilter/ipvs/ip_vs_proto_sctp.c svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol, ipvs 53 net/netfilter/ipvs/ip_vs_proto_sctp.c svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol, ipvs 58 net/netfilter/ipvs/ip_vs_proto_sctp.c if (ip_vs_todrop(ipvs)) { ipvs 488 net/netfilter/ipvs/ip_vs_proto_sctp.c static int sctp_register_app(struct netns_ipvs *ipvs, struct ip_vs_app *inc) ipvs 494 net/netfilter/ipvs/ip_vs_proto_sctp.c struct ip_vs_proto_data *pd = ip_vs_proto_data_get(ipvs, IPPROTO_SCTP); ipvs 498 net/netfilter/ipvs/ip_vs_proto_sctp.c list_for_each_entry(i, &ipvs->sctp_apps[hash], p_list) { ipvs 504 net/netfilter/ipvs/ip_vs_proto_sctp.c list_add_rcu(&inc->p_list, &ipvs->sctp_apps[hash]); ipvs 511 net/netfilter/ipvs/ip_vs_proto_sctp.c static void sctp_unregister_app(struct netns_ipvs *ipvs, struct ip_vs_app *inc) ipvs 513 net/netfilter/ipvs/ip_vs_proto_sctp.c struct ip_vs_proto_data *pd = ip_vs_proto_data_get(ipvs, IPPROTO_SCTP); ipvs 521 net/netfilter/ipvs/ip_vs_proto_sctp.c struct netns_ipvs *ipvs = cp->ipvs; ipvs 532 net/netfilter/ipvs/ip_vs_proto_sctp.c list_for_each_entry_rcu(inc, &ipvs->sctp_apps[hash], p_list) { ipvs 559 net/netfilter/ipvs/ip_vs_proto_sctp.c static int __ip_vs_sctp_init(struct netns_ipvs *ipvs, struct ip_vs_proto_data *pd) ipvs 561 net/netfilter/ipvs/ip_vs_proto_sctp.c ip_vs_init_hash_table(ipvs->sctp_apps, SCTP_APP_TAB_SIZE); ipvs 569 net/netfilter/ipvs/ip_vs_proto_sctp.c static void __ip_vs_sctp_exit(struct netns_ipvs *ipvs, struct ip_vs_proto_data *pd) ipvs 35 net/netfilter/ipvs/ip_vs_proto_tcp.c tcp_conn_schedule(struct netns_ipvs *ipvs, int af, struct sk_buff *skb, ipvs 51 net/netfilter/ipvs/ip_vs_proto_tcp.c if (th->rst || !(sysctl_sloppy_tcp(ipvs) || th->syn)) ipvs 68 net/netfilter/ipvs/ip_vs_proto_tcp.c svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol, ipvs 71 net/netfilter/ipvs/ip_vs_proto_tcp.c svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol, ipvs 77 net/netfilter/ipvs/ip_vs_proto_tcp.c if (ip_vs_todrop(ipvs)) { ipvs 614 net/netfilter/ipvs/ip_vs_proto_tcp.c static int tcp_register_app(struct netns_ipvs *ipvs, struct ip_vs_app *inc) ipvs 620 net/netfilter/ipvs/ip_vs_proto_tcp.c struct ip_vs_proto_data *pd = ip_vs_proto_data_get(ipvs, IPPROTO_TCP); ipvs 624 net/netfilter/ipvs/ip_vs_proto_tcp.c list_for_each_entry(i, &ipvs->tcp_apps[hash], p_list) { ipvs 630 net/netfilter/ipvs/ip_vs_proto_tcp.c list_add_rcu(&inc->p_list, &ipvs->tcp_apps[hash]); ipvs 639 net/netfilter/ipvs/ip_vs_proto_tcp.c tcp_unregister_app(struct netns_ipvs *ipvs, struct ip_vs_app *inc) ipvs 641 net/netfilter/ipvs/ip_vs_proto_tcp.c struct ip_vs_proto_data *pd = ip_vs_proto_data_get(ipvs, IPPROTO_TCP); ipvs 651 net/netfilter/ipvs/ip_vs_proto_tcp.c struct netns_ipvs *ipvs = cp->ipvs; ipvs 663 net/netfilter/ipvs/ip_vs_proto_tcp.c list_for_each_entry_rcu(inc, &ipvs->tcp_apps[hash], p_list) { ipvs 693 net/netfilter/ipvs/ip_vs_proto_tcp.c struct ip_vs_proto_data *pd = ip_vs_proto_data_get(cp->ipvs, IPPROTO_TCP); ipvs 706 net/netfilter/ipvs/ip_vs_proto_tcp.c static int __ip_vs_tcp_init(struct netns_ipvs *ipvs, struct ip_vs_proto_data *pd) ipvs 708 net/netfilter/ipvs/ip_vs_proto_tcp.c ip_vs_init_hash_table(ipvs->tcp_apps, TCP_APP_TAB_SIZE); ipvs 717 net/netfilter/ipvs/ip_vs_proto_tcp.c static void __ip_vs_tcp_exit(struct netns_ipvs *ipvs, struct ip_vs_proto_data *pd) ipvs 31 net/netfilter/ipvs/ip_vs_proto_udp.c udp_conn_schedule(struct netns_ipvs *ipvs, int af, struct sk_buff *skb, ipvs 56 net/netfilter/ipvs/ip_vs_proto_udp.c svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol, ipvs 59 net/netfilter/ipvs/ip_vs_proto_udp.c svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol, ipvs 65 net/netfilter/ipvs/ip_vs_proto_udp.c if (ip_vs_todrop(ipvs)) { ipvs 361 net/netfilter/ipvs/ip_vs_proto_udp.c static int udp_register_app(struct netns_ipvs *ipvs, struct ip_vs_app *inc) ipvs 367 net/netfilter/ipvs/ip_vs_proto_udp.c struct ip_vs_proto_data *pd = ip_vs_proto_data_get(ipvs, IPPROTO_UDP); ipvs 371 net/netfilter/ipvs/ip_vs_proto_udp.c list_for_each_entry(i, &ipvs->udp_apps[hash], p_list) { ipvs 377 net/netfilter/ipvs/ip_vs_proto_udp.c list_add_rcu(&inc->p_list, &ipvs->udp_apps[hash]); ipvs 386 net/netfilter/ipvs/ip_vs_proto_udp.c udp_unregister_app(struct netns_ipvs *ipvs, struct ip_vs_app *inc) ipvs 388 net/netfilter/ipvs/ip_vs_proto_udp.c struct ip_vs_proto_data *pd = ip_vs_proto_data_get(ipvs, IPPROTO_UDP); ipvs 397 net/netfilter/ipvs/ip_vs_proto_udp.c struct netns_ipvs *ipvs = cp->ipvs; ipvs 409 net/netfilter/ipvs/ip_vs_proto_udp.c list_for_each_entry_rcu(inc, &ipvs->udp_apps[hash], p_list) { ipvs 466 net/netfilter/ipvs/ip_vs_proto_udp.c static int __udp_init(struct netns_ipvs *ipvs, struct ip_vs_proto_data *pd) ipvs 468 net/netfilter/ipvs/ip_vs_proto_udp.c ip_vs_init_hash_table(ipvs->udp_apps, UDP_APP_TAB_SIZE); ipvs 476 net/netfilter/ipvs/ip_vs_proto_udp.c static void __udp_exit(struct netns_ipvs *ipvs, struct ip_vs_proto_data *pd) ipvs 199 net/netfilter/ipvs/ip_vs_sync.c struct netns_ipvs *ipvs; ipvs 307 net/netfilter/ipvs/ip_vs_sync.c sb_dequeue(struct netns_ipvs *ipvs, struct ipvs_master_sync_state *ms) ipvs 311 net/netfilter/ipvs/ip_vs_sync.c spin_lock_bh(&ipvs->sync_lock); ipvs 323 net/netfilter/ipvs/ip_vs_sync.c spin_unlock_bh(&ipvs->sync_lock); ipvs 332 net/netfilter/ipvs/ip_vs_sync.c ip_vs_sync_buff_create(struct netns_ipvs *ipvs, unsigned int len) ipvs 340 net/netfilter/ipvs/ip_vs_sync.c ipvs->mcfg.sync_maxlen); ipvs 348 net/netfilter/ipvs/ip_vs_sync.c sb->mesg->syncid = ipvs->mcfg.syncid; ipvs 365 net/netfilter/ipvs/ip_vs_sync.c static inline void sb_queue_tail(struct netns_ipvs *ipvs, ipvs 370 net/netfilter/ipvs/ip_vs_sync.c spin_lock(&ipvs->sync_lock); ipvs 371 net/netfilter/ipvs/ip_vs_sync.c if (ipvs->sync_state & IP_VS_STATE_MASTER && ipvs 372 net/netfilter/ipvs/ip_vs_sync.c ms->sync_queue_len < sysctl_sync_qlen_max(ipvs)) { ipvs 379 net/netfilter/ipvs/ip_vs_sync.c int id = (int)(ms - ipvs->ms); ipvs 381 net/netfilter/ipvs/ip_vs_sync.c wake_up_process(ipvs->master_tinfo[id].task); ipvs 385 net/netfilter/ipvs/ip_vs_sync.c spin_unlock(&ipvs->sync_lock); ipvs 393 net/netfilter/ipvs/ip_vs_sync.c get_curr_sync_buff(struct netns_ipvs *ipvs, struct ipvs_master_sync_state *ms, ipvs 398 net/netfilter/ipvs/ip_vs_sync.c spin_lock_bh(&ipvs->sync_buff_lock); ipvs 405 net/netfilter/ipvs/ip_vs_sync.c spin_unlock_bh(&ipvs->sync_buff_lock); ipvs 410 net/netfilter/ipvs/ip_vs_sync.c select_master_thread_id(struct netns_ipvs *ipvs, struct ip_vs_conn *cp) ipvs 412 net/netfilter/ipvs/ip_vs_sync.c return ((long) cp >> (1 + ilog2(sizeof(*cp)))) & ipvs->threads_mask; ipvs 419 net/netfilter/ipvs/ip_vs_sync.c ip_vs_sync_buff_create_v0(struct netns_ipvs *ipvs, unsigned int len) ipvs 428 net/netfilter/ipvs/ip_vs_sync.c ipvs->mcfg.sync_maxlen); ipvs 436 net/netfilter/ipvs/ip_vs_sync.c mesg->syncid = ipvs->mcfg.syncid; ipvs 463 net/netfilter/ipvs/ip_vs_sync.c static int ip_vs_sync_conn_needed(struct netns_ipvs *ipvs, ipvs 476 net/netfilter/ipvs/ip_vs_sync.c else if (unlikely(sysctl_sync_persist_mode(ipvs) && in_persistence(cp))) ipvs 505 net/netfilter/ipvs/ip_vs_sync.c sync_refresh_period = sysctl_sync_refresh_period(ipvs); ipvs 516 net/netfilter/ipvs/ip_vs_sync.c if (retries >= sysctl_sync_retries(ipvs)) ipvs 524 net/netfilter/ipvs/ip_vs_sync.c sync_period = sysctl_sync_period(ipvs); ipvs 527 net/netfilter/ipvs/ip_vs_sync.c pkts % sync_period != sysctl_sync_threshold(ipvs)) ipvs 530 net/netfilter/ipvs/ip_vs_sync.c pkts != sysctl_sync_threshold(ipvs)) ipvs 543 net/netfilter/ipvs/ip_vs_sync.c static void ip_vs_sync_conn_v0(struct netns_ipvs *ipvs, struct ip_vs_conn *cp, ipvs 559 net/netfilter/ipvs/ip_vs_sync.c if (!ip_vs_sync_conn_needed(ipvs, cp, pkts)) ipvs 562 net/netfilter/ipvs/ip_vs_sync.c spin_lock_bh(&ipvs->sync_buff_lock); ipvs 563 net/netfilter/ipvs/ip_vs_sync.c if (!(ipvs->sync_state & IP_VS_STATE_MASTER)) { ipvs 564 net/netfilter/ipvs/ip_vs_sync.c spin_unlock_bh(&ipvs->sync_buff_lock); ipvs 568 net/netfilter/ipvs/ip_vs_sync.c id = select_master_thread_id(ipvs, cp); ipvs 569 net/netfilter/ipvs/ip_vs_sync.c ms = &ipvs->ms[id]; ipvs 577 net/netfilter/ipvs/ip_vs_sync.c sb_queue_tail(ipvs, ms); ipvs 583 net/netfilter/ipvs/ip_vs_sync.c buff = ip_vs_sync_buff_create_v0(ipvs, len); ipvs 585 net/netfilter/ipvs/ip_vs_sync.c spin_unlock_bh(&ipvs->sync_buff_lock); ipvs 615 net/netfilter/ipvs/ip_vs_sync.c spin_unlock_bh(&ipvs->sync_buff_lock); ipvs 623 net/netfilter/ipvs/ip_vs_sync.c pkts = sysctl_sync_threshold(ipvs); ipvs 624 net/netfilter/ipvs/ip_vs_sync.c ip_vs_sync_conn(ipvs, cp, pkts); ipvs 633 net/netfilter/ipvs/ip_vs_sync.c void ip_vs_sync_conn(struct netns_ipvs *ipvs, struct ip_vs_conn *cp, int pkts) ipvs 644 net/netfilter/ipvs/ip_vs_sync.c if (sysctl_sync_ver(ipvs) == 0) { ipvs 645 net/netfilter/ipvs/ip_vs_sync.c ip_vs_sync_conn_v0(ipvs, cp, pkts); ipvs 652 net/netfilter/ipvs/ip_vs_sync.c if (!ip_vs_sync_conn_needed(ipvs, cp, pkts)) ipvs 665 net/netfilter/ipvs/ip_vs_sync.c spin_lock_bh(&ipvs->sync_buff_lock); ipvs 666 net/netfilter/ipvs/ip_vs_sync.c if (!(ipvs->sync_state & IP_VS_STATE_MASTER)) { ipvs 667 net/netfilter/ipvs/ip_vs_sync.c spin_unlock_bh(&ipvs->sync_buff_lock); ipvs 671 net/netfilter/ipvs/ip_vs_sync.c id = select_master_thread_id(ipvs, cp); ipvs 672 net/netfilter/ipvs/ip_vs_sync.c ms = &ipvs->ms[id]; ipvs 697 net/netfilter/ipvs/ip_vs_sync.c sb_queue_tail(ipvs, ms); ipvs 705 net/netfilter/ipvs/ip_vs_sync.c buff = ip_vs_sync_buff_create(ipvs, len); ipvs 707 net/netfilter/ipvs/ip_vs_sync.c spin_unlock_bh(&ipvs->sync_buff_lock); ipvs 774 net/netfilter/ipvs/ip_vs_sync.c spin_unlock_bh(&ipvs->sync_buff_lock); ipvs 784 net/netfilter/ipvs/ip_vs_sync.c pkts = sysctl_sync_threshold(ipvs); ipvs 792 net/netfilter/ipvs/ip_vs_sync.c ip_vs_conn_fill_param_sync(struct netns_ipvs *ipvs, int af, union ip_vs_sync_conn *sc, ipvs 799 net/netfilter/ipvs/ip_vs_sync.c ip_vs_conn_fill_param(ipvs, af, sc->v6.protocol, ipvs 806 net/netfilter/ipvs/ip_vs_sync.c ip_vs_conn_fill_param(ipvs, af, sc->v4.protocol, ipvs 845 net/netfilter/ipvs/ip_vs_sync.c static void ip_vs_proc_conn(struct netns_ipvs *ipvs, struct ip_vs_conn_param *param, ipvs 911 net/netfilter/ipvs/ip_vs_sync.c dest = ip_vs_find_dest(ipvs, type, type, daddr, dport, ipvs 931 net/netfilter/ipvs/ip_vs_sync.c atomic_set(&cp->in_pkts, sysctl_sync_threshold(ipvs)); ipvs 950 net/netfilter/ipvs/ip_vs_sync.c pd = ip_vs_proto_data_get(ipvs, protocol); ipvs 962 net/netfilter/ipvs/ip_vs_sync.c static void ip_vs_process_message_v0(struct netns_ipvs *ipvs, const char *buffer, ipvs 1015 net/netfilter/ipvs/ip_vs_sync.c ip_vs_conn_fill_param(ipvs, AF_INET, s->protocol, ipvs 1022 net/netfilter/ipvs/ip_vs_sync.c ip_vs_proc_conn(ipvs, ¶m, flags, state, s->protocol, AF_INET, ipvs 1073 net/netfilter/ipvs/ip_vs_sync.c static inline int ip_vs_proc_sync_conn(struct netns_ipvs *ipvs, __u8 *p, __u8 *msg_end) ipvs 1174 net/netfilter/ipvs/ip_vs_sync.c if (ip_vs_conn_fill_param_sync(ipvs, af, s, ¶m, pe_data, ipvs 1181 net/netfilter/ipvs/ip_vs_sync.c ip_vs_proc_conn(ipvs, ¶m, flags, state, s->v4.protocol, af, ipvs 1188 net/netfilter/ipvs/ip_vs_sync.c ip_vs_proc_conn(ipvs, ¶m, flags, state, s->v6.protocol, af, ipvs 1207 net/netfilter/ipvs/ip_vs_sync.c static void ip_vs_process_message(struct netns_ipvs *ipvs, __u8 *buffer, ipvs 1224 net/netfilter/ipvs/ip_vs_sync.c if (ipvs->bcfg.syncid != 0 && m2->syncid != ipvs->bcfg.syncid) { ipvs 1259 net/netfilter/ipvs/ip_vs_sync.c retc = ip_vs_proc_sync_conn(ipvs, p, msg_end); ipvs 1270 net/netfilter/ipvs/ip_vs_sync.c ip_vs_process_message_v0(ipvs, buffer, buflen); ipvs 1473 net/netfilter/ipvs/ip_vs_sync.c static int make_send_sock(struct netns_ipvs *ipvs, int id, ipvs 1482 net/netfilter/ipvs/ip_vs_sync.c result = sock_create_kern(ipvs->net, ipvs->mcfg.mcast_af, SOCK_DGRAM, ipvs 1496 net/netfilter/ipvs/ip_vs_sync.c set_mcast_ttl(sock->sk, ipvs->mcfg.mcast_ttl); ipvs 1499 net/netfilter/ipvs/ip_vs_sync.c result = sysctl_sync_sock_size(ipvs); ipvs 1503 net/netfilter/ipvs/ip_vs_sync.c if (AF_INET == ipvs->mcfg.mcast_af) ipvs 1512 net/netfilter/ipvs/ip_vs_sync.c get_mcast_sockaddr(&mcast_addr, &salen, &ipvs->mcfg, id); ipvs 1530 net/netfilter/ipvs/ip_vs_sync.c static int make_receive_sock(struct netns_ipvs *ipvs, int id, ipvs 1539 net/netfilter/ipvs/ip_vs_sync.c result = sock_create_kern(ipvs->net, ipvs->bcfg.mcast_af, SOCK_DGRAM, ipvs 1548 net/netfilter/ipvs/ip_vs_sync.c result = sysctl_sync_sock_size(ipvs); ipvs 1552 net/netfilter/ipvs/ip_vs_sync.c get_mcast_sockaddr(&mcast_addr, &salen, &ipvs->bcfg, id); ipvs 1562 net/netfilter/ipvs/ip_vs_sync.c if (ipvs->bcfg.mcast_af == AF_INET6) ipvs 1638 net/netfilter/ipvs/ip_vs_sync.c struct netns_ipvs *ipvs = ms->ipvs; ipvs 1640 net/netfilter/ipvs/ip_vs_sync.c spin_lock_bh(&ipvs->sync_lock); ipvs 1643 net/netfilter/ipvs/ip_vs_sync.c int id = (int)(ms - ipvs->ms); ipvs 1646 net/netfilter/ipvs/ip_vs_sync.c wake_up_process(ipvs->master_tinfo[id].task); ipvs 1648 net/netfilter/ipvs/ip_vs_sync.c spin_unlock_bh(&ipvs->sync_lock); ipvs 1653 net/netfilter/ipvs/ip_vs_sync.c next_sync_buff(struct netns_ipvs *ipvs, struct ipvs_master_sync_state *ms) ipvs 1657 net/netfilter/ipvs/ip_vs_sync.c sb = sb_dequeue(ipvs, ms); ipvs 1661 net/netfilter/ipvs/ip_vs_sync.c return get_curr_sync_buff(ipvs, ms, IPVS_SYNC_FLUSH_TIME); ipvs 1667 net/netfilter/ipvs/ip_vs_sync.c struct netns_ipvs *ipvs = tinfo->ipvs; ipvs 1668 net/netfilter/ipvs/ip_vs_sync.c struct ipvs_master_sync_state *ms = &ipvs->ms[tinfo->id]; ipvs 1674 net/netfilter/ipvs/ip_vs_sync.c ipvs->mcfg.mcast_ifn, ipvs->mcfg.syncid, tinfo->id); ipvs 1677 net/netfilter/ipvs/ip_vs_sync.c sb = next_sync_buff(ipvs, ms); ipvs 1703 net/netfilter/ipvs/ip_vs_sync.c while ((sb = sb_dequeue(ipvs, ms))) ipvs 1708 net/netfilter/ipvs/ip_vs_sync.c sb = get_curr_sync_buff(ipvs, ms, 0); ipvs 1719 net/netfilter/ipvs/ip_vs_sync.c struct netns_ipvs *ipvs = tinfo->ipvs; ipvs 1724 net/netfilter/ipvs/ip_vs_sync.c ipvs->bcfg.mcast_ifn, ipvs->bcfg.syncid, tinfo->id); ipvs 1734 net/netfilter/ipvs/ip_vs_sync.c ipvs->bcfg.sync_maxlen); ipvs 1741 net/netfilter/ipvs/ip_vs_sync.c ip_vs_process_message(ipvs, tinfo->buf, len); ipvs 1749 net/netfilter/ipvs/ip_vs_sync.c int start_sync_thread(struct netns_ipvs *ipvs, struct ipvs_sync_daemon_cfg *c, ipvs 1772 net/netfilter/ipvs/ip_vs_sync.c if (mutex_trylock(&ipvs->sync_mutex)) ipvs 1775 net/netfilter/ipvs/ip_vs_sync.c mutex_lock(&ipvs->sync_mutex); ipvs 1778 net/netfilter/ipvs/ip_vs_sync.c mutex_unlock(&ipvs->sync_mutex); ipvs 1781 net/netfilter/ipvs/ip_vs_sync.c if (!ipvs->sync_state) { ipvs 1782 net/netfilter/ipvs/ip_vs_sync.c count = clamp(sysctl_sync_ports(ipvs), 1, IPVS_SYNC_PORTS_MAX); ipvs 1783 net/netfilter/ipvs/ip_vs_sync.c ipvs->threads_mask = count - 1; ipvs 1785 net/netfilter/ipvs/ip_vs_sync.c count = ipvs->threads_mask + 1; ipvs 1796 net/netfilter/ipvs/ip_vs_sync.c dev = __dev_get_by_name(ipvs->net, c->mcast_ifn); ipvs 1818 net/netfilter/ipvs/ip_vs_sync.c if (ipvs->ms) ipvs 1821 net/netfilter/ipvs/ip_vs_sync.c ipvs->mcfg = *c; ipvs 1826 net/netfilter/ipvs/ip_vs_sync.c if (ipvs->backup_tinfo) ipvs 1829 net/netfilter/ipvs/ip_vs_sync.c ipvs->bcfg = *c; ipvs 1841 net/netfilter/ipvs/ip_vs_sync.c ipvs->ms = kcalloc(count, sizeof(ipvs->ms[0]), GFP_KERNEL); ipvs 1842 net/netfilter/ipvs/ip_vs_sync.c if (!ipvs->ms) ipvs 1844 net/netfilter/ipvs/ip_vs_sync.c ms = ipvs->ms; ipvs 1851 net/netfilter/ipvs/ip_vs_sync.c ms->ipvs = ipvs; ipvs 1862 net/netfilter/ipvs/ip_vs_sync.c tinfo->ipvs = ipvs; ipvs 1865 net/netfilter/ipvs/ip_vs_sync.c tinfo->buf = kmalloc(ipvs->bcfg.sync_maxlen, ipvs 1872 net/netfilter/ipvs/ip_vs_sync.c result = make_send_sock(ipvs, id, dev, &tinfo->sock); ipvs 1874 net/netfilter/ipvs/ip_vs_sync.c result = make_receive_sock(ipvs, id, dev, &tinfo->sock); ipvs 1878 net/netfilter/ipvs/ip_vs_sync.c task = kthread_run(threadfn, tinfo, name, ipvs->gen, id); ipvs 1889 net/netfilter/ipvs/ip_vs_sync.c ipvs->master_tinfo = ti; ipvs 1891 net/netfilter/ipvs/ip_vs_sync.c ipvs->backup_tinfo = ti; ipvs 1892 net/netfilter/ipvs/ip_vs_sync.c spin_lock_bh(&ipvs->sync_buff_lock); ipvs 1893 net/netfilter/ipvs/ip_vs_sync.c ipvs->sync_state |= state; ipvs 1894 net/netfilter/ipvs/ip_vs_sync.c spin_unlock_bh(&ipvs->sync_buff_lock); ipvs 1896 net/netfilter/ipvs/ip_vs_sync.c mutex_unlock(&ipvs->sync_mutex); ipvs 1913 net/netfilter/ipvs/ip_vs_sync.c if (!(ipvs->sync_state & IP_VS_STATE_MASTER)) { ipvs 1914 net/netfilter/ipvs/ip_vs_sync.c kfree(ipvs->ms); ipvs 1915 net/netfilter/ipvs/ip_vs_sync.c ipvs->ms = NULL; ipvs 1917 net/netfilter/ipvs/ip_vs_sync.c mutex_unlock(&ipvs->sync_mutex); ipvs 1934 net/netfilter/ipvs/ip_vs_sync.c mutex_unlock(&ipvs->sync_mutex); ipvs 1943 net/netfilter/ipvs/ip_vs_sync.c int stop_sync_thread(struct netns_ipvs *ipvs, int state) ipvs 1951 net/netfilter/ipvs/ip_vs_sync.c mutex_lock(&ipvs->sync_mutex); ipvs 1954 net/netfilter/ipvs/ip_vs_sync.c if (!ipvs->ms) ipvs 1956 net/netfilter/ipvs/ip_vs_sync.c ti = ipvs->master_tinfo; ipvs 1964 net/netfilter/ipvs/ip_vs_sync.c spin_lock_bh(&ipvs->sync_buff_lock); ipvs 1965 net/netfilter/ipvs/ip_vs_sync.c spin_lock(&ipvs->sync_lock); ipvs 1966 net/netfilter/ipvs/ip_vs_sync.c ipvs->sync_state &= ~IP_VS_STATE_MASTER; ipvs 1967 net/netfilter/ipvs/ip_vs_sync.c spin_unlock(&ipvs->sync_lock); ipvs 1968 net/netfilter/ipvs/ip_vs_sync.c spin_unlock_bh(&ipvs->sync_buff_lock); ipvs 1971 net/netfilter/ipvs/ip_vs_sync.c for (id = ipvs->threads_mask; id >= 0; id--) { ipvs 1972 net/netfilter/ipvs/ip_vs_sync.c struct ipvs_master_sync_state *ms = &ipvs->ms[id]; ipvs 1983 net/netfilter/ipvs/ip_vs_sync.c kfree(ipvs->ms); ipvs 1984 net/netfilter/ipvs/ip_vs_sync.c ipvs->ms = NULL; ipvs 1985 net/netfilter/ipvs/ip_vs_sync.c ipvs->master_tinfo = NULL; ipvs 1988 net/netfilter/ipvs/ip_vs_sync.c if (!ipvs->backup_tinfo) ipvs 1990 net/netfilter/ipvs/ip_vs_sync.c ti = ipvs->backup_tinfo; ipvs 1992 net/netfilter/ipvs/ip_vs_sync.c ipvs->sync_state &= ~IP_VS_STATE_BACKUP; ipvs 1994 net/netfilter/ipvs/ip_vs_sync.c for (id = ipvs->threads_mask; id >= 0; id--) { ipvs 2004 net/netfilter/ipvs/ip_vs_sync.c ipvs->backup_tinfo = NULL; ipvs 2008 net/netfilter/ipvs/ip_vs_sync.c id = ipvs->threads_mask; ipvs 2009 net/netfilter/ipvs/ip_vs_sync.c mutex_unlock(&ipvs->sync_mutex); ipvs 2024 net/netfilter/ipvs/ip_vs_sync.c mutex_unlock(&ipvs->sync_mutex); ipvs 2031 net/netfilter/ipvs/ip_vs_sync.c int __net_init ip_vs_sync_net_init(struct netns_ipvs *ipvs) ipvs 2033 net/netfilter/ipvs/ip_vs_sync.c __mutex_init(&ipvs->sync_mutex, "ipvs->sync_mutex", &__ipvs_sync_key); ipvs 2034 net/netfilter/ipvs/ip_vs_sync.c spin_lock_init(&ipvs->sync_lock); ipvs 2035 net/netfilter/ipvs/ip_vs_sync.c spin_lock_init(&ipvs->sync_buff_lock); ipvs 2039 net/netfilter/ipvs/ip_vs_sync.c void ip_vs_sync_net_cleanup(struct netns_ipvs *ipvs) ipvs 2043 net/netfilter/ipvs/ip_vs_sync.c retc = stop_sync_thread(ipvs, IP_VS_STATE_MASTER); ipvs 2047 net/netfilter/ipvs/ip_vs_sync.c retc = stop_sync_thread(ipvs, IP_VS_STATE_BACKUP); ipvs 214 net/netfilter/ipvs/ip_vs_xmit.c static inline bool ensure_mtu_is_adequate(struct netns_ipvs *ipvs, int skb_af, ipvs 221 net/netfilter/ipvs/ip_vs_xmit.c struct net *net = ipvs->net; ipvs 239 net/netfilter/ipvs/ip_vs_xmit.c if ((rt_mode & IP_VS_RT_MODE_TUNNEL) && !sysctl_pmtu_disc(ipvs)) ipvs 256 net/netfilter/ipvs/ip_vs_xmit.c static inline bool decrement_ttl(struct netns_ipvs *ipvs, ipvs 260 net/netfilter/ipvs/ip_vs_xmit.c struct net *net = ipvs->net; ipvs 307 net/netfilter/ipvs/ip_vs_xmit.c __ip_vs_get_out_rt(struct netns_ipvs *ipvs, int skb_af, struct sk_buff *skb, ipvs 312 net/netfilter/ipvs/ip_vs_xmit.c struct net *net = ipvs->net; ipvs 377 net/netfilter/ipvs/ip_vs_xmit.c if (!decrement_ttl(ipvs, skb_af, skb)) ipvs 406 net/netfilter/ipvs/ip_vs_xmit.c if (!ensure_mtu_is_adequate(ipvs, skb_af, rt_mode, ipvsh, skb, mtu)) ipvs 472 net/netfilter/ipvs/ip_vs_xmit.c __ip_vs_get_out_rt_v6(struct netns_ipvs *ipvs, int skb_af, struct sk_buff *skb, ipvs 477 net/netfilter/ipvs/ip_vs_xmit.c struct net *net = ipvs->net; ipvs 542 net/netfilter/ipvs/ip_vs_xmit.c if (!decrement_ttl(ipvs, skb_af, skb)) ipvs 573 net/netfilter/ipvs/ip_vs_xmit.c if (!ensure_mtu_is_adequate(ipvs, skb_af, rt_mode, ipvsh, skb, mtu)) ipvs 658 net/netfilter/ipvs/ip_vs_xmit.c NF_HOOK(pf, NF_INET_LOCAL_OUT, cp->ipvs->net, NULL, skb, ipvs 678 net/netfilter/ipvs/ip_vs_xmit.c NF_HOOK(pf, NF_INET_LOCAL_OUT, cp->ipvs->net, NULL, skb, ipvs 711 net/netfilter/ipvs/ip_vs_xmit.c if (__ip_vs_get_out_rt(cp->ipvs, cp->af, skb, NULL, iph->daddr, ipvs 740 net/netfilter/ipvs/ip_vs_xmit.c if (__ip_vs_get_out_rt_v6(cp->ipvs, cp->af, skb, NULL, ipvs 785 net/netfilter/ipvs/ip_vs_xmit.c local = __ip_vs_get_out_rt(cp->ipvs, cp->af, skb, cp->dest, cp->daddr.ip, ipvs 871 net/netfilter/ipvs/ip_vs_xmit.c local = __ip_vs_get_out_rt_v6(cp->ipvs, cp->af, skb, cp->dest, ipvs 1136 net/netfilter/ipvs/ip_vs_xmit.c struct netns_ipvs *ipvs = cp->ipvs; ipvs 1137 net/netfilter/ipvs/ip_vs_xmit.c struct net *net = ipvs->net; ipvs 1154 net/netfilter/ipvs/ip_vs_xmit.c local = __ip_vs_get_out_rt(ipvs, cp->af, skb, cp->dest, cp->daddr.ip, ipvs 1197 net/netfilter/ipvs/ip_vs_xmit.c dfp = sysctl_pmtu_disc(ipvs) ? &df : NULL; ipvs 1286 net/netfilter/ipvs/ip_vs_xmit.c struct netns_ipvs *ipvs = cp->ipvs; ipvs 1287 net/netfilter/ipvs/ip_vs_xmit.c struct net *net = ipvs->net; ipvs 1303 net/netfilter/ipvs/ip_vs_xmit.c local = __ip_vs_get_out_rt_v6(ipvs, cp->af, skb, cp->dest, ipvs 1442 net/netfilter/ipvs/ip_vs_xmit.c local = __ip_vs_get_out_rt(cp->ipvs, cp->af, skb, cp->dest, cp->daddr.ip, ipvs 1476 net/netfilter/ipvs/ip_vs_xmit.c local = __ip_vs_get_out_rt_v6(cp->ipvs, cp->af, skb, cp->dest, ipvs 1541 net/netfilter/ipvs/ip_vs_xmit.c local = __ip_vs_get_out_rt(cp->ipvs, cp->af, skb, cp->dest, cp->daddr.ip, rt_mode, ipvs 1630 net/netfilter/ipvs/ip_vs_xmit.c local = __ip_vs_get_out_rt_v6(cp->ipvs, cp->af, skb, cp->dest, ipvs 52 net/netfilter/xt_ipvs.c struct netns_ipvs *ipvs = net_ipvs(xt_net(par)); ipvs 90 net/netfilter/xt_ipvs.c cp = pp->conn_out_get(ipvs, family, skb, &iph);