/openbmc/linux/drivers/thunderbolt/ |
H A D | tunnel.c | 139 tunnel = kzalloc(sizeof(*tunnel), GFP_KERNEL); in tb_tunnel_alloc() 140 if (!tunnel) in tb_tunnel_alloc() 154 return tunnel; in tb_tunnel_alloc() 272 if (!tunnel) in tb_tunnel_discover_pci() 349 if (!tunnel) in tb_tunnel_alloc_pci() 1956 &tunnel->allocated_up, &tunnel->allocated_down); in tb_tunnel_discover_usb3() 2082 tunnel->deinit(tunnel); in tb_tunnel_free() 2134 res = tunnel->init(tunnel); in tb_tunnel_restart() 2146 res = tunnel->activate(tunnel, true); in tb_tunnel_restart() 2191 tunnel->activate(tunnel, false); in tb_tunnel_deactivate() [all …]
|
H A D | tunnel.h | 55 int (*init)(struct tb_tunnel *tunnel); 56 void (*deinit)(struct tb_tunnel *tunnel); 100 void tb_tunnel_free(struct tb_tunnel *tunnel); 101 int tb_tunnel_activate(struct tb_tunnel *tunnel); 102 int tb_tunnel_restart(struct tb_tunnel *tunnel); 103 void tb_tunnel_deactivate(struct tb_tunnel *tunnel); 104 bool tb_tunnel_is_invalid(struct tb_tunnel *tunnel); 122 return tunnel->type == TB_TUNNEL_PCI; in tb_tunnel_is_pci() 127 return tunnel->type == TB_TUNNEL_DP; in tb_tunnel_is_dp() 132 return tunnel->type == TB_TUNNEL_DMA; in tb_tunnel_is_dma() [all …]
|
H A D | tb.c | 329 if (!tunnel) in tb_increase_tmu_accuracy() 412 if (tunnel) in tb_switch_discover_tunnels() 588 if (tunnel && tunnel->src_port != src_port && in tb_available_bandwidth() 729 if (!tunnel) in tb_reclaim_usb3_bandwidth() 807 if (!tunnel) { in tb_tunnel_usb3() 1025 if (!tunnel) in tb_deactivate_and_free_tunnel() 1381 if (!tunnel) { in tb_tunnel_dp() 1478 if (tunnel) in tb_dp_resource_unavailable() 1578 if (!tunnel) in tb_tunnel_pci() 1626 if (!tunnel) { in tb_approve_xdomain_paths() [all …]
|
H A D | test.c | 1424 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 …]
|
/openbmc/linux/net/l2tp/ |
H A D | l2tp_core.c | 433 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() 826 tunnel->name, version, tunnel->version); in l2tp_udp_recv_core() 930 struct l2tp_tunnel *tunnel = session->tunnel; in l2tp_build_l2tpv2_header() local 957 struct l2tp_tunnel *tunnel = session->tunnel; in l2tp_build_l2tpv3_header() local 1014 struct l2tp_tunnel *tunnel = session->tunnel; in l2tp_xmit_core() local 1168 struct l2tp_tunnel *tunnel = session->tunnel; in l2tp_session_unhash() local 1257 l2tp_tunnel_remove(tunnel->l2tp_net, tunnel); in l2tp_tunnel_del_work() 1398 tunnel = kzalloc(sizeof(*tunnel), GFP_KERNEL); in l2tp_tunnel_create() [all …]
|
H A D | l2tp_debugfs.c | 39 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 D | l2tp_ppp.c | 285 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 D | l2tp_netlink.c | 63 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 D | trace.h | 28 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 D | l2tp_core.h | 74 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 D | l2tp_eth.c | 207 static void l2tp_eth_adjust_mtu(struct l2tp_tunnel *tunnel, in l2tp_eth_adjust_mtu() argument 216 if (tunnel->encap == L2TP_ENCAPTYPE_UDP) { in l2tp_eth_adjust_mtu() 221 lock_sock(tunnel->sock); in l2tp_eth_adjust_mtu() 222 l3_overhead = kernel_sock_ip_overhead(tunnel->sock); in l2tp_eth_adjust_mtu() 223 release_sock(tunnel->sock); in l2tp_eth_adjust_mtu() 238 mtu = l2tp_tunnel_dst_mtu(tunnel) - overhead; in l2tp_eth_adjust_mtu() 247 static int l2tp_eth_create(struct net *net, struct l2tp_tunnel *tunnel, in l2tp_eth_create() argument 267 session = l2tp_session_create(sizeof(*spriv), tunnel, session_id, in l2tp_eth_create() 284 l2tp_eth_adjust_mtu(tunnel, session, dev); in l2tp_eth_create() 304 rc = l2tp_session_register(session, tunnel); in l2tp_eth_create()
|
/openbmc/linux/drivers/net/ |
H A D | amt.c | 246 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 …]
|
/openbmc/linux/net/ipv4/ |
H A D | ip_tunnel.c | 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() 1068 itn = net_generic(tunnel->net, tunnel->ip_tnl_net_id); in ip_tunnel_dellink() 1081 return tunnel->net; in ip_tunnel_get_link_net() 1247 t = tunnel; in ip_tunnel_changelink() [all …]
|
H A D | ip_gre.c | 295 if (tunnel) { in erspan_rcv() 367 if (tunnel) { in __ipgre_rcv() 712 tunnel->index, in erspan_xmit() 717 tunnel->dir, tunnel->hwid, in erspan_xmit() 768 len = tunnel->tun_hlen; in ipgre_link_update() 769 tunnel->tun_hlen = gre_calc_hlen(tunnel->parms.o_flags); in ipgre_link_update() 771 tunnel->hlen = tunnel->hlen + len; in ipgre_link_update() 966 tunnel->tun_hlen = gre_calc_hlen(tunnel->parms.o_flags); in __gre_tunnel_init() 969 tunnel->hlen = tunnel->tun_hlen + tunnel->encap_hlen; in __gre_tunnel_init() 970 dev->needed_headroom = tunnel->hlen + sizeof(tunnel->parms.iph); in __gre_tunnel_init() [all …]
|
H A D | ipip.c | 217 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() 305 if (tunnel->collect_md) in ipip_tunnel_xmit() 387 tunnel->tun_hlen = 0; in ipip_tunnel_init() 388 tunnel->hlen = tunnel->tun_hlen + tunnel->encap_hlen; in ipip_tunnel_init() 527 tunnel->encap.type) || in ipip_fill_info() 529 tunnel->encap.sport) || in ipip_fill_info() 531 tunnel->encap.dport) || in ipip_fill_info() 533 tunnel->encap.flags)) in ipip_fill_info() [all …]
|
H A D | ip_vti.c | 50 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 …]
|
/openbmc/linux/net/ipv6/ |
H A D | sit.c | 679 struct ip_tunnel *tunnel; in ipip6_rcv() local 686 if (tunnel) { in ipip6_rcv() 694 skb->dev = tunnel->dev; in ipip6_rcv() 702 !net_eq(tunnel->net, dev_net(tunnel->dev)))) in ipip6_rcv() 760 if (tunnel) { in sit_tunnel_rcv() 936 flowi4_init_output(&fl4, tunnel->parms.link, tunnel->fwmark, in ipip6_tunnel_xmit() 996 tunnel->err_count--; in ipip6_tunnel_xmit() 999 tunnel->err_count = 0; in ipip6_tunnel_xmit() 1124 tdev = __dev_get_by_index(tunnel->net, tunnel->parms.link); in ipip6_tunnel_bind_dev() 1447 tunnel->dev = dev; in ipip6_tunnel_init() [all …]
|
H A D | ip6_gre.c | 491 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() 1182 tunnel->tun_hlen = gre_calc_hlen(tunnel->parms.o_flags); in ip6gre_calc_hlen() 1183 tunnel->hlen = tunnel->tun_hlen + tunnel->encap_hlen; in ip6gre_calc_hlen() 1488 tunnel->dev = dev; in ip6gre_tunnel_init_common() 1555 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 …]
|
/openbmc/linux/Documentation/networking/ |
H A D | l2tp.rst | 27 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 …]
|
H A D | bareudp.rst | 11 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
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | with_tunnels.sh | 15 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
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Network/Experimental/ |
H A D | Tunnel.interface.yaml | 15 Local endpoint of tunnel. 19 Remote endpoint of tunnel. 23 The Type Of Service byte value for a tunnel interface. 31 When true, enables Path MTU Discovery on the tunnel. 43 of an IPv6 tunnel packet. 65 An "ip6tnl" tunnel can be in one of three modes. 71 Possible IPv6 tunnel types.
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | vrf-xfrm-tests.sh | 223 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 …]
|
/openbmc/linux/Documentation/devicetree/bindings/i2c/ |
H A D | google,cros-ec-i2c-tunnel.yaml | 5 $id: http://devicetree.org/schemas/i2c/google,cros-ec-i2c-tunnel.yaml# 18 those devices we need to tunnel our i2c commands through the EC. 28 const: google,cros-ec-i2c-tunnel 52 i2c-tunnel { 53 compatible = "google,cros-ec-i2c-tunnel";
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | tc_tun.c | 128 if (tunnel && tunnel->get_remote_ifindex) in mlx5e_route_lookup_ipv4_get() 191 if (!e->tunnel) { in mlx5e_gen_ip_tunnel_header() 251 e->tunnel->calc_hlen(e); in mlx5e_tc_tun_create_header_ipv4() 366 e->tunnel->calc_hlen(e); in mlx5e_tc_tun_update_header_ipv4() 454 if (tunnel && tunnel->get_remote_ifindex) in mlx5e_route_lookup_ipv6_get() 520 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() 775 if (tunnel && tunnel->can_offload(priv)) in mlx5e_tc_tun_device_to_offload() 788 if (!tunnel) { in mlx5e_tc_tun_init_encap_attr() 811 if (!tunnel) { in mlx5e_tc_tun_parse() [all …]
|