Home
last modified time | relevance | path

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

1234567

/linux/drivers/thunderbolt/
H 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 …]
H 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 …]
H A Dtb.c275 if (!tunnel) in tb_increase_tmu_accuracy()
358 if (tunnel) in tb_switch_discover_tunnels()
457 return tunnel; in tb_find_tunnel()
831 if (!tunnel) in tb_reclaim_usb3_bandwidth()
909 if (!tunnel) { in tb_tunnel_usb3()
1488 if (tunnel) in __configure_group_sym()
1652 if (!tunnel) in tb_deactivate_and_free_tunnel()
1889 if (!tunnel) { in tb_tunnel_one_dp()
2042 if (tunnel) in tb_dp_resource_unavailable()
2142 if (!tunnel) in tb_tunnel_pci()
[all …]
H 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/
H 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/
H 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/
H A Dl2tp_core.c433 struct l2tp_tunnel *tunnel = session->tunnel; in l2tp_recv_dequeue_skb() local
644 struct l2tp_tunnel *tunnel = session->tunnel; in l2tp_recv_common() local
651 tunnel->name, tunnel->tunnel_id, in l2tp_recv_common()
949 if (!tunnel || tunnel->fd < 0) in l2tp_udp_encap_err_recv()
974 struct l2tp_tunnel *tunnel = session->tunnel; in l2tp_build_l2tpv2_header() local
1001 struct l2tp_tunnel *tunnel = session->tunnel; in l2tp_build_l2tpv3_header() local
1058 struct l2tp_tunnel *tunnel = session->tunnel; in l2tp_xmit_core() local
1212 struct l2tp_tunnel *tunnel = session->tunnel; in l2tp_session_unhash() local
1301 l2tp_tunnel_remove(tunnel->l2tp_net, tunnel); in l2tp_tunnel_del_work()
1442 tunnel = kzalloc(sizeof(*tunnel), GFP_KERNEL); in l2tp_tunnel_create()
[all …]
H A Dl2tp_debugfs.c39 struct l2tp_tunnel *tunnel; member
46 if (pd->tunnel) in l2tp_dfs_next_tunnel()
47 l2tp_tunnel_dec_refcount(pd->tunnel); in l2tp_dfs_next_tunnel()
82 if (!pd->tunnel) in l2tp_dfs_seq_start()
88 if (!pd->tunnel && !pd->session) in l2tp_dfs_seq_start()
115 if (pd->tunnel) { in l2tp_dfs_seq_stop()
117 pd->tunnel = NULL; in l2tp_dfs_seq_stop()
123 struct l2tp_tunnel *tunnel = v; in l2tp_dfs_seq_tunnel_show() local
140 seq_printf(m, "\nTUNNEL %u peer %u", tunnel->tunnel_id, tunnel->peer_tunnel_id); in l2tp_dfs_seq_tunnel_show()
141 if (tunnel->sock) { in l2tp_dfs_seq_tunnel_show()
[all …]
H A Dl2tp_ppp.c285 tunnel = session->tunnel; in pppol2tp_sendmsg()
360 tunnel = session->tunnel; in pppol2tp_xmit()
669 if (!tunnel) { in pppol2tp_tunnel_get()
699 if (!tunnel) in pppol2tp_tunnel_get()
709 return tunnel; in pppol2tp_tunnel_get()
925 tunnel = session->tunnel; in pppol2tp_getname()
1269 tunnel = session->tunnel; in pppol2tp_setsockopt()
1376 tunnel = session->tunnel; in pppol2tp_getsockopt()
1430 if (!pd->tunnel || pd->tunnel->version == 2) in pppol2tp_next_tunnel()
1514 (tunnel == tunnel->sock->sk_user_data) ? 'Y' : 'N', in pppol2tp_seq_tunnel_show()
[all …]
H A Dl2tp_netlink.c63 if (tunnel) { in l2tp_nl_session_get()
247 kfree(tunnel); in l2tp_nl_cmd_tunnel_create()
272 if (!tunnel) { in l2tp_nl_cmd_tunnel_delete()
302 if (!tunnel) { in l2tp_nl_cmd_tunnel_modify()
471 if (!tunnel) { in l2tp_nl_cmd_tunnel_get()
501 if (!tunnel) in l2tp_nl_cmd_tunnel_dump()
539 if (!tunnel) { in l2tp_nl_cmd_session_create()
717 struct l2tp_tunnel *tunnel = session->tunnel; in l2tp_nl_session_send() local
838 if (!tunnel) { in l2tp_nl_cmd_session_dump()
840 if (!tunnel) in l2tp_nl_cmd_session_dump()
[all …]
H 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 …]
H A Dl2tp_core.h74 struct l2tp_tunnel *tunnel; /* back pointer to tunnel context */ member
198 int (*session_create)(struct net *net, struct l2tp_tunnel *tunnel,
216 void l2tp_tunnel_inc_refcount(struct l2tp_tunnel *tunnel);
217 void l2tp_tunnel_dec_refcount(struct l2tp_tunnel *tunnel);
242 int l2tp_tunnel_register(struct l2tp_tunnel *tunnel, struct net *net,
244 void l2tp_tunnel_delete(struct l2tp_tunnel *tunnel);
247 struct l2tp_tunnel *tunnel,
251 struct l2tp_tunnel *tunnel);
293 static inline u32 l2tp_tunnel_dst_mtu(const struct l2tp_tunnel *tunnel) in l2tp_tunnel_dst_mtu() argument
298 dst = sk_dst_get(tunnel->sock); in l2tp_tunnel_dst_mtu()
[all …]
H A Dl2tp_eth.c197 static void l2tp_eth_adjust_mtu(struct l2tp_tunnel *tunnel, in l2tp_eth_adjust_mtu() argument
206 if (tunnel->encap == L2TP_ENCAPTYPE_UDP) { in l2tp_eth_adjust_mtu()
211 lock_sock(tunnel->sock); in l2tp_eth_adjust_mtu()
212 l3_overhead = kernel_sock_ip_overhead(tunnel->sock); in l2tp_eth_adjust_mtu()
213 release_sock(tunnel->sock); in l2tp_eth_adjust_mtu()
228 mtu = l2tp_tunnel_dst_mtu(tunnel) - overhead; in l2tp_eth_adjust_mtu()
237 static int l2tp_eth_create(struct net *net, struct l2tp_tunnel *tunnel, in l2tp_eth_create() argument
257 session = l2tp_session_create(sizeof(*spriv), tunnel, session_id, in l2tp_eth_create()
274 l2tp_eth_adjust_mtu(tunnel, session, dev); in l2tp_eth_create()
294 rc = l2tp_session_register(session, tunnel); in l2tp_eth_create()
/linux/drivers/gpu/drm/i915/display/
H 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()
422 old_crtc_state->dp_tunnel_ref.tunnel == intel_dp->tunnel) in check_inherited_tunnel_state()
490 struct drm_dp_tunnel *tunnel = new_crtc_state->dp_tunnel_ref.tunnel; in intel_dp_tunnel_atomic_add_state_for_crtc() local
492 if (!tunnel) in intel_dp_tunnel_atomic_add_state_for_crtc()
689 if (!tunnel) in atomic_decrease_bw()
690 tunnel = old_crtc_state->dp_tunnel_ref.tunnel; in atomic_decrease_bw()
692 if (!tunnel) in atomic_decrease_bw()
736 struct drm_dp_tunnel *tunnel = crtc_state->dp_tunnel_ref.tunnel; in atomic_increase_bw() local
[all …]
/linux/drivers/net/
H 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/
H A Dip_tunnel.c236 struct ip_tunnel *tunnel; in __ip_tunnel_create() local
263 tunnel->parms = *parms; in __ip_tunnel_create()
264 tunnel->net = net; in __ip_tunnel_create()
297 tunnel->parms.link, tunnel->fwmark, 0, 0); in ip_tunnel_bind_dev()
311 tdev = __dev_get_by_index(tunnel->net, tunnel->parms.link); in ip_tunnel_bind_dev()
398 (tunnel->i_seqno && (s32)(ntohl(tpi->seq) - tunnel->i_seqno) < 0)) { in ip_tunnel_rcv()
434 skb_scrub_packet(skb, !net_eq(tunnel->net, dev_net(tunnel->dev))); in ip_tunnel_rcv()
825 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 …]
H A Dip_gre.c298 if (tunnel) { in erspan_rcv()
370 if (tunnel) { in __ipgre_rcv()
729 tunnel->index, in erspan_xmit()
734 tunnel->dir, tunnel->hwid, in erspan_xmit()
785 len = tunnel->tun_hlen; in ipgre_link_update()
786 tunnel->tun_hlen = gre_calc_hlen(tunnel->parms.o_flags); in ipgre_link_update()
788 tunnel->hlen = tunnel->hlen + len; in ipgre_link_update()
993 tunnel->tun_hlen = gre_calc_hlen(tunnel->parms.o_flags); in __gre_tunnel_init()
996 tunnel->hlen = tunnel->tun_hlen + tunnel->encap_hlen; in __gre_tunnel_init()
997 dev->needed_headroom = tunnel->hlen + sizeof(tunnel->parms.iph); in __gre_tunnel_init()
[all …]
H 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 …]
H 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/
H A Dsit.c680 struct ip_tunnel *tunnel; in ipip6_rcv() local
687 if (tunnel) { in ipip6_rcv()
695 skb->dev = tunnel->dev; in ipip6_rcv()
703 !net_eq(tunnel->net, dev_net(tunnel->dev)))) in ipip6_rcv()
761 if (tunnel) { in sit_tunnel_rcv()
937 flowi4_init_output(&fl4, tunnel->parms.link, tunnel->fwmark, in ipip6_tunnel_xmit()
997 tunnel->err_count--; in ipip6_tunnel_xmit()
1000 tunnel->err_count = 0; in ipip6_tunnel_xmit()
1125 tdev = __dev_get_by_index(tunnel->net, tunnel->parms.link); in ipip6_tunnel_bind_dev()
1450 tunnel->dev = dev; in ipip6_tunnel_init()
[all …]
H 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()
1498 tunnel->dev = dev; in ip6gre_tunnel_init_common()
1558 tunnel->dev = dev; in ip6gre_fb_tunnel_init()
1866 tunnel->tun_hlen = 8; in ip6erspan_calc_hlen()
1867 tunnel->hlen = tunnel->tun_hlen + tunnel->encap_hlen + in ip6erspan_calc_hlen()
[all …]
/linux/Documentation/networking/
H 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.
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
641 Tunnels are kept in a per-net list, indexed by tunnel id. The tunnel
648 tunnel context holds a ref on the tunnel socket, the socket's
654 first closed. Each session drops its tunnel ref. When the tunnel ref
680 Sessions hold a ref on their parent tunnel to ensure that the tunnel
689 the tunnel socket.
[all …]
H 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/
H 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/
H 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 …]

1234567