Home
last modified time | relevance | path

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

12

/linux/net/bridge/
H A 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()
H A Dbr_vlan_options.c14 __be32 tid = tunnel_id_to_key32(v->tinfo.tunnel_id); in __vlan_tun_put()
/linux/include/net/
H A Ddst_metadata.h202 __be64 tunnel_id, in __ip_tun_set_dst() argument
213 0, 0, tp_dst, tunnel_id, flags); in __ip_tun_set_dst()
219 __be64 tunnel_id, in ip_tun_rx_dst() argument
225 0, flags, tunnel_id, md_size); in ip_tun_rx_dst()
234 __be64 tunnel_id, in __ipv6_tun_set_dst() argument
247 info->key.tun_id = tunnel_id; in __ipv6_tun_set_dst()
263 __be64 tunnel_id, in ipv6_tun_rx_dst() argument
270 0, ip6_flowlabel(ip6h), flags, tunnel_id, in ipv6_tun_rx_dst()
H A Dudp_tunnel.h168 __be64 tunnel_id, int md_size);
/linux/net/l2tp/
H A 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()
65 tunnel_id, session_id); in l2tp_nl_session_get()
187 u32 tunnel_id; in l2tp_nl_cmd_tunnel_create() local
201 tunnel_id = nla_get_u32(attrs[L2TP_ATTR_CONN_ID]); in l2tp_nl_cmd_tunnel_create()
237 ret = l2tp_tunnel_create(fd, proto_version, tunnel_id, in l2tp_nl_cmd_tunnel_create()
262 u32 tunnel_id; in l2tp_nl_cmd_tunnel_delete() local
270 tunnel_id = nla_get_u32(info->attrs[L2TP_ATTR_CONN_ID]); in l2tp_nl_cmd_tunnel_delete()
272 tunnel = l2tp_tunnel_get(net, tunnel_id); in l2tp_nl_cmd_tunnel_delete()
292 u32 tunnel_id; l2tp_nl_cmd_tunnel_modify() local
454 u32 tunnel_id; l2tp_nl_cmd_tunnel_get() local
530 u32 tunnel_id = 0; l2tp_nl_cmd_session_create() local
[all...]
H A Dl2tp_ppp.c21 * attaches it to a bound UDP socket with local tunnel_id / session_id and
22 * peer tunnel_id / session_id set. Data can then be sent or received using
44 * sax.pppol2tp.s_tunnel = tunnel_id;
539 u32 tunnel_id; member
558 info->tunnel_id = sa_v2in4->pppol2tp.s_tunnel; in pppol2tp_sockaddr_get_info()
574 info->tunnel_id = sa_v3in4->pppol2tp.s_tunnel; in pppol2tp_sockaddr_get_info()
590 info->tunnel_id = sa_v2in6->pppol2tp.s_tunnel; in pppol2tp_sockaddr_get_info()
606 info->tunnel_id = sa_v3in6->pppol2tp.s_tunnel; in pppol2tp_sockaddr_get_info()
645 tunnel = l2tp_tunnel_get(net, info->tunnel_id); in pppol2tp_tunnel_get()
665 info->tunnel_id, in pppol2tp_tunnel_get()
[all...]
H A Dl2tp_ip.c57 __be32 raddr, int dif, u32 tunnel_id) in __l2tp_ip_bind_lookup() argument
81 if (l2tp->conn_id != tunnel_id) in __l2tp_ip_bind_lookup()
131 u32 tunnel_id; in l2tp_ip_recv() local
175 /* Get the tunnel_id from the L2TP header */ in l2tp_ip_recv()
182 tunnel_id = ntohl(*(__be32 *)&skb->data[4]); in l2tp_ip_recv()
187 tunnel_id); in l2tp_ip_recv()
H A Dtrace.h65 __entry->tid = tunnel->tunnel_id;
103 __entry->tid = session->tunnel ? session->tunnel->tunnel_id : 0;
/linux/tools/testing/selftests/net/
H A Dl2tp.sh142 ip -netns $host_1 l2tp add tunnel tunnel_id 1041 peer_tunnel_id 1042 \
144 ip -netns $host_1 l2tp add session name l2tp4 tunnel_id 1041 \
152 ip -netns $host_2 l2tp add tunnel tunnel_id 1042 peer_tunnel_id 1041 \
154 ip -netns $host_2 l2tp add session name l2tp4 tunnel_id 1042 \
171 ip -netns $host_1 l2tp add tunnel tunnel_id 1061 peer_tunnel_id 1062 \
173 ip -netns $host_1 l2tp add session name l2tp6 tunnel_id 1061 \
181 ip -netns $host_2 l2tp add tunnel tunnel_id 1062 peer_tunnel_id 1061 \
183 ip -netns $host_2 l2tp add session name l2tp6 tunnel_id 1062 \
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
H A Dtc.c703 u32 reg_c0, reg_c1, zone_restore_id, tunnel_id; in mlx5e_rep_tc_receive() local
726 tunnel_id = (reg_c1 >> ESW_TUN_OFFSET) & TUNNEL_ID_MASK; in mlx5e_rep_tc_receive()
733 if (!(tunnel_id >> ESW_TUN_OPTS_BITS)) { in mlx5e_rep_tc_receive()
737 mapped_id = tunnel_id & ESW_IPSEC_RX_MAPPED_ID_MASK; in mlx5e_rep_tc_receive()
745 zone_restore_id, tunnel_id, &tc_priv)) in mlx5e_rep_tc_receive()
/linux/samples/bpf/
H A Dtc_l2_redirect_kern.c138 tkey.tunnel_id = 10000; in _l2_to_iptun_ingress_redirect()
189 tkey.tunnel_id = 10000; in _l2_to_ip6tun_ingress_redirect()
/linux/include/uapi/linux/
H A Dppp-ioctl.h69 __u16 tunnel_id; /* redundant */ member
H A Dbpf.h2260 * this struct exposes the *key*\ **->tunnel_id**, which is
6331 __u32 tunnel_id; member
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_tc.h93 int tunnel_id; /* mapped tunnel id */ member
391 u32 zone_restore_id, u32 tunnel_id,
H A Den_tc.c2327 flow->attr->tunnel_id = value; in mlx5e_get_flow_tunnel_id()
2341 u32 enc_opts_id = flow->attr->tunnel_id & ENC_OPTS_BITS_MASK; in mlx5e_put_flow_tunnel_id()
2342 u32 tun_id = flow->attr->tunnel_id >> ENC_OPTS_BITS; in mlx5e_put_flow_tunnel_id()
5576 u32 tunnel_id) in mlx5e_tc_restore_tunnel() argument
5591 enc_opts_id = tunnel_id & ENC_OPTS_BITS_MASK; in mlx5e_tc_restore_tunnel()
5592 tun_id = tunnel_id >> ENC_OPTS_BITS; in mlx5e_tc_restore_tunnel()
5678 u32 tunnel_id, struct mlx5e_tc_update_priv *tc_priv) in mlx5e_tc_restore_skb_tc_meta() argument
5707 return mlx5e_tc_restore_tunnel(priv, skb, tc_priv, tunnel_id); in mlx5e_tc_restore_skb_tc_meta()
5716 if (!mlx5e_tc_restore_tunnel(priv, skb, tc_priv, mapped_obj->sample.tunnel_id)) { in mlx5e_tc_restore_skb_sample()
5727 u32 tunnel_id) in mlx5e_tc_restore_skb_int_port() argument
5756 mlx5e_tc_update_skb(struct mlx5_cqe64 * cqe,struct sk_buff * skb,struct mapping_ctx * mapping_ctx,u32 mapped_obj_id,struct mlx5_tc_ct_priv * ct_priv,u32 zone_restore_id,u32 tunnel_id,struct mlx5e_tc_update_priv * tc_priv) mlx5e_tc_update_skb() argument
[all...]
H A Deswitch.h67 u32 tunnel_id; member
/linux/drivers/net/ethernet/rocker/
H A 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()
1847 u32 tunnel_id = 0; in ofdpa_port_fdb_learn() local
1857 NULL, vlan_id, tunnel_id, goto_tb in ofdpa_port_fdb_learn()
[all...]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dsample.c524 restore_obj.sample.tunnel_id = attr->tunnel_id; in mlx5e_tc_sample_offload()
/linux/include/uapi/rdma/
H A Dib_user_verbs.h1074 __be32 tunnel_id; member
/linux/drivers/infiniband/hw/mlx5/
H A Dfs.c139 #define LAST_TUNNEL_FIELD tunnel_id
498 ntohl(ib_spec->tunnel.mask.tunnel_id)); in parse_flow_attr()
500 ntohl(ib_spec->tunnel.val.tunnel_id)); in parse_flow_attr()
/linux/tools/include/uapi/linux/
H A Dbpf.h2260 * this struct exposes the *key*\ **->tunnel_id**, which is
6331 __u32 tunnel_id; member
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_tc.c817 /* tunnel_id is wrongly defined in hsi defn. as __le32 */ in hwrm_cfa_decap_filter_alloc()
818 req->tunnel_id = tunnel_id_to_key32(tun_key->tun_id); in hwrm_cfa_decap_filter_alloc()
/linux/Documentation/networking/
H A Dl2tp.rst408 sax.pppol2tp.s_tunnel = tunnel_id;
/linux/drivers/infiniband/core/
H A Duverbs_cmd.c2827 if ((ntohl(ib_spec->tunnel.mask.tunnel_id)) >= BIT(24) || in ib_uverbs_kern_spec_to_ib_spec_filter()
2828 (ntohl(ib_spec->tunnel.val.tunnel_id)) >= BIT(24)) in ib_uverbs_kern_spec_to_ib_spec_filter()
/linux/include/rdma/
H A Dib_verbs.h2028 __be32 tunnel_id; member
2032 * the tunnel_id from val has the vni value

12