Home
last modified time | relevance | path

Searched refs:tunnel_id (Results 1 – 25 of 37) sorted by relevance

12

/linux-6.1.9/net/bridge/
Dbr_vlan_tunnel.c25 return vle->tinfo.tunnel_id != tunid; in br_vlan_tunid_cmp()
30 .key_offset = offsetof(struct net_bridge_vlan, tinfo.tunnel_id),
38 __be64 tunnel_id) in br_vlan_tunnel_lookup() argument
40 return rhashtable_lookup_fast(tbl, &tunnel_id, in br_vlan_tunnel_lookup()
48 WRITE_ONCE(vlan->tinfo.tunnel_id, 0); in vlan_tunnel_info_release()
80 WRITE_ONCE(vlan->tinfo.tunnel_id, key); in __vlan_tunnel_info_add()
189 __be64 tunnel_id; in br_handle_egress_vlan_tunnel() local
195 tunnel_id = READ_ONCE(vlan->tinfo.tunnel_id); in br_handle_egress_vlan_tunnel()
196 if (!tunnel_id || unlikely(!skb_vlan_tag_present(skb))) in br_handle_egress_vlan_tunnel()
Dbr_netlink_tunnel.c32 __be32 tunid_curr = tunnel_id_to_key32(v_curr->tinfo.tunnel_id); in vlan_tunid_inrange()
33 __be32 tunid_last = tunnel_id_to_key32(v_last->tinfo.tunnel_id); in vlan_tunid_inrange()
46 if (!br_vlan_should_use(v) || !v->tinfo.tunnel_id) in __get_num_vlan_tunnel_infos()
91 __be64 tunnel_id, u16 flags) in br_fill_vlan_tinfo() argument
93 __be32 tid = tunnel_id_to_key32(tunnel_id); in br_fill_vlan_tinfo()
127 vtbegin->tinfo.tunnel_id, in br_fill_vlan_tinfo_range()
133 vtend->tinfo.tunnel_id, in br_fill_vlan_tinfo_range()
139 vtbegin->tinfo.tunnel_id, in br_fill_vlan_tinfo_range()
Dbr_vlan_options.c14 __be32 tid = tunnel_id_to_key32(v->tinfo.tunnel_id); in __vlan_tun_put()
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dtest_tunnel_kern.c70 key.tunnel_id = 2; in gre_set_tunnel()
96 bpf_printk("key %d remote ip 0x%x\n", key.tunnel_id, key.remote_ipv4); in gre_get_tunnel()
108 key.tunnel_id = 2; in ip6gretap_set_tunnel()
138 key.tunnel_id, key.remote_ipv6[3], key.tunnel_label); in ip6gretap_get_tunnel()
152 key.tunnel_id = 2; in erspan_set_tunnel()
207 key.tunnel_id, key.remote_ipv4, md.version); in erspan_get_tunnel()
231 key.tunnel_id = 2; in ip4ip6erspan_set_tunnel()
288 key.tunnel_id, key.remote_ipv4, md.version); in ip4ip6erspan_get_tunnel()
321 key.tunnel_id = 2; in vxlan_set_tunnel_dst()
360 key.tunnel_id = 2; in vxlan_set_tunnel_src()
[all …]
/linux-6.1.9/include/net/
Ddst_metadata.h201 __be64 tunnel_id, in __ip_tun_set_dst() argument
212 0, 0, tp_dst, tunnel_id, flags); in __ip_tun_set_dst()
218 __be64 tunnel_id, in ip_tun_rx_dst() argument
224 0, flags, tunnel_id, md_size); in ip_tun_rx_dst()
233 __be64 tunnel_id, in __ipv6_tun_set_dst() argument
246 info->key.tun_id = tunnel_id; in __ipv6_tun_set_dst()
262 __be64 tunnel_id, in ipv6_tun_rx_dst() argument
269 0, ip6_flowlabel(ip6h), flags, tunnel_id, in ipv6_tun_rx_dst()
Dudp_tunnel.h165 __be16 flags, __be64 tunnel_id,
/linux-6.1.9/net/l2tp/
Dl2tp_core.c205 struct l2tp_tunnel *l2tp_tunnel_get(const struct net *net, u32 tunnel_id) in l2tp_tunnel_get() argument
211 tunnel = idr_find(&pn->l2tp_tunnel_idr, tunnel_id); in l2tp_tunnel_get()
225 unsigned long tunnel_id, tmp; in l2tp_tunnel_get_nth() local
230 idr_for_each_entry_ul(&pn->l2tp_tunnel_idr, tunnel, tmp, tunnel_id) { in l2tp_tunnel_get_nth()
651 tunnel->name, tunnel->tunnel_id, in l2tp_recv_common()
799 u32 tunnel_id, session_id; in l2tp_udp_recv_core() local
846 tunnel_id = ntohs(*(__be16 *)ptr); in l2tp_udp_recv_core()
852 tunnel_id = tunnel->tunnel_id; in l2tp_udp_recv_core()
865 tunnel->name, tunnel_id, session_id); in l2tp_udp_recv_core()
934 u32 tunnel_id = tunnel->peer_tunnel_id; in l2tp_build_l2tpv2_header() local
[all …]
Dl2tp_netlink.c48 u32 tunnel_id; in l2tp_nl_session_get() local
60 tunnel_id = nla_get_u32(info->attrs[L2TP_ATTR_CONN_ID]); in l2tp_nl_session_get()
62 tunnel = l2tp_tunnel_get(net, tunnel_id); in l2tp_nl_session_get()
186 u32 tunnel_id; in l2tp_nl_cmd_tunnel_create() local
200 tunnel_id = nla_get_u32(attrs[L2TP_ATTR_CONN_ID]); in l2tp_nl_cmd_tunnel_create()
236 ret = l2tp_tunnel_create(fd, proto_version, tunnel_id, in l2tp_nl_cmd_tunnel_create()
261 u32 tunnel_id; in l2tp_nl_cmd_tunnel_delete() local
269 tunnel_id = nla_get_u32(info->attrs[L2TP_ATTR_CONN_ID]); in l2tp_nl_cmd_tunnel_delete()
271 tunnel = l2tp_tunnel_get(net, tunnel_id); in l2tp_nl_cmd_tunnel_delete()
291 u32 tunnel_id; in l2tp_nl_cmd_tunnel_modify() local
[all …]
Dl2tp_ppp.c556 u32 tunnel_id; member
575 info->tunnel_id = sa_v2in4->pppol2tp.s_tunnel; in pppol2tp_sockaddr_get_info()
591 info->tunnel_id = sa_v3in4->pppol2tp.s_tunnel; in pppol2tp_sockaddr_get_info()
607 info->tunnel_id = sa_v2in6->pppol2tp.s_tunnel; in pppol2tp_sockaddr_get_info()
623 info->tunnel_id = sa_v3in6->pppol2tp.s_tunnel; in pppol2tp_sockaddr_get_info()
689 if (!info.tunnel_id) in pppol2tp_connect()
692 tunnel = l2tp_tunnel_get(sock_net(sk), info.tunnel_id); in pppol2tp_connect()
716 info.tunnel_id, in pppol2tp_connect()
928 sp.pppol2tp.s_tunnel = tunnel->tunnel_id; in pppol2tp_getname()
946 sp.pppol2tp.s_tunnel = tunnel->tunnel_id; in pppol2tp_getname()
[all …]
Dl2tp_core.h169 u32 tunnel_id; member
225 struct l2tp_tunnel *l2tp_tunnel_get(const struct net *net, u32 tunnel_id);
239 int l2tp_tunnel_create(int fd, int version, u32 tunnel_id,
Dl2tp_ip.c46 __be32 raddr, int dif, u32 tunnel_id) in __l2tp_ip_bind_lookup() argument
69 if (l2tp->conn_id != tunnel_id) in __l2tp_ip_bind_lookup()
118 u32 tunnel_id; in l2tp_ip_recv() local
167 tunnel_id = ntohl(*(__be32 *)&skb->data[4]); in l2tp_ip_recv()
172 tunnel_id); in l2tp_ip_recv()
Dl2tp_ip6.c57 int dif, u32 tunnel_id) in __l2tp_ip6_bind_lookup() argument
82 if (l2tp->conn_id != tunnel_id) in __l2tp_ip6_bind_lookup()
131 u32 tunnel_id; in l2tp_ip6_recv() local
180 tunnel_id = ntohl(*(__be32 *)&skb->data[4]); in l2tp_ip6_recv()
185 inet6_iif(skb), tunnel_id); in l2tp_ip6_recv()
Dtrace.h65 __entry->tid = tunnel->tunnel_id;
103 __entry->tid = session->tunnel ? session->tunnel->tunnel_id : 0;
Dl2tp_debugfs.c140 seq_printf(m, "\nTUNNEL %u peer %u", tunnel->tunnel_id, tunnel->peer_tunnel_id); in l2tp_dfs_seq_tunnel_show()
/linux-6.1.9/tools/testing/selftests/net/
Dl2tp.sh149 ip -netns host-1 l2tp add tunnel tunnel_id 1041 peer_tunnel_id 1042 \
151 ip -netns host-1 l2tp add session name l2tp4 tunnel_id 1041 \
159 ip -netns host-2 l2tp add tunnel tunnel_id 1042 peer_tunnel_id 1041 \
161 ip -netns host-2 l2tp add session name l2tp4 tunnel_id 1042 \
178 ip -netns host-1 l2tp add tunnel tunnel_id 1061 peer_tunnel_id 1062 \
180 ip -netns host-1 l2tp add session name l2tp6 tunnel_id 1061 \
188 ip -netns host-2 l2tp add tunnel tunnel_id 1062 peer_tunnel_id 1061 \
190 ip -netns host-2 l2tp add session name l2tp6 tunnel_id 1062 \
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
Dtc.c670 u32 tunnel_id) in mlx5e_restore_tunnel() argument
682 enc_opts_id = tunnel_id & ENC_OPTS_BITS_MASK; in mlx5e_restore_tunnel()
683 tun_id = tunnel_id >> ENC_OPTS_BITS; in mlx5e_restore_tunnel()
764 u32 tunnel_id = (reg_c1 >> ESW_TUN_OFFSET) & TUNNEL_ID_MASK; in mlx5e_restore_skb_chain() local
790 return mlx5e_restore_tunnel(priv, skb, tc_priv, tunnel_id); in mlx5e_restore_skb_chain()
803 if (!mlx5e_restore_tunnel(priv, skb, tc_priv, mapped_obj->sample.tunnel_id)) { in mlx5e_restore_skb_sample()
818 u32 tunnel_id = (reg_c1 >> ESW_TUN_OFFSET) & TUNNEL_ID_MASK; in mlx5e_restore_skb_int_port() local
824 if (tunnel_id) in mlx5e_restore_skb_int_port()
825 return mlx5e_restore_tunnel(priv, skb, tc_priv, tunnel_id); in mlx5e_restore_skb_int_port()
/linux-6.1.9/net/ipv4/
Dudp_tunnel_core.c186 __be16 flags, __be64 tunnel_id, int md_size) in udp_tun_rx_dst() argument
192 tun_dst = ip_tun_rx_dst(skb, flags, tunnel_id, md_size); in udp_tun_rx_dst()
194 tun_dst = ipv6_tun_rx_dst(skb, flags, tunnel_id, md_size); in udp_tun_rx_dst()
/linux-6.1.9/samples/bpf/
Dtc_l2_redirect_kern.c143 tkey.tunnel_id = 10000; in _l2_to_iptun_ingress_redirect()
194 tkey.tunnel_id = 10000; in _l2_to_ip6tun_ingress_redirect()
/linux-6.1.9/include/uapi/linux/
Dppp-ioctl.h69 __u16 tunnel_id; /* redundant */ member
/linux-6.1.9/drivers/net/ethernet/rocker/
Drocker_ofdpa.c68 u32 tunnel_id; member
420 if (entry->key.bridge.tunnel_id && in ofdpa_cmd_flow_tbl_add_bridge()
422 entry->key.bridge.tunnel_id)) in ofdpa_cmd_flow_tbl_add_bridge()
919 u32 tunnel_id, in ofdpa_flow_tbl_bridge() argument
962 entry->key.bridge.tunnel_id = tunnel_id; in ofdpa_flow_tbl_bridge()
1633 u32 tunnel_id = 0; in ofdpa_port_ctrl_vlan_bridge() local
1641 vlan_id, tunnel_id, in ofdpa_port_ctrl_vlan_bridge()
1849 u32 tunnel_id = 0; in ofdpa_port_fdb_learn() local
1859 NULL, vlan_id, tunnel_id, goto_tbl, in ofdpa_port_fdb_learn()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
Dsample.c524 restore_obj.sample.tunnel_id = attr->tunnel_id; in mlx5e_tc_sample_offload()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Den_tc.h87 int tunnel_id; /* mapped tunnel id */ member
Deswitch.h65 u32 tunnel_id; member
/linux-6.1.9/drivers/infiniband/hw/mlx5/
Dfs.c134 #define LAST_TUNNEL_FIELD tunnel_id
493 ntohl(ib_spec->tunnel.mask.tunnel_id)); in parse_flow_attr()
495 ntohl(ib_spec->tunnel.val.tunnel_id)); in parse_flow_attr()
/linux-6.1.9/Documentation/virt/uml/
Duser_mode_linux_howto_v2.rst543 local 127.0.0.1 encap udp tunnel_id 2 \
545 ip l2tp add session name l2tp1 tunnel_id 2 \
547 down ip l2tp del session tunnel_id 2 session_id 0xffffffff && \
548 ip l2tp del tunnel tunnel_id 2

12