Lines Matching refs:udp_ports
18 ret = -ns->udp_ports.inject_error; in nsim_udp_tunnel_set_port()
19 ns->udp_ports.inject_error = 0; in nsim_udp_tunnel_set_port()
21 if (ns->udp_ports.sleep) in nsim_udp_tunnel_set_port()
22 msleep(ns->udp_ports.sleep); in nsim_udp_tunnel_set_port()
25 if (ns->udp_ports.ports[table][entry]) { in nsim_udp_tunnel_set_port()
29 ns->udp_ports.ports[table][entry] = in nsim_udp_tunnel_set_port()
47 ret = -ns->udp_ports.inject_error; in nsim_udp_tunnel_unset_port()
48 ns->udp_ports.inject_error = 0; in nsim_udp_tunnel_unset_port()
50 if (ns->udp_ports.sleep) in nsim_udp_tunnel_unset_port()
51 msleep(ns->udp_ports.sleep); in nsim_udp_tunnel_unset_port()
55 if (val == ns->udp_ports.ports[table][entry]) { in nsim_udp_tunnel_unset_port()
56 ns->udp_ports.ports[table][entry] = 0; in nsim_udp_tunnel_unset_port()
59 val, ns->udp_ports.ports[table][entry]); in nsim_udp_tunnel_unset_port()
78 ret = -ns->udp_ports.inject_error; in nsim_udp_tunnel_sync_table()
79 ns->udp_ports.inject_error = 0; in nsim_udp_tunnel_sync_table()
83 ns->udp_ports.ports[table][i] = in nsim_udp_tunnel_sync_table()
115 memset(ns->udp_ports.ports, 0, sizeof(ns->udp_ports.__ports)); in nsim_udp_tunnels_info_reset_write()
136 if (nsim_dev->udp_ports.shared && nsim_dev->udp_ports.open_only) { in nsim_udp_tunnels_info_create()
142 if (!nsim_dev->udp_ports.shared) in nsim_udp_tunnels_info_create()
143 ns->udp_ports.ports = ns->udp_ports.__ports; in nsim_udp_tunnels_info_create()
145 ns->udp_ports.ports = nsim_dev->udp_ports.__ports; in nsim_udp_tunnels_info_create()
149 &ns->udp_ports.inject_error); in nsim_udp_tunnels_info_create()
151 ns->udp_ports.dfs_ports[0].array = ns->udp_ports.ports[0]; in nsim_udp_tunnels_info_create()
152 ns->udp_ports.dfs_ports[0].n_elements = NSIM_UDP_TUNNEL_N_PORTS; in nsim_udp_tunnels_info_create()
155 &ns->udp_ports.dfs_ports[0]); in nsim_udp_tunnels_info_create()
157 ns->udp_ports.dfs_ports[1].array = ns->udp_ports.ports[1]; in nsim_udp_tunnels_info_create()
158 ns->udp_ports.dfs_ports[1].n_elements = NSIM_UDP_TUNNEL_N_PORTS; in nsim_udp_tunnels_info_create()
161 &ns->udp_ports.dfs_ports[1]); in nsim_udp_tunnels_info_create()
173 ns->udp_ports.sleep = nsim_dev->udp_ports.sleep; in nsim_udp_tunnels_info_create()
175 if (nsim_dev->udp_ports.sync_all) { in nsim_udp_tunnels_info_create()
182 if (ns->udp_ports.sleep) in nsim_udp_tunnels_info_create()
184 if (nsim_dev->udp_ports.open_only) in nsim_udp_tunnels_info_create()
186 if (nsim_dev->udp_ports.ipv4_only) in nsim_udp_tunnels_info_create()
188 if (nsim_dev->udp_ports.shared) in nsim_udp_tunnels_info_create()
189 info->shared = &nsim_dev->udp_ports.utn_shared; in nsim_udp_tunnels_info_create()
190 if (nsim_dev->udp_ports.static_iana_vxlan) in nsim_udp_tunnels_info_create()
206 &nsim_dev->udp_ports.sync_all); in nsim_udp_tunnels_debugfs_create()
208 &nsim_dev->udp_ports.open_only); in nsim_udp_tunnels_debugfs_create()
210 &nsim_dev->udp_ports.ipv4_only); in nsim_udp_tunnels_debugfs_create()
212 &nsim_dev->udp_ports.shared); in nsim_udp_tunnels_debugfs_create()
214 &nsim_dev->udp_ports.static_iana_vxlan); in nsim_udp_tunnels_debugfs_create()
216 &nsim_dev->udp_ports.sleep); in nsim_udp_tunnels_debugfs_create()