Home
last modified time | relevance | path

Searched refs:tun_id (Results 1 – 25 of 36) sorted by relevance

12

/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
A Dtc_tun_geneve.c79 static void mlx5e_tunnel_id_to_vni(__be64 tun_id, __u8 *vni) in mlx5e_tunnel_id_to_vni() argument
82 vni[0] = (__force __u8)(tun_id >> 16); in mlx5e_tunnel_id_to_vni()
83 vni[1] = (__force __u8)(tun_id >> 8); in mlx5e_tunnel_id_to_vni()
84 vni[2] = (__force __u8)tun_id; in mlx5e_tunnel_id_to_vni()
86 vni[0] = (__force __u8)((__force u64)tun_id >> 40); in mlx5e_tunnel_id_to_vni()
87 vni[1] = (__force __u8)((__force u64)tun_id >> 48); in mlx5e_tunnel_id_to_vni()
88 vni[2] = (__force __u8)((__force u64)tun_id >> 56); in mlx5e_tunnel_id_to_vni()
111 mlx5e_tunnel_id_to_vni(tun_info->key.tun_id, geneveh->vni); in mlx5e_gen_ip_tunnel_header_geneve()
A Dtc_tun_mplsoudp.c35 u32 tun_id; in generate_ip_tun_hdr() local
37 tun_id = be32_to_cpu(tunnel_id_to_key32(tun_key->tun_id)); in generate_ip_tun_hdr()
42 *mpls = mpls_entry_encode(tun_id, tun_key->ttl, tun_key->tos, true); in generate_ip_tun_hdr()
A Dtc_tun_gre.c33 __be32 tun_id = tunnel_id_to_key32(tun_key->tun_id); in mlx5e_gen_ip_tunnel_header_gretap() local
49 *ptr = tun_id; in mlx5e_gen_ip_tunnel_header_gretap()
A Dtc_tun_vxlan.c87 __be32 tun_id = tunnel_id_to_key32(tun_key->tun_id); in mlx5e_gen_ip_tunnel_header_vxlan() local
96 vxh->vx_vni = vxlan_vni_field(tun_id); in mlx5e_gen_ip_tunnel_header_vxlan()
/linux/net/bridge/
A Dbr_vlan_tunnel.c64 struct net_bridge_vlan *vlan, u32 tun_id) in __vlan_tunnel_info_add() argument
67 __be64 key = key32_to_tunnel_id(cpu_to_be32(tun_id)); in __vlan_tunnel_info_add()
98 u32 tun_id) in nbp_vlan_tunnel_info_add() argument
110 return __vlan_tunnel_info_add(vg, vlan, tun_id); in nbp_vlan_tunnel_info_add()
176 vlan = br_vlan_tunnel_lookup(&vg->tunnel_hash, tinfo->key.tun_id); in br_handle_ingress_vlan_tunnel()
A Dbr_private_tunnel.h37 u32 tun_id);
49 u16 vid, u32 tun_id, bool *changed);
63 u16 vid, u32 tun_id) in nbp_vlan_tunnel_info_add() argument
A Dbr_netlink_tunnel.c197 u16 vid, u32 tun_id, bool *changed) in br_vlan_tunnel_info() argument
206 err = nbp_vlan_tunnel_info_add(p, vid, tun_id); in br_vlan_tunnel_info()
223 u32 tun_id; in br_parse_vlan_tunnel_info() local
238 tun_id = nla_get_u32(tb[IFLA_BRIDGE_VLAN_TUNNEL_ID]); in br_parse_vlan_tunnel_info()
246 tinfo->tunid = tun_id; in br_parse_vlan_tunnel_info()
A Dbr_vlan_options.c127 u32 tun_id = 0; in br_vlan_modify_tunnel() local
157 tun_id = nla_get_u32(tun_tb[BRIDGE_VLANDB_TINFO_ID]); in br_vlan_modify_tunnel()
164 tun_id += v->vid - vinfo->vid; in br_vlan_modify_tunnel()
173 return br_vlan_tunnel_info(p, cmd, v->vid, tun_id, changed); in br_vlan_modify_tunnel()
/linux/include/net/
A Dip_tunnels.h40 __be64 tun_id; member
174 __be64 tun_id, __be16 tun_flags) in ip_tunnel_key_init() argument
176 key->tun_id = tun_id; in ip_tunnel_key_init()
229 static inline __be32 tunnel_id_to_key32(__be64 tun_id) in tunnel_id_to_key32() argument
232 return (__force __be32)tun_id; in tunnel_id_to_key32()
234 return (__force __be32)((__force u64)tun_id >> 32); in tunnel_id_to_key32()
A Dflow.h26 __be64 tun_id; member
111 fl4->flowi4_tun_key.tun_id = 0; in flowi4_init_output()
A Dfib_rules.h33 __be64 tun_id; member
A Ddst_metadata.h193 info->key.tun_id = tunnel_id; in __ipv6_tun_set_dst()
/linux/net/core/
A Dfib_rules.c39 if (rule->iifindex || rule->oifindex || rule->mark || rule->tun_id || in fib_rule_matchall()
274 if (rule->tun_id && (rule->tun_id != fl->flowi_tun_key.tun_id)) in fib_rule_match()
457 if (rule->tun_id && r->tun_id != rule->tun_id) in rule_find()
595 nlrule->tun_id = nla_get_be64(tb[FRA_TUN_ID]); in fib_nl2rule()
719 if (r->tun_id != rule->tun_id) in rule_exists()
845 if (rule->tun_id) in fib_nl_newrule()
912 if (rule->tun_id) in fib_nl_delrule()
1039 (rule->tun_id && in fib_nl_fill_rule()
1040 nla_put_be64(skb, FRA_TUN_ID, rule->tun_id, FRA_PAD)) || in fib_nl_fill_rule()
/linux/drivers/net/
A Dgeneve.c109 vni[0] = (__force __u8)(tun_id >> 16); in tunnel_id_to_vni()
110 vni[1] = (__force __u8)(tun_id >> 8); in tunnel_id_to_vni()
111 vni[2] = (__force __u8)tun_id; in tunnel_id_to_vni()
113 vni[0] = (__force __u8)((__force u64)tun_id >> 40); in tunnel_id_to_vni()
114 vni[1] = (__force __u8)((__force u64)tun_id >> 48); in tunnel_id_to_vni()
115 vni[2] = (__force __u8)((__force u64)tun_id >> 56); in tunnel_id_to_vni()
119 static bool eq_tun_id_and_vni(u8 *tun_id, u8 *vni) in eq_tun_id_and_vni() argument
121 return !memcmp(vni, &tun_id[5], 3); in eq_tun_id_and_vni()
1321 if (info->key.tun_id == geneve->cfg.info.key.tun_id && in geneve_find_dev()
1485 info->key.tun_id = tunid; in geneve_nl2info()
[all …]
/linux/net/ipv4/
A Dip_gre.c309 __be64 tun_id; in erspan_rcv() local
314 tun_id = key32_to_tunnel_id(tpi->key); in erspan_rcv()
317 tun_id, sizeof(*md)); in erspan_rcv()
380 __be64 tun_id; in __ipgre_rcv() local
383 tun_id = key32_to_tunnel_id(tpi->key); in __ipgre_rcv()
384 tun_dst = ip_tun_rx_dst(skb, flags, tun_id, 0); in __ipgre_rcv()
506 tunnel_id_to_key32(tun_info->key.tun_id), in gre_fb_xmit()
569 erspan_build_header(skb, ntohl(tunnel_id_to_key32(key->tun_id)), in erspan_fb_xmit()
574 ntohl(tunnel_id_to_key32(key->tun_id)), in erspan_fb_xmit()
607 tunnel_id_to_key32(key->tun_id), key->tos, 0, in gre_fill_metadata_dst()
A Dip_tunnel_core.c141 dst->key.tun_id = src->key.tun_id; in iptunnel_metadata_reply()
694 tun_info->key.tun_id = nla_get_be64(tb[LWTUNNEL_IP_ID]); in ip_tun_build_state()
843 if (nla_put_be64(skb, LWTUNNEL_IP_ID, tun_info->key.tun_id, in ip_tun_fill_encap_info()
973 tun_info->key.tun_id = nla_get_be64(tb[LWTUNNEL_IP6_ID]); in ip6_tun_build_state()
1005 if (nla_put_be64(skb, LWTUNNEL_IP6_ID, tun_info->key.tun_id, in ip6_tun_fill_encap_info()
/linux/drivers/net/ethernet/netronome/nfp/flower/
A Dcmsg.h224 __be64 tun_id __packed;
443 __be32 tun_id; member
479 __be32 tun_id; member
A Dmatch.c485 nfp_flower_compile_tun_udp_key(&ext->tun_id, &msk->tun_id, rule); in nfp_flower_compile_ipv4_udp_tun()
495 nfp_flower_compile_tun_udp_key(&ext->tun_id, &msk->tun_id, rule); in nfp_flower_compile_ipv6_udp_tun()
A Daction.c438 set_tun->tun_id = ip_tun->key.tun_id; in nfp_fl_set_tun()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
A Dtc.c560 u32 tun_id, enc_opts_id; in mlx5e_restore_tunnel() local
565 tun_id = tunnel_id >> ENC_OPTS_BITS; in mlx5e_restore_tunnel()
567 if (!tun_id) in mlx5e_restore_tunnel()
573 err = mapping_find(uplink_priv->tunnel_mapping, tun_id, &key); in mlx5e_restore_tunnel()
578 tun_id, err); in mlx5e_restore_tunnel()
/linux/net/ipv6/
A Dip6_gre.c505 __be64 tun_id; in ip6gre_rcv() local
509 tun_id = key32_to_tunnel_id(tpi->key); in ip6gre_rcv()
511 tun_dst = ipv6_tun_rx_dst(skb, flags, tun_id, 0); in ip6gre_rcv()
559 __be64 tun_id; in ip6erspan_rcv() local
564 tun_id = key32_to_tunnel_id(tpi->key); in ip6erspan_rcv()
566 tun_dst = ipv6_tun_rx_dst(skb, flags, tun_id, in ip6erspan_rcv()
766 tunnel_id_to_key32(tun_info->key.tun_id), in __gre6_xmit()
980 __be32 tun_id; in ip6erspan_tunnel_xmit() local
1001 tun_id = tunnel_id_to_key32(key->tun_id); in ip6erspan_tunnel_xmit()
1004 ntohl(tun_id), in ip6erspan_tunnel_xmit()
[all …]
/linux/net/netfilter/
A Dnft_tunnel.c57 *dest = ntohl(tunnel_id_to_key32(tun_info->key.tun_id)); in nft_tunnel_get_eval()
426 info.key.tun_id = key32_to_tunnel_id(nla_get_be32(tb[NFTA_TUNNEL_KEY_ID])); in nft_tunnel_obj_init()
651 tunnel_id_to_key32(info->key.tun_id)) || in nft_tunnel_obj_dump()
/linux/drivers/net/ethernet/broadcom/bnxt/
A Dbnxt_tc.c484 flow->tun_key.tun_id = key32_to_tunnel_id(match.key->keyid); in bnxt_tc_parse_flow()
485 flow->tun_mask.tun_id = key32_to_tunnel_id(match.mask->keyid); in bnxt_tc_parse_flow()
814 req->tunnel_id = tunnel_id_to_key32(tun_key->tun_id); in hwrm_cfa_decap_filter_alloc()
914 encap->vni = tunnel_id_to_key32(encap_key->tun_id); in hwrm_cfa_encap_record_alloc()
/linux/net/psample/
A Dpsample.c223 nla_put_be64(skb, PSAMPLE_TUNNEL_KEY_ATTR_ID, tun_key->tun_id, in __psample_ip_tun_to_nlattr()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Den_tc.c1799 u32 tun_id, enc_opts_id = 0; in mlx5e_get_flow_tunnel_id() local
1824 err = mapping_add(uplink_priv->tunnel_mapping, &tunnel_key, &tun_id); in mlx5e_get_flow_tunnel_id()
1849 value = tun_id << ENC_OPTS_BITS | enc_opts_id; in mlx5e_get_flow_tunnel_id()
1875 mapping_remove(uplink_priv->tunnel_mapping, tun_id); in mlx5e_get_flow_tunnel_id()
1882 u32 tun_id = flow->tunnel_id >> ENC_OPTS_BITS; in mlx5e_put_flow_tunnel_id() local
1891 if (tun_id) in mlx5e_put_flow_tunnel_id()
1892 mapping_remove(uplink_priv->tunnel_mapping, tun_id); in mlx5e_put_flow_tunnel_id()

Completed in 57 milliseconds

12