Home
last modified time | relevance | path

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

123456

/linux/drivers/thunderbolt/
A Dtunnel.c124 tunnel = kzalloc(sizeof(*tunnel), GFP_KERNEL); in tb_tunnel_alloc()
125 if (!tunnel) in tb_tunnel_alloc()
224 if (!tunnel) in tb_tunnel_discover_pci()
301 if (!tunnel) in tb_tunnel_alloc_pci()
1197 tunnel->allocated_up, tunnel->allocated_down); in tb_usb3_init()
1414 &tunnel->allocated_up, &tunnel->allocated_down); in tb_tunnel_discover_usb3()
1540 tunnel->deinit(tunnel); in tb_tunnel_free()
1592 res = tunnel->init(tunnel); in tb_tunnel_restart()
1604 res = tunnel->activate(tunnel, true); in tb_tunnel_restart()
1649 tunnel->activate(tunnel, false); in tb_tunnel_deactivate()
[all …]
A Dtunnel.h50 int (*init)(struct tb_tunnel *tunnel);
51 void (*deinit)(struct tb_tunnel *tunnel);
85 void tb_tunnel_free(struct tb_tunnel *tunnel);
86 int tb_tunnel_activate(struct tb_tunnel *tunnel);
87 int tb_tunnel_restart(struct tb_tunnel *tunnel);
88 void tb_tunnel_deactivate(struct tb_tunnel *tunnel);
89 bool tb_tunnel_is_invalid(struct tb_tunnel *tunnel);
101 return tunnel->type == TB_TUNNEL_PCI; in tb_tunnel_is_pci()
106 return tunnel->type == TB_TUNNEL_DP; in tb_tunnel_is_dp()
111 return tunnel->type == TB_TUNNEL_DMA; in tb_tunnel_is_dma()
[all …]
A Dtb.c134 if (!tunnel) in tb_discover_tunnels()
273 return tunnel; in tb_find_tunnel()
318 if (tunnel) { in tb_available_bandwidth()
407 return tunnel ? tb_tunnel_release_unused_bandwidth(tunnel) : 0; in tb_release_unused_usb3_bandwidth()
417 if (!tunnel) in tb_reclaim_usb3_bandwidth()
495 if (!tunnel) { in tb_tunnel_usb3()
686 if (!tunnel) in tb_deactivate_and_free_tunnel()
692 tb = tunnel->tb; in tb_deactivate_and_free_tunnel()
931 if (!tunnel) { in tb_tunnel_dp()
1069 if (!tunnel) in tb_tunnel_pci()
[all …]
A Dtest.c1366 tb_tunnel_free(tunnel); in tb_test_tunnel_dp()
1412 tb_tunnel_free(tunnel); in tb_test_tunnel_dp_chain()
1462 tb_tunnel_free(tunnel); in tb_test_tunnel_dp_tree()
1542 tb_tunnel_free(tunnel); in tb_test_tunnel_dp_max_length()
1706 tb_tunnel_free(tunnel); in tb_test_tunnel_dma()
1743 tb_tunnel_free(tunnel); in tb_test_tunnel_dma_rx()
1780 tb_tunnel_free(tunnel); in tb_test_tunnel_dma_tx()
1846 tb_tunnel_free(tunnel); in tb_test_tunnel_dma_chain()
1873 tb_tunnel_free(tunnel); in tb_test_tunnel_dma_match()
1885 tb_tunnel_free(tunnel); in tb_test_tunnel_dma_match()
[all …]
/linux/net/l2tp/
A Dl2tp_core.c170 if (tunnel) in l2tp_sk_to_tunnel()
435 struct l2tp_tunnel *tunnel = session->tunnel; in l2tp_recv_dequeue_skb() local
646 struct l2tp_tunnel *tunnel = session->tunnel; in l2tp_recv_common() local
653 tunnel->name, tunnel->tunnel_id, in l2tp_recv_common()
828 tunnel->name, version, tunnel->version); in l2tp_udp_recv_core()
932 struct l2tp_tunnel *tunnel = session->tunnel; in l2tp_build_l2tpv2_header() local
959 struct l2tp_tunnel *tunnel = session->tunnel; in l2tp_build_l2tpv3_header() local
1016 struct l2tp_tunnel *tunnel = session->tunnel; in l2tp_xmit_core() local
1168 struct l2tp_tunnel *tunnel = session->tunnel; in l2tp_session_unhash() local
1399 tunnel = kzalloc(sizeof(*tunnel), GFP_KERNEL); in l2tp_tunnel_create()
[all …]
A Dl2tp_debugfs.c38 struct l2tp_tunnel *tunnel; member
45 if (pd->tunnel) in l2tp_dfs_next_tunnel()
81 if (!pd->tunnel) in l2tp_dfs_seq_start()
87 if (!pd->tunnel && !pd->session) in l2tp_dfs_seq_start()
114 if (pd->tunnel) { in l2tp_dfs_seq_stop()
116 pd->tunnel = NULL; in l2tp_dfs_seq_stop()
122 struct l2tp_tunnel *tunnel = v; in l2tp_dfs_seq_tunnel_show() local
128 read_lock_bh(&tunnel->hlist_lock); in l2tp_dfs_seq_tunnel_show()
142 seq_printf(m, "\nTUNNEL %u peer %u", tunnel->tunnel_id, tunnel->peer_tunnel_id); in l2tp_dfs_seq_tunnel_show()
143 if (tunnel->sock) { in l2tp_dfs_seq_tunnel_show()
[all …]
A Dl2tp_ppp.c286 tunnel = session->tunnel; in pppol2tp_sendmsg()
361 tunnel = session->tunnel; in pppol2tp_xmit()
694 if (tunnel) in pppol2tp_connect()
702 if (!tunnel) { in pppol2tp_connect()
736 if (!tunnel) in pppol2tp_connect()
917 tunnel = session->tunnel; in pppol2tp_getname()
1261 tunnel = session->tunnel; in pppol2tp_setsockopt()
1368 tunnel = session->tunnel; in pppol2tp_getsockopt()
1422 if (!pd->tunnel || pd->tunnel->version == 2) in pppol2tp_next_tunnel()
1506 (tunnel == tunnel->sock->sk_user_data) ? 'Y' : 'N', in pppol2tp_seq_tunnel_show()
[all …]
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 …]
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.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 …]
A Dl2tp_eth.c204 static void l2tp_eth_adjust_mtu(struct l2tp_tunnel *tunnel, in l2tp_eth_adjust_mtu() argument
213 if (tunnel->encap == L2TP_ENCAPTYPE_UDP) { in l2tp_eth_adjust_mtu()
218 lock_sock(tunnel->sock); in l2tp_eth_adjust_mtu()
219 l3_overhead = kernel_sock_ip_overhead(tunnel->sock); in l2tp_eth_adjust_mtu()
220 release_sock(tunnel->sock); in l2tp_eth_adjust_mtu()
235 mtu = l2tp_tunnel_dst_mtu(tunnel) - overhead; in l2tp_eth_adjust_mtu()
244 static int l2tp_eth_create(struct net *net, struct l2tp_tunnel *tunnel, in l2tp_eth_create() argument
264 session = l2tp_session_create(sizeof(*spriv), tunnel, session_id, in l2tp_eth_create()
281 l2tp_eth_adjust_mtu(tunnel, session, dev); in l2tp_eth_create()
301 rc = l2tp_session_register(session, tunnel); in l2tp_eth_create()
/linux/drivers/net/
A Damt.c244 tunnel->nr_sources--; in amt_destroy_source()
493 tunnel->nr_groups++; in amt_add_group()
596 &tunnel->ip4, ntohs(tunnel->source_port), in __amt_update_relay_status()
807 amt_skb_cb(skb)->tunnel = tunnel; in amt_send_igmp_gq()
892 amt_skb_cb(skb)->tunnel = tunnel; in amt_send_mld_gq()
1226 tunnel = amt_skb_cb(skb)->tunnel; in amt_dev_xmit()
1227 if (!tunnel) { in amt_dev_xmit()
2623 tunnel = kzalloc(sizeof(*tunnel) + in amt_request_handler()
2626 if (!tunnel) in amt_request_handler()
2633 tunnel->amt = amt; in amt_request_handler()
[all …]
/linux/net/ipv4/
A Dip_tunnel.c264 tunnel->parms = *parms; in __ip_tunnel_create()
265 tunnel->net = net; in __ip_tunnel_create()
312 tdev = __dev_get_by_index(tunnel->net, tunnel->parms.link); in ip_tunnel_bind_dev()
385 (tunnel->i_seqno && (s32)(ntohl(tpi->seq) - tunnel->i_seqno) < 0)) { in ip_tunnel_rcv()
408 skb_scrub_packet(skb, !net_eq(tunnel->net, dev_net(tunnel->dev))); in ip_tunnel_rcv()
729 tunnel->parms.o_key, RT_TOS(tos), tunnel->parms.link, in ip_tunnel_xmit()
778 tunnel->err_count--; in ip_tunnel_xmit()
1020 itn = net_generic(tunnel->net, tunnel->ip_tnl_net_id); in ip_tunnel_dellink()
1033 return tunnel->net; in ip_tunnel_get_link_net()
1199 t = tunnel; in ip_tunnel_changelink()
[all …]
A Dip_gre.c290 if (tunnel) { in erspan_rcv()
362 if (tunnel) { in __ipgre_rcv()
464 tunnel->o_seqno++; in __gre_xmit()
468 tunnel->parms.o_flags, proto, tunnel->parms.o_key, in __gre_xmit()
704 tunnel->dir, tunnel->hwid, in erspan_xmit()
755 tunnel->tun_hlen = gre_calc_hlen(tunnel->parms.o_flags); in ipgre_link_update()
757 tunnel->hlen = tunnel->hlen + len; in ipgre_link_update()
955 tunnel->tun_hlen = gre_calc_hlen(tunnel->parms.o_flags); in __gre_tunnel_init()
958 tunnel->hlen = tunnel->tun_hlen + tunnel->encap_hlen; in __gre_tunnel_init()
959 dev->needed_headroom = tunnel->hlen + sizeof(tunnel->parms.iph); in __gre_tunnel_init()
[all …]
A Dipip.c217 struct ip_tunnel *tunnel; in ipip_tunnel_rcv() local
223 if (tunnel) { in ipip_tunnel_rcv()
240 if (tunnel->collect_md) { in ipip_tunnel_rcv()
304 if (tunnel->collect_md) in ipip_tunnel_xmit()
386 tunnel->tun_hlen = 0; in ipip_tunnel_init()
387 tunnel->hlen = tunnel->tun_hlen + tunnel->encap_hlen; in ipip_tunnel_init()
582 tunnel->encap.type) || in ipip_fill_info()
584 tunnel->encap.sport) || in ipip_fill_info()
586 tunnel->encap.dport) || in ipip_fill_info()
588 tunnel->encap.flags)) in ipip_fill_info()
[all …]
A Dip_vti.c50 struct ip_tunnel *tunnel; in vti_input() local
57 if (tunnel) { in vti_input()
61 XFRM_TUNNEL_SKB_CB(skb)->tunnel.ip4 = tunnel; in vti_input()
64 skb->dev = tunnel->dev; in vti_input()
100 struct ip_tunnel *tunnel = XFRM_TUNNEL_SKB_CB(skb)->tunnel.ip4; in vti_rcv_cb() local
104 if (!tunnel) in vti_rcv_cb()
107 dev = tunnel->dev; in vti_rcv_cb()
317 struct ip_tunnel *tunnel; in vti4_err() local
328 if (!tunnel) in vti4_err()
426 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()
698 skb->dev = tunnel->dev; in ipip6_rcv()
706 !net_eq(tunnel->net, dev_net(tunnel->dev)))) in ipip6_rcv()
768 if (tunnel) { in sit_tunnel_rcv()
944 flowi4_init_output(&fl4, tunnel->parms.link, tunnel->fwmark, in ipip6_tunnel_xmit()
1004 tunnel->err_count--; in ipip6_tunnel_xmit()
1007 tunnel->err_count = 0; in ipip6_tunnel_xmit()
1131 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.c502 if (tunnel) { in ip6gre_rcv()
543 if (tunnel) { in ip6erspan_rcv()
772 tunnel->o_seqno++; in __gre6_xmit()
774 gre_build_header(skb, tunnel->tun_hlen, tunnel->parms.o_flags, in __gre6_xmit()
1162 tunnel->tun_hlen = gre_calc_hlen(tunnel->parms.o_flags); in ip6gre_calc_hlen()
1163 tunnel->hlen = tunnel->tun_hlen + tunnel->encap_hlen; in ip6gre_calc_hlen()
1471 tunnel->dev = dev; in ip6gre_tunnel_init_common()
1537 tunnel->dev = dev; in ip6gre_fb_tunnel_init()
1848 tunnel->tun_hlen = 8; in ip6erspan_calc_hlen()
1849 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.
447 tunnel is configured manually at each end of the tunnel. All
509 keeps a list of sessions in the tunnel. When a tunnel is first
518 Tunnels are kept in a per-net list, indexed by tunnel id. The tunnel
525 tunnel context holds a ref on the tunnel socket, the socket's
531 first closed. Each session drops its tunnel ref. When the tunnel ref
557 Sessions hold a ref on their parent tunnel to ensure that the tunnel
566 the tunnel socket.
[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.sh223 tmpl src ${HOST1_4} dst ${HOST2_4} proto esp mode tunnel
228 tmpl src ${HOST1_4} dst ${HOST2_4} proto esp mode tunnel
233 tmpl src ${HOST2_4} dst ${HOST1_4} proto esp mode tunnel
265 proto esp spi ${SPI_1} reqid 0 mode tunnel \
272 proto esp spi ${SPI_1} reqid 0 mode tunnel \
280 proto esp spi ${SPI_2} reqid 0 mode tunnel \
287 proto esp spi ${SPI_2} reqid 0 mode tunnel \
295 proto esp spi ${SPI_1} reqid 0 mode tunnel \
302 proto esp spi ${SPI_1} reqid 0 mode tunnel \
310 proto esp spi ${SPI_2} reqid 0 mode tunnel \
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
A Dtc_tun.c127 if (tunnel && tunnel->get_remote_ifindex) in mlx5e_route_lookup_ipv4_get()
190 if (!e->tunnel) { in mlx5e_gen_ip_tunnel_header()
250 e->tunnel->calc_hlen(e); in mlx5e_tc_tun_create_header_ipv4()
365 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()
633 e->tunnel->calc_hlen(e); in mlx5e_tc_tun_update_header_ipv6()
774 if (tunnel && tunnel->can_offload(priv)) in mlx5e_tc_tun_device_to_offload()
787 if (!tunnel) { in mlx5e_tc_tun_init_encap_attr()
810 if (!tunnel) { in mlx5e_tc_tun_parse()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/lag/
A Dport_sel.c190 if (tunnel) in mlx5_lag_set_definer()
374 if (!port_sel->tunnel) in mlx5_lag_create_definers()
397 port_sel->tunnel = false; in set_tt_map()
401 port_sel->tunnel = true; in set_tt_map()
413 port_sel->tunnel = true; in set_tt_map()
475 ttc_params->inner_ttc = port_sel->tunnel; in mlx5_lag_set_outer_ttc_params()
476 if (!port_sel->tunnel) in mlx5_lag_set_outer_ttc_params()
526 if (port_sel->tunnel) { in mlx5_lag_port_sel_create()
539 if (port_sel->tunnel) in mlx5_lag_port_sel_create()
595 if (!port_sel->tunnel) in mlx5_lag_port_sel_modify()
[all …]
/linux/Documentation/devicetree/bindings/i2c/
A Dgoogle,cros-ec-i2c-tunnel.yaml5 $id: http://devicetree.org/schemas/i2c/google,cros-ec-i2c-tunnel.yaml#
19 those devices we need to tunnel our i2c commands through the EC.
29 const: google,cros-ec-i2c-tunnel
52 i2c-tunnel {
53 compatible = "google,cros-ec-i2c-tunnel";

Completed in 61 milliseconds

123456