Home
last modified time | relevance | path

Searched refs:pe (Results 1 – 7 of 7) sorted by relevance

/net/netfilter/ipvs/
Dip_vs_pe.c23 struct ip_vs_pe *pe; in __ip_vs_pe_getbyname() local
29 list_for_each_entry_rcu(pe, &ip_vs_pe, n_list) { in __ip_vs_pe_getbyname()
31 if (pe->module && in __ip_vs_pe_getbyname()
32 !try_module_get(pe->module)) { in __ip_vs_pe_getbyname()
36 if (strcmp(pe_name, pe->name)==0) { in __ip_vs_pe_getbyname()
39 return pe; in __ip_vs_pe_getbyname()
41 module_put(pe->module); in __ip_vs_pe_getbyname()
51 struct ip_vs_pe *pe; in ip_vs_pe_getbyname() local
54 pe = __ip_vs_pe_getbyname(name); in ip_vs_pe_getbyname()
57 if (!pe) { in ip_vs_pe_getbyname()
[all …]
Dip_vs_conn.c128 if (p->pe_data && p->pe->hashkey_raw) in ip_vs_conn_hashkey_param()
129 return p->pe->hashkey_raw(p, ip_vs_conn_rnd, inverse) & in ip_vs_conn_hashkey_param()
150 if (cp->pe) { in ip_vs_conn_hashkey_conn()
151 p.pe = cp->pe; in ip_vs_conn_hashkey_conn()
359 if (unlikely(p->pe_data && p->pe->ct_match)) { in ip_vs_ct_in_get()
362 if (p->pe == cp->pe && p->pe->ct_match(p, cp)) { in ip_vs_ct_in_get()
817 ip_vs_pe_put(cp->pe); in ip_vs_conn_rcu_free()
972 if (flags & IP_VS_CONN_F_TEMPLATE && p->pe) { in ip_vs_conn_new()
973 ip_vs_pe_get(p->pe); in ip_vs_conn_new()
974 cp->pe = p->pe; in ip_vs_conn_new()
[all …]
Dip_vs_ctl.c1291 struct ip_vs_pe *pe = NULL; in ip_vs_add_service() local
1311 pe = ip_vs_pe_getbyname(u->pe_name); in ip_vs_add_service()
1312 if (pe == NULL) { in ip_vs_add_service()
1388 RCU_INIT_POINTER(svc->pe, pe); in ip_vs_add_service()
1389 pe = NULL; in ip_vs_add_service()
1396 if (svc->pe && svc->pe->conn_out) in ip_vs_add_service()
1424 ip_vs_pe_put(pe); in ip_vs_add_service()
1440 struct ip_vs_pe *pe = NULL, *old_pe = NULL; in ip_vs_edit_service() local
1458 pe = ip_vs_pe_getbyname(u->pe_name); in ip_vs_edit_service()
1459 if (pe == NULL) { in ip_vs_edit_service()
[all …]
Dip_vs_core.c238 p->pe = rcu_dereference(svc->pe); in ip_vs_conn_fill_param_persist()
239 if (p->pe && p->pe->fill_param) in ip_vs_conn_fill_param_persist()
240 return p->pe->fill_param(p, skb); in ip_vs_conn_fill_param_persist()
1243 struct ip_vs_pe *pe; in __ip_vs_rs_conn_out() local
1247 pe = rcu_dereference(svc->pe); in __ip_vs_rs_conn_out()
1248 if (pe && pe->conn_out) in __ip_vs_rs_conn_out()
1249 cp = pe->conn_out(svc, dest, skb, iph, in __ip_vs_rs_conn_out()
Dip_vs_sync.c659 pe_name_len = strnlen(cp->pe->name, IP_VS_PENAME_MAXLEN); in ip_vs_sync_conn()
766 memcpy(p, cp->pe->name, pe_name_len); in ip_vs_sync_conn()
815 p->pe = __ip_vs_pe_getbyname(buff); in ip_vs_conn_fill_param_sync()
816 if (!p->pe) { in ip_vs_conn_fill_param_sync()
828 module_put(p->pe->module); in ip_vs_conn_fill_param_sync()
1191 ip_vs_pe_put(param.pe); in ip_vs_proc_sync_conn()
/net/smc/
Dsmc_pnet.c719 struct smc_pnetids_ndev_entry *pe; in smc_pnet_is_ndev_pnetid() local
723 list_for_each_entry(pe, &sn->pnetids_ndev.list, list) { in smc_pnet_is_ndev_pnetid()
724 if (smc_pnet_match(pnetid, pe->pnetid)) { in smc_pnet_is_ndev_pnetid()
738 struct smc_pnetids_ndev_entry *pe, *pi; in smc_pnet_add_pnetid() local
740 pe = kzalloc(sizeof(*pe), GFP_KERNEL); in smc_pnet_add_pnetid()
741 if (!pe) in smc_pnet_add_pnetid()
746 if (smc_pnet_match(pnetid, pe->pnetid)) { in smc_pnet_add_pnetid()
748 kfree(pe); in smc_pnet_add_pnetid()
752 refcount_set(&pe->refcnt, 1); in smc_pnet_add_pnetid()
753 memcpy(pe->pnetid, pnetid, SMC_MAX_PNETID_LEN); in smc_pnet_add_pnetid()
[all …]
/net/core/
Dpktgen.c3821 struct proc_dir_entry *pe; in pktgen_create_thread() local
3852 pe = proc_create_data(t->tsk->comm, 0600, pn->proc_dir, in pktgen_create_thread()
3854 if (!pe) { in pktgen_create_thread()
3927 struct proc_dir_entry *pe; in pg_net_init() local
3938 pe = proc_create(PGCTRL, 0600, pn->proc_dir, &pktgen_proc_ops); in pg_net_init()
3939 if (pe == NULL) { in pg_net_init()