Home
last modified time | relevance | path

Searched refs:tunnel (Results 1 – 25 of 162) sorted by relevance

1234567

/linux/drivers/thunderbolt/
A Dtunnel.c152 tunnel = kzalloc(sizeof(*tunnel), GFP_KERNEL); in tb_tunnel_alloc()
153 if (!tunnel) in tb_tunnel_alloc()
167 return tunnel; in tb_tunnel_alloc()
304 if (!tunnel) in tb_tunnel_discover_pci()
381 if (!tunnel) in tb_tunnel_alloc_pci()
2020 &tunnel->allocated_up, &tunnel->allocated_down); in tb_tunnel_discover_usb3()
2141 tunnel->deinit(tunnel); in tb_tunnel_free()
2193 res = tunnel->init(tunnel); in tb_tunnel_restart()
2205 res = tunnel->activate(tunnel, true); in tb_tunnel_restart()
2250 tunnel->activate(tunnel, false); in tb_tunnel_deactivate()
[all …]
A Dtunnel.h55 int (*init)(struct tb_tunnel *tunnel);
56 void (*deinit)(struct tb_tunnel *tunnel);
124 return tunnel->type == TB_TUNNEL_PCI; in tb_tunnel_is_pci()
129 return tunnel->type == TB_TUNNEL_DP; in tb_tunnel_is_dp()
134 return tunnel->type == TB_TUNNEL_DMA; in tb_tunnel_is_dma()
139 return tunnel->type == TB_TUNNEL_USB3; in tb_tunnel_is_usb3()
145 tunnel->dst_port); in tb_tunnel_direction_downstream()
162 #define tb_tunnel_WARN(tunnel, fmt, arg...) \ argument
164 #define tb_tunnel_warn(tunnel, fmt, arg...) \ argument
166 #define tb_tunnel_info(tunnel, fmt, arg...) \ argument
[all …]
A Dtb.c275 if (!tunnel) in tb_increase_tmu_accuracy()
394 if (tunnel) in tb_switch_discover_tunnels()
493 return tunnel; in tb_find_tunnel()
867 if (!tunnel) in tb_reclaim_usb3_bandwidth()
945 if (!tunnel) { in tb_tunnel_usb3()
1524 if (tunnel) in __configure_group_sym()
1688 if (!tunnel) in tb_deactivate_and_free_tunnel()
1925 if (!tunnel) { in tb_tunnel_one_dp()
2078 if (tunnel) in tb_dp_resource_unavailable()
2178 if (!tunnel) in tb_tunnel_pci()
[all …]
A Dtest.c1424 tb_tunnel_free(tunnel); in tb_test_tunnel_dp()
1470 tb_tunnel_free(tunnel); in tb_test_tunnel_dp_chain()
1520 tb_tunnel_free(tunnel); in tb_test_tunnel_dp_tree()
1600 tb_tunnel_free(tunnel); in tb_test_tunnel_dp_max_length()
1829 tb_tunnel_free(tunnel); in tb_test_tunnel_dma()
1866 tb_tunnel_free(tunnel); in tb_test_tunnel_dma_rx()
1903 tb_tunnel_free(tunnel); in tb_test_tunnel_dma_tx()
1969 tb_tunnel_free(tunnel); in tb_test_tunnel_dma_chain()
1996 tb_tunnel_free(tunnel); in tb_test_tunnel_dma_match()
2008 tb_tunnel_free(tunnel); in tb_test_tunnel_dma_match()
[all …]
/linux/drivers/gpu/drm/display/
A Ddrm_dp_tunnel.c368 return tunnel; in tunnel_get()
380 kfree(tunnel); in free_tunnel()
478 tunnel = kzalloc(sizeof(*tunnel), GFP_KERNEL); in create_tunnel()
479 if (!tunnel) in create_tunnel()
490 snprintf(tunnel->name, sizeof(tunnel->name), "%d:%d:%d", in create_tunnel()
517 track_tunnel_ref(tunnel, &tunnel->tracker); in create_tunnel()
524 untrack_tunnel_ref(tunnel, &tunnel->tracker); in destroy_tunnel()
777 if (!tunnel) in drm_dp_tunnel_detect()
811 if (!tunnel) in drm_dp_tunnel_destroy()
1034 return tunnel && tunnel->bw_alloc_enabled; in drm_dp_tunnel_bw_alloc_is_enabled()
[all …]
/linux/include/drm/display/
A Ddrm_dp_tunnel.h24 struct drm_dp_tunnel *tunnel; member
39 tunnel_ref->tunnel = drm_dp_tunnel_get(tunnel, &tunnel_ref->tracker); in drm_dp_tunnel_ref_get()
45 tunnel_ref->tunnel = NULL; in drm_dp_tunnel_ref_put()
73 struct drm_dp_tunnel *tunnel);
77 const struct drm_dp_tunnel *tunnel);
81 const struct drm_dp_tunnel *tunnel);
84 struct drm_dp_tunnel *tunnel,
196 struct drm_dp_tunnel *tunnel) in drm_dp_tunnel_atomic_get_state() argument
203 const struct drm_dp_tunnel *tunnel) in drm_dp_tunnel_atomic_get_new_state() argument
210 struct drm_dp_tunnel *tunnel, in drm_dp_tunnel_atomic_set_stream_bw() argument
[all …]
/linux/net/l2tp/
A Dl2tp_core.c284 tunnel && tunnel->sock == sk && in l2tp_v3_session_get()
376 if (tunnel && tunnel->tunnel_id == tid && in l2tp_v3_session_get_next()
400 tunnel && tunnel->tunnel_id == tid && in l2tp_v3_session_get_next()
598 WRITE_ONCE(session->tunnel, tunnel); in l2tp_session_register()
657 struct l2tp_tunnel *tunnel = session->tunnel; in l2tp_recv_dequeue_skb() local
868 struct l2tp_tunnel *tunnel = session->tunnel; in l2tp_recv_common() local
875 tunnel->name, tunnel->tunnel_id, in l2tp_recv_common()
1086 tunnel = session->tunnel; in l2tp_udp_encap_recv()
1140 struct l2tp_tunnel *tunnel = session->tunnel; in l2tp_build_l2tpv2_header() local
1167 struct l2tp_tunnel *tunnel = session->tunnel; in l2tp_build_l2tpv3_header() local
[all …]
A Dl2tp_debugfs.c39 struct l2tp_tunnel *tunnel; member
46 if (pd->tunnel) in l2tp_dfs_next_tunnel()
47 l2tp_tunnel_put(pd->tunnel); in l2tp_dfs_next_tunnel()
60 pd->tunnel->version, in l2tp_dfs_next_session()
84 if (!pd->tunnel) in l2tp_dfs_seq_start()
117 if (pd->tunnel) { in l2tp_dfs_seq_stop()
118 l2tp_tunnel_put(pd->tunnel); in l2tp_dfs_seq_stop()
119 pd->tunnel = NULL; in l2tp_dfs_seq_stop()
139 seq_printf(m, "\nTUNNEL %u peer %u", tunnel->tunnel_id, tunnel->peer_tunnel_id); in l2tp_dfs_seq_tunnel_show()
140 if (tunnel->sock) { in l2tp_dfs_seq_tunnel_show()
[all …]
A Dl2tp_ppp.c280 tunnel = session->tunnel; in pppol2tp_sendmsg()
355 tunnel = session->tunnel; in pppol2tp_xmit()
652 if (!tunnel) { in pppol2tp_tunnel_get()
682 if (!tunnel) in pppol2tp_tunnel_get()
692 return tunnel; in pppol2tp_tunnel_get()
912 tunnel = session->tunnel; in pppol2tp_getname()
1035 session = l2tp_session_get(tunnel->l2tp_net, tunnel->sock, tunnel->version, in pppol2tp_tunnel_copy_stats()
1258 tunnel = session->tunnel; in pppol2tp_setsockopt()
1365 tunnel = session->tunnel; in pppol2tp_getsockopt()
1417 if (!pd->tunnel || pd->tunnel->version == 2) in pppol2tp_next_tunnel()
[all …]
A Dl2tp_netlink.c63 if (tunnel) { in l2tp_nl_session_get()
64 session = l2tp_session_get(net, tunnel->sock, tunnel->version, in l2tp_nl_session_get()
248 kfree(tunnel); in l2tp_nl_cmd_tunnel_create()
273 if (!tunnel) { in l2tp_nl_cmd_tunnel_delete()
303 if (!tunnel) { in l2tp_nl_cmd_tunnel_modify()
472 if (!tunnel) { in l2tp_nl_cmd_tunnel_get()
508 if (!tunnel) in l2tp_nl_cmd_tunnel_dump()
546 if (!tunnel) { in l2tp_nl_cmd_session_create()
701 struct l2tp_tunnel *tunnel = session->tunnel; in l2tp_nl_cmd_session_modify() local
727 struct l2tp_tunnel *tunnel = session->tunnel; in l2tp_nl_session_send() local
[all …]
A Dtrace.h28 TP_PROTO(struct l2tp_tunnel *tunnel),
29 TP_ARGS(tunnel),
53 TP_ARGS(tunnel),
64 __entry->fd = tunnel->fd;
65 __entry->tid = tunnel->tunnel_id;
67 __entry->version = tunnel->version;
68 __entry->encap = tunnel->encap;
82 TP_ARGS(tunnel)
87 TP_ARGS(tunnel)
103 __entry->tid = session->tunnel ? session->tunnel->tunnel_id : 0;
[all …]
A Dl2tp_core.h71 struct l2tp_tunnel *tunnel; /* back pointer to tunnel context */ member
194 int (*session_create)(struct net *net, struct l2tp_tunnel *tunnel,
212 void l2tp_tunnel_put(struct l2tp_tunnel *tunnel);
238 int l2tp_tunnel_register(struct l2tp_tunnel *tunnel, struct net *net,
240 void l2tp_tunnel_delete(struct l2tp_tunnel *tunnel);
243 struct l2tp_tunnel *tunnel,
247 struct l2tp_tunnel *tunnel);
287 static inline u32 l2tp_tunnel_dst_mtu(const struct l2tp_tunnel *tunnel) in l2tp_tunnel_dst_mtu() argument
292 dst = sk_dst_get(tunnel->sock); in l2tp_tunnel_dst_mtu()
303 static inline bool l2tp_tunnel_uses_xfrm(const struct l2tp_tunnel *tunnel) in l2tp_tunnel_uses_xfrm() argument
[all …]
A Dl2tp_eth.c185 static void l2tp_eth_adjust_mtu(struct l2tp_tunnel *tunnel, in l2tp_eth_adjust_mtu() argument
194 if (tunnel->encap == L2TP_ENCAPTYPE_UDP) { in l2tp_eth_adjust_mtu()
199 lock_sock(tunnel->sock); in l2tp_eth_adjust_mtu()
200 l3_overhead = kernel_sock_ip_overhead(tunnel->sock); in l2tp_eth_adjust_mtu()
201 release_sock(tunnel->sock); in l2tp_eth_adjust_mtu()
216 mtu = l2tp_tunnel_dst_mtu(tunnel) - overhead; in l2tp_eth_adjust_mtu()
225 static int l2tp_eth_create(struct net *net, struct l2tp_tunnel *tunnel, in l2tp_eth_create() argument
245 session = l2tp_session_create(sizeof(*spriv), tunnel, session_id, in l2tp_eth_create()
262 l2tp_eth_adjust_mtu(tunnel, session, dev); in l2tp_eth_create()
282 rc = l2tp_session_register(session, tunnel); in l2tp_eth_create()
/linux/drivers/gpu/drm/i915/display/
A Dintel_dp_tunnel.c33 intel_dp->tunnel = NULL; in intel_dp_tunnel_disconnect()
182 if (IS_ERR(tunnel)) in detect_new_tunnel()
185 intel_dp->tunnel = tunnel; in detect_new_tunnel()
424 old_crtc_state->dp_tunnel_ref.tunnel == intel_dp->tunnel) in check_inherited_tunnel_state()
493 struct drm_dp_tunnel *tunnel = new_crtc_state->dp_tunnel_ref.tunnel; in intel_dp_tunnel_atomic_add_state_for_crtc() local
495 if (!tunnel) in intel_dp_tunnel_atomic_add_state_for_crtc()
692 if (!tunnel) in atomic_decrease_bw()
693 tunnel = old_crtc_state->dp_tunnel_ref.tunnel; in atomic_decrease_bw()
695 if (!tunnel) in atomic_decrease_bw()
739 struct drm_dp_tunnel *tunnel = crtc_state->dp_tunnel_ref.tunnel; in atomic_increase_bw() local
[all …]
/linux/drivers/net/
A Damt.c246 tunnel->nr_sources--; in amt_destroy_source()
495 tunnel->nr_groups++; in amt_add_group()
598 &tunnel->ip4, ntohs(tunnel->source_port), in __amt_update_relay_status()
799 amt_skb_cb(skb)->tunnel = tunnel; in amt_send_igmp_gq()
884 amt_skb_cb(skb)->tunnel = tunnel; in amt_send_mld_gq()
1257 tunnel = amt_skb_cb(skb)->tunnel; in amt_dev_xmit()
1258 if (!tunnel) { in amt_dev_xmit()
2689 tunnel = kzalloc(sizeof(*tunnel) + in amt_request_handler()
2692 if (!tunnel) { in amt_request_handler()
2701 tunnel->amt = amt; in amt_request_handler()
[all …]
/linux/net/ipv4/
A Dip_tunnel.c237 struct ip_tunnel *tunnel; in __ip_tunnel_create() local
264 tunnel->parms = *parms; in __ip_tunnel_create()
265 tunnel->net = net; in __ip_tunnel_create()
298 tunnel->parms.link, tunnel->fwmark, 0, 0); in ip_tunnel_bind_dev()
312 tdev = __dev_get_by_index(tunnel->net, tunnel->parms.link); in ip_tunnel_bind_dev()
399 (tunnel->i_seqno && (s32)(ntohl(tpi->seq) - tunnel->i_seqno) < 0)) { in ip_tunnel_rcv()
435 skb_scrub_packet(skb, !net_eq(tunnel->net, dev_net(tunnel->dev))); in ip_tunnel_rcv()
826 tunnel->err_count--; in ip_tunnel_xmit()
1110 itn = net_generic(tunnel->net, tunnel->ip_tnl_net_id); in ip_tunnel_dellink()
1287 t = tunnel; in ip_tunnel_changelink()
[all …]
A Dip_gre.c299 if (tunnel) { in erspan_rcv()
371 if (tunnel) { in __ipgre_rcv()
730 tunnel->index, in erspan_xmit()
735 tunnel->dir, tunnel->hwid, in erspan_xmit()
786 len = tunnel->tun_hlen; in ipgre_link_update()
787 tunnel->tun_hlen = gre_calc_hlen(tunnel->parms.o_flags); in ipgre_link_update()
789 tunnel->hlen = tunnel->hlen + len; in ipgre_link_update()
994 tunnel->tun_hlen = gre_calc_hlen(tunnel->parms.o_flags); in __gre_tunnel_init()
997 tunnel->hlen = tunnel->tun_hlen + tunnel->encap_hlen; in __gre_tunnel_init()
998 dev->needed_headroom = tunnel->hlen + sizeof(tunnel->parms.iph); in __gre_tunnel_init()
[all …]
A Dipip.c221 struct ip_tunnel *tunnel; in ipip_tunnel_rcv() local
229 if (tunnel) { in ipip_tunnel_rcv()
246 if (tunnel->collect_md) { in ipip_tunnel_rcv()
313 if (tunnel->collect_md) in ipip_tunnel_xmit()
396 tunnel->tun_hlen = 0; in ipip_tunnel_init()
397 tunnel->hlen = tunnel->tun_hlen + tunnel->encap_hlen; in ipip_tunnel_init()
536 tunnel->encap.type) || in ipip_fill_info()
538 tunnel->encap.sport) || in ipip_fill_info()
540 tunnel->encap.dport) || in ipip_fill_info()
542 tunnel->encap.flags)) in ipip_fill_info()
[all …]
A Dip_vti.c50 struct ip_tunnel *tunnel; in vti_input() local
60 if (tunnel) { in vti_input()
64 XFRM_TUNNEL_SKB_CB(skb)->tunnel.ip4 = tunnel; in vti_input()
67 skb->dev = tunnel->dev; in vti_input()
103 struct ip_tunnel *tunnel = XFRM_TUNNEL_SKB_CB(skb)->tunnel.ip4; in vti_rcv_cb() local
107 if (!tunnel) in vti_rcv_cb()
110 dev = tunnel->dev; in vti_rcv_cb()
320 struct ip_tunnel *tunnel; in vti4_err() local
334 if (!tunnel) in vti4_err()
439 struct iphdr *iph = &tunnel->parms.iph; in vti_tunnel_init()
[all …]
/linux/net/ipv6/
A Dsit.c681 struct ip_tunnel *tunnel; in ipip6_rcv() local
688 if (tunnel) { in ipip6_rcv()
696 skb->dev = tunnel->dev; in ipip6_rcv()
704 !net_eq(tunnel->net, dev_net(tunnel->dev)))) in ipip6_rcv()
762 if (tunnel) { in sit_tunnel_rcv()
938 flowi4_init_output(&fl4, tunnel->parms.link, tunnel->fwmark, in ipip6_tunnel_xmit()
998 tunnel->err_count--; in ipip6_tunnel_xmit()
1001 tunnel->err_count = 0; in ipip6_tunnel_xmit()
1126 tdev = __dev_get_by_index(tunnel->net, tunnel->parms.link); in ipip6_tunnel_bind_dev()
1451 tunnel->dev = dev; in ipip6_tunnel_init()
[all …]
A Dip6_gre.c491 struct ip6_tnl *tunnel; in ip6gre_rcv() local
497 if (tunnel) { in ip6gre_rcv()
528 struct ip6_tnl *tunnel; in ip6erspan_rcv() local
541 if (tunnel) { in ip6erspan_rcv()
1195 tunnel->tun_hlen = gre_calc_hlen(tunnel->parms.o_flags); in ip6gre_calc_hlen()
1196 tunnel->hlen = tunnel->tun_hlen + tunnel->encap_hlen; in ip6gre_calc_hlen()
1500 tunnel->dev = dev; in ip6gre_tunnel_init_common()
1560 tunnel->dev = dev; in ip6gre_fb_tunnel_init()
1867 tunnel->tun_hlen = 8; in ip6erspan_calc_hlen()
1868 tunnel->hlen = tunnel->tun_hlen + tunnel->encap_hlen + in ip6erspan_calc_hlen()
[all …]
/linux/Documentation/networking/
A Dl2tp.rst27 An L2TP tunnel carries one or more L2TP sessions. Each tunnel is
81 tunnel id. When the peer's tunnel id and IP address is known, a
87 id 0 since tunnel setup requests are addressed to tunnel id 0.
90 its tunnel socket is closed.
271 - Create a tunnel::
364 structure that matches the tunnel socket type.
570 tunnel is configured manually at each end of the tunnel. All
632 keeps a list of sessions in the tunnel. When a tunnel is first
647 tunnel context holds a ref on the tunnel socket, the socket's
653 first closed. Each session drops its tunnel ref. When the tunnel ref
[all …]
A Dbareudp.rst11 The Bareudp tunnel module provides a generic L3 encapsulation support for
12 tunnelling different L3 protocols like MPLS, IP, NSH etc. inside a UDP tunnel.
30 This creates a bareudp tunnel device which tunnels L3 traffic with ethertype
44 For an IPv4 tunnel the multiproto mode allows the tunnel to also handle
49 For MPLS, the multiproto mode allows the tunnel to handle both unicast
55 The OVS or TC flower layer must set the tunnel information in SKB dst field before
57 bareudp device extracts and stores the tunnel information in SKB dst field before
/linux/tools/testing/selftests/bpf/
A Dwith_tunnels.sh15 ip tunnel show
24 ip tunnel del "ipip_${SUFFIX}"
25 ip tunnel del "gre_${SUFFIX}"
26 ip tunnel del "sit_${SUFFIX}"
29 ip tunnel show
/linux/tools/testing/selftests/net/
A Dvrf-xfrm-tests.sh218 tmpl src ${HOST1_4} dst ${HOST2_4} proto esp mode tunnel
223 tmpl src ${HOST1_4} dst ${HOST2_4} proto esp mode tunnel
228 tmpl src ${HOST2_4} dst ${HOST1_4} proto esp mode tunnel
260 proto esp spi ${SPI_1} reqid 0 mode tunnel \
267 proto esp spi ${SPI_1} reqid 0 mode tunnel \
275 proto esp spi ${SPI_2} reqid 0 mode tunnel \
282 proto esp spi ${SPI_2} reqid 0 mode tunnel \
290 proto esp spi ${SPI_1} reqid 0 mode tunnel \
297 proto esp spi ${SPI_1} reqid 0 mode tunnel \
305 proto esp spi ${SPI_2} reqid 0 mode tunnel \
[all …]

Completed in 105 milliseconds

1234567