Home
last modified time | relevance | path

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

1234567

/linux-6.15/drivers/thunderbolt/
H A Dtunnel.c173 tunnel = kzalloc(sizeof(*tunnel), GFP_KERNEL); in tb_tunnel_alloc()
174 if (!tunnel) in tb_tunnel_alloc()
205 tunnel->destroy(tunnel); in tb_tunnel_destroy()
357 if (!tunnel) in tb_tunnel_discover_pci()
1001 tunnel->callback(tunnel, tunnel->callback_data); in tb_dp_dprx_work()
2156 &tunnel->allocated_up, &tunnel->allocated_down); in tb_tunnel_discover_usb3()
2309 res = tunnel->pre_activate(tunnel); in tb_tunnel_activate()
2321 res = tunnel->activate(tunnel, true); in tb_tunnel_activate()
2349 tunnel->activate(tunnel, false); in tb_tunnel_deactivate()
2357 tunnel->post_deactivate(tunnel); in tb_tunnel_deactivate()
[all …]
H A Dtunnel.h80 int (*pre_activate)(struct tb_tunnel *tunnel);
83 void (*destroy)(struct tb_tunnel *tunnel);
137 void tb_tunnel_put(struct tb_tunnel *tunnel);
152 return tunnel->state == TB_TUNNEL_ACTIVE; in tb_tunnel_is_active()
173 return tunnel->type == TB_TUNNEL_PCI; in tb_tunnel_is_pci()
178 return tunnel->type == TB_TUNNEL_DP; in tb_tunnel_is_dp()
183 return tunnel->type == TB_TUNNEL_DMA; in tb_tunnel_is_dma()
188 return tunnel->type == TB_TUNNEL_USB3; in tb_tunnel_is_usb3()
194 tunnel->dst_port); in tb_tunnel_direction_downstream()
211 #define tb_tunnel_WARN(tunnel, fmt, arg...) \ argument
[all …]
H A Dtb.c287 if (!tunnel) in tb_increase_tmu_accuracy()
406 if (tunnel) in tb_switch_discover_tunnels()
505 return tunnel; in tb_find_tunnel()
879 if (!tunnel) in tb_reclaim_usb3_bandwidth()
957 if (!tunnel) { in tb_tunnel_usb3()
1546 if (tunnel) in __configure_group_sym()
1710 if (!tunnel) in tb_deactivate_and_free_tunnel()
2012 if (!tunnel) { in tb_tunnel_one_dp()
2176 if (tunnel) in tb_dp_resource_unavailable()
2276 if (!tunnel) in tb_tunnel_pci()
[all …]
H A Dtest.c1424 tb_tunnel_put(tunnel); in tb_test_tunnel_dp()
1470 tb_tunnel_put(tunnel); in tb_test_tunnel_dp_chain()
1520 tb_tunnel_put(tunnel); in tb_test_tunnel_dp_tree()
1600 tb_tunnel_put(tunnel); in tb_test_tunnel_dp_max_length()
1829 tb_tunnel_put(tunnel); in tb_test_tunnel_dma()
1866 tb_tunnel_put(tunnel); in tb_test_tunnel_dma_rx()
1903 tb_tunnel_put(tunnel); in tb_test_tunnel_dma_tx()
1969 tb_tunnel_put(tunnel); in tb_test_tunnel_dma_chain()
1996 tb_tunnel_put(tunnel); in tb_test_tunnel_dma_match()
2008 tb_tunnel_put(tunnel); in tb_test_tunnel_dma_match()
[all …]
/linux-6.15/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-6.15/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-6.15/net/l2tp/
H 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 …]
H 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 …]
H 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()
913 tunnel = session->tunnel; in pppol2tp_getname()
1036 session = l2tp_session_get(tunnel->l2tp_net, tunnel->sock, tunnel->version, in pppol2tp_tunnel_copy_stats()
1259 tunnel = session->tunnel; in pppol2tp_setsockopt()
1366 tunnel = session->tunnel; in pppol2tp_getsockopt()
1418 if (!pd->tunnel || pd->tunnel->version == 2) in pppol2tp_next_tunnel()
[all …]
H 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 …]
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.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 …]
H 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-6.15/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()
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-6.15/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-6.15/net/ipv4/
H A Dip_tunnel.c265 tunnel->parms = *parms; in __ip_tunnel_create()
266 tunnel->net = net; in __ip_tunnel_create()
299 tunnel->parms.link, tunnel->fwmark, 0, 0); in ip_tunnel_bind_dev()
313 tdev = __dev_get_by_index(tunnel->net, tunnel->parms.link); in ip_tunnel_bind_dev()
400 (tunnel->i_seqno && (s32)(ntohl(tpi->seq) - tunnel->i_seqno) < 0)) { in ip_tunnel_rcv()
436 skb_scrub_packet(skb, !net_eq(tunnel->net, dev_net(tunnel->dev))); in ip_tunnel_rcv()
778 tunnel->net, READ_ONCE(tunnel->parms.link), in ip_tunnel_xmit()
827 tunnel->err_count--; in ip_tunnel_xmit()
1111 itn = net_generic(tunnel->net, tunnel->ip_tnl_net_id); in ip_tunnel_dellink()
1288 t = tunnel; in ip_tunnel_changelink()
[all …]
H A Dip_gre.c303 if (tunnel) { in erspan_rcv()
375 if (tunnel) { in __ipgre_rcv()
734 tunnel->index, in erspan_xmit()
739 tunnel->dir, tunnel->hwid, in erspan_xmit()
790 len = tunnel->tun_hlen; in ipgre_link_update()
791 tunnel->tun_hlen = gre_calc_hlen(tunnel->parms.o_flags); in ipgre_link_update()
793 tunnel->hlen = tunnel->hlen + len; in ipgre_link_update()
1001 tunnel->tun_hlen = gre_calc_hlen(tunnel->parms.o_flags); in __gre_tunnel_init()
1004 tunnel->hlen = tunnel->tun_hlen + tunnel->encap_hlen; in __gre_tunnel_init()
1005 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()
539 tunnel->encap.type) || in ipip_fill_info()
541 tunnel->encap.sport) || in ipip_fill_info()
543 tunnel->encap.dport) || in ipip_fill_info()
545 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-6.15/net/ipv6/
H A Dsit.c682 struct ip_tunnel *tunnel; in ipip6_rcv() local
689 if (tunnel) { in ipip6_rcv()
697 skb->dev = tunnel->dev; in ipip6_rcv()
705 !net_eq(tunnel->net, dev_net(tunnel->dev)))) in ipip6_rcv()
763 if (tunnel) { in sit_tunnel_rcv()
939 flowi4_init_output(&fl4, tunnel->parms.link, tunnel->fwmark, in ipip6_tunnel_xmit()
999 tunnel->err_count--; in ipip6_tunnel_xmit()
1002 tunnel->err_count = 0; in ipip6_tunnel_xmit()
1127 tdev = __dev_get_by_index(tunnel->net, tunnel->parms.link); in ipip6_tunnel_bind_dev()
1452 tunnel->dev = dev; in ipip6_tunnel_init()
[all …]
H A Dip6_gre.c492 struct ip6_tnl *tunnel; in ip6gre_rcv() local
498 if (tunnel) { in ip6gre_rcv()
529 struct ip6_tnl *tunnel; in ip6erspan_rcv() local
542 if (tunnel) { in ip6erspan_rcv()
1196 tunnel->tun_hlen = gre_calc_hlen(tunnel->parms.o_flags); in ip6gre_calc_hlen()
1197 tunnel->hlen = tunnel->tun_hlen + tunnel->encap_hlen; in ip6gre_calc_hlen()
1501 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-6.15/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.
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 …]
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.
31 This creates a bareudp tunnel device which tunnels L3 traffic with ethertype
45 For an IPv4 tunnel the multiproto mode allows the tunnel to also handle
50 For MPLS, the multiproto mode allows the tunnel to handle both unicast
56 The OVS or TC flower layer must set the tunnel information in the SKB dst field before
58 bareUDP device extracts and stores the tunnel information in the SKB dst field before
/linux-6.15/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 …]
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_tun.c125 if (tunnel && tunnel->get_remote_ifindex) in mlx5e_route_lookup_ipv4_get()
188 if (!e->tunnel) { in mlx5e_gen_ip_tunnel_header()
248 e->tunnel->calc_hlen(e); in mlx5e_tc_tun_create_header_ipv4()
364 e->tunnel->calc_hlen(e); in mlx5e_tc_tun_update_header_ipv4()
453 if (tunnel && tunnel->get_remote_ifindex) in mlx5e_route_lookup_ipv6_get()
519 e->tunnel->calc_hlen(e); in mlx5e_tc_tun_create_header_ipv6()
634 e->tunnel->calc_hlen(e); in mlx5e_tc_tun_update_header_ipv6()
776 if (tunnel && tunnel->can_offload(priv)) in mlx5e_tc_tun_device_to_offload()
789 if (!tunnel) { in mlx5e_tc_tun_init_encap_attr()
812 if (!tunnel) { in mlx5e_tc_tun_parse()
[all …]

1234567