Home
last modified time | relevance | path

Searched refs:ti (Results 1 – 10 of 10) sorted by relevance

/net/openvswitch/
Dflow_table.c145 static void __table_instance_destroy(struct table_instance *ti) in __table_instance_destroy() argument
147 kvfree(ti->buckets); in __table_instance_destroy()
148 kfree(ti); in __table_instance_destroy()
153 struct table_instance *ti = kmalloc(sizeof(*ti), GFP_KERNEL); in table_instance_alloc() local
156 if (!ti) in table_instance_alloc()
159 ti->buckets = kvmalloc_array(new_size, sizeof(struct hlist_head), in table_instance_alloc()
161 if (!ti->buckets) { in table_instance_alloc()
162 kfree(ti); in table_instance_alloc()
167 INIT_HLIST_HEAD(&ti->buckets[i]); in table_instance_alloc()
169 ti->n_buckets = new_size; in table_instance_alloc()
[all …]
Dmeter.c40 static u32 meter_hash(struct dp_meter_instance *ti, u32 id) in meter_hash() argument
42 return id % ti->n_meters; in meter_hash()
57 struct dp_meter_instance *ti = rcu_dereference_ovsl(tbl->ti); in lookup_meter() local
58 u32 hash = meter_hash(ti, meter_id); in lookup_meter()
61 meter = rcu_dereference_ovsl(ti->dp_meters[hash]); in lookup_meter()
70 struct dp_meter_instance *ti; in dp_meter_instance_alloc() local
72 ti = kvzalloc(sizeof(*ti) + in dp_meter_instance_alloc()
75 if (!ti) in dp_meter_instance_alloc()
78 ti->n_meters = size; in dp_meter_instance_alloc()
80 return ti; in dp_meter_instance_alloc()
[all …]
Dflow_table.h63 struct table_instance __rcu *ti; member
112 struct table_instance *ti,
Dmeter.h52 struct dp_meter_instance __rcu *ti; member
Ddatapath.c1434 struct table_instance *ti; in ovs_flow_cmd_dump() local
1452 ti = rcu_dereference(dp->table.ti); in ovs_flow_cmd_dump()
1459 flow = ovs_flow_tbl_dump_next(ti, &bucket, &obj); in ovs_flow_cmd_dump()
1896 table_instance_flow_flush(table, ovsl_dereference(table->ti), in __dp_destroy()
/net/ipv4/
Dudp_tunnel_core.c89 struct udp_tunnel_info ti; in udp_tunnel_push_rx_port() local
91 ti.type = type; in udp_tunnel_push_rx_port()
92 ti.sa_family = sk->sk_family; in udp_tunnel_push_rx_port()
93 ti.port = inet_sk(sk)->inet_sport; in udp_tunnel_push_rx_port()
95 udp_tunnel_nic_add_port(dev, &ti); in udp_tunnel_push_rx_port()
103 struct udp_tunnel_info ti; in udp_tunnel_drop_rx_port() local
105 ti.type = type; in udp_tunnel_drop_rx_port()
106 ti.sa_family = sk->sk_family; in udp_tunnel_drop_rx_port()
107 ti.port = inet_sk(sk)->inet_sport; in udp_tunnel_drop_rx_port()
109 udp_tunnel_nic_del_port(dev, &ti); in udp_tunnel_drop_rx_port()
[all …]
Dudp_tunnel_nic.c121 struct udp_tunnel_info *ti) in udp_tunnel_nic_ti_from_entry() argument
123 memset(ti, 0, sizeof(*ti)); in udp_tunnel_nic_ti_from_entry()
124 ti->port = entry->port; in udp_tunnel_nic_ti_from_entry()
125 ti->type = entry->type; in udp_tunnel_nic_ti_from_entry()
126 ti->hw_priv = entry->hw_priv; in udp_tunnel_nic_ti_from_entry()
166 unsigned int idx, struct udp_tunnel_info *ti) in __udp_tunnel_nic_get_port() argument
175 udp_tunnel_nic_ti_from_entry(entry, ti); in __udp_tunnel_nic_get_port()
214 struct udp_tunnel_info ti; in udp_tunnel_nic_device_sync_one() local
221 udp_tunnel_nic_ti_from_entry(entry, &ti); in udp_tunnel_nic_device_sync_one()
223 err = dev->udp_tunnel_nic_info->set_port(dev, table, idx, &ti); in udp_tunnel_nic_device_sync_one()
[all …]
/net/netfilter/ipvs/
Dip_vs_sync.c1753 struct ip_vs_sync_thread_data *ti = NULL, *tinfo; in start_sync_thread() local
1856 ti = kcalloc(count, sizeof(struct ip_vs_sync_thread_data), in start_sync_thread()
1858 if (!ti) in start_sync_thread()
1862 tinfo = &ti[id]; in start_sync_thread()
1890 ipvs->master_tinfo = ti; in start_sync_thread()
1892 ipvs->backup_tinfo = ti; in start_sync_thread()
1908 if (ti) { in start_sync_thread()
1909 for (tinfo = ti + id; tinfo >= ti; tinfo--) { in start_sync_thread()
1921 if (ti) { in start_sync_thread()
1922 for (tinfo = ti + id; tinfo >= ti; tinfo--) { in start_sync_thread()
[all …]
/net/l2tp/
Dl2tp_netlink.c495 int ti = cb->args[0]; in l2tp_nl_cmd_tunnel_dump() local
500 tunnel = l2tp_tunnel_get_nth(net, ti); in l2tp_nl_cmd_tunnel_dump()
512 ti++; in l2tp_nl_cmd_tunnel_dump()
516 cb->args[0] = ti; in l2tp_nl_cmd_tunnel_dump()
834 int ti = cb->args[0]; in l2tp_nl_cmd_session_dump() local
839 tunnel = l2tp_tunnel_get_nth(net, ti); in l2tp_nl_cmd_session_dump()
846 ti++; in l2tp_nl_cmd_session_dump()
866 cb->args[0] = ti; in l2tp_nl_cmd_session_dump()
/net/xfrm/
Dxfrm_policy.c3631 int ti = 0; in __xfrm_policy_check() local
3644 if (ti + pols[pi]->xfrm_nr >= XFRM_MAX_DEPTH) { in __xfrm_policy_check()
3649 tpp[ti++] = &pols[pi]->xfrm_vec[i]; in __xfrm_policy_check()
3651 xfrm_nr = ti; in __xfrm_policy_check()