/kernel/linux/linux-5.10/net/bridge/ |
D | br_vlan_tunnel.c | 64 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()
|
D | br_private_tunnel.h | 33 u16 vid, u32 tun_id, bool *changed); 41 u32 tun_id); 63 u16 vid, u32 tun_id) in nbp_vlan_tunnel_info_add() argument
|
D | br_netlink_tunnel.c | 197 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()
|
D | br_vlan_options.c | 111 u32 tun_id = 0; in br_vlan_modify_tunnel() local 141 tun_id = nla_get_u32(tun_tb[BRIDGE_VLANDB_TINFO_ID]); in br_vlan_modify_tunnel() 148 tun_id += v->vid - vinfo->vid; in br_vlan_modify_tunnel() 157 return br_vlan_tunnel_info(p, cmd, v->vid, tun_id, changed); in br_vlan_modify_tunnel()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | tc_tun_geneve.c | 79 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()
|
D | tc_tun_mplsoudp.c | 35 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()
|
D | tc_tun_gre.c | 33 __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()
|
D | tc_tun_vxlan.c | 87 __be32 tun_id = tunnel_id_to_key32(tun_key->tun_id); in mlx5e_gen_ip_tunnel_header_vxlan() local 98 vxh->vx_vni = vxlan_vni_field(tun_id); in mlx5e_gen_ip_tunnel_header_vxlan()
|
/kernel/linux/linux-5.10/include/net/ |
D | ip_tunnels.h | 40 __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()
|
D | flow.h | 26 __be64 tun_id; member 113 fl4->flowi4_tun_key.tun_id = 0; in flowi4_init_output()
|
D | fib_rules.h | 33 __be64 tun_id; member
|
D | dst_metadata.h | 193 info->key.tun_id = tunnel_id; in __ipv6_tun_set_dst()
|
/kernel/linux/linux-5.10/net/core/ |
D | fib_rules.c | 39 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()
|
/kernel/linux/linux-5.10/drivers/net/ |
D | geneve.c | 105 static void tunnel_id_to_vni(__be64 tun_id, __u8 *vni) in tunnel_id_to_vni() argument 108 vni[0] = (__force __u8)(tun_id >> 16); in tunnel_id_to_vni() 109 vni[1] = (__force __u8)(tun_id >> 8); in tunnel_id_to_vni() 110 vni[2] = (__force __u8)tun_id; in tunnel_id_to_vni() 112 vni[0] = (__force __u8)((__force u64)tun_id >> 40); in tunnel_id_to_vni() 113 vni[1] = (__force __u8)((__force u64)tun_id >> 48); in tunnel_id_to_vni() 114 vni[2] = (__force __u8)((__force u64)tun_id >> 56); in tunnel_id_to_vni() 118 static bool eq_tun_id_and_vni(u8 *tun_id, u8 *vni) in eq_tun_id_and_vni() argument 120 return !memcmp(vni, &tun_id[5], 3); in eq_tun_id_and_vni() 139 if (eq_tun_id_and_vni((u8 *)&node->geneve->cfg.info.key.tun_id, vni) && in geneve_lookup() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/rep/ |
D | tc.c | 522 u32 tun_id, enc_opts_id; in mlx5e_restore_tunnel() local 527 tun_id = tunnel_id >> ENC_OPTS_BITS; in mlx5e_restore_tunnel() 529 if (!tun_id) in mlx5e_restore_tunnel() 535 err = mapping_find(uplink_priv->tunnel_mapping, tun_id, &key); in mlx5e_restore_tunnel() 540 tun_id, err); in mlx5e_restore_tunnel()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/flower/ |
D | cmsg.h | 224 __be64 tun_id __packed; 443 __be32 tun_id; member 479 __be32 tun_id; member
|
D | match.c | 437 nfp_flower_compile_tun_udp_key(&ext->tun_id, &msk->tun_id, rule); in nfp_flower_compile_ipv4_udp_tun() 450 nfp_flower_compile_tun_udp_key(&ext->tun_id, &msk->tun_id, rule); in nfp_flower_compile_ipv6_udp_tun()
|
D | action.c | 437 set_tun->tun_id = ip_tun->key.tun_id; in nfp_fl_set_tun()
|
/kernel/linux/linux-5.10/net/ipv4/ |
D | ip_gre.c | 307 __be64 tun_id; in erspan_rcv() local 312 tun_id = key32_to_tunnel_id(tpi->key); in erspan_rcv() 315 tun_id, sizeof(*md)); in erspan_rcv() 375 __be64 tun_id; in __ipgre_rcv() local 378 tun_id = key32_to_tunnel_id(tpi->key); in __ipgre_rcv() 379 tun_dst = ip_tun_rx_dst(skb, flags, tun_id, 0); in __ipgre_rcv() 499 tunnel_id_to_key32(tun_info->key.tun_id), in gre_fb_xmit() 567 erspan_build_header(skb, ntohl(tunnel_id_to_key32(key->tun_id)), in erspan_fb_xmit() 572 ntohl(tunnel_id_to_key32(key->tun_id)), in erspan_fb_xmit() 605 tunnel_id_to_key32(key->tun_id), in gre_fill_metadata_dst()
|
D | ip_tunnel_core.c | 141 dst->key.tun_id = src->key.tun_id; in iptunnel_metadata_reply() 702 tun_info->key.tun_id = nla_get_be64(tb[LWTUNNEL_IP_ID]); in ip_tun_build_state() 851 if (nla_put_be64(skb, LWTUNNEL_IP_ID, tun_info->key.tun_id, in ip_tun_fill_encap_info() 981 tun_info->key.tun_id = nla_get_be64(tb[LWTUNNEL_IP6_ID]); in ip6_tun_build_state() 1013 if (nla_put_be64(skb, LWTUNNEL_IP6_ID, tun_info->key.tun_id, in ip6_tun_fill_encap_info()
|
/kernel/linux/linux-5.10/net/ipv6/ |
D | ip6_gre.c | 505 __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() 756 fl6->fl6_gre_key = tunnel_id_to_key32(key->tun_id); in __gre6_xmit() 768 tunnel_id_to_key32(tun_info->key.tun_id), in __gre6_xmit() 990 __be32 tun_id; in ip6erspan_tunnel_xmit() local 1003 fl6.fl6_gre_key = tunnel_id_to_key32(key->tun_id); in ip6erspan_tunnel_xmit() [all …]
|
/kernel/linux/linux-5.10/net/netfilter/ |
D | nft_tunnel.c | 57 *dest = ntohl(tunnel_id_to_key32(tun_info->key.tun_id)); in nft_tunnel_get_eval() 427 info.key.tun_id = key32_to_tunnel_id(nla_get_be32(tb[NFTA_TUNNEL_KEY_ID])); in nft_tunnel_obj_init() 652 tunnel_id_to_key32(info->key.tun_id)) || in nft_tunnel_obj_dump()
|
/kernel/linux/linux-5.10/net/psample/ |
D | psample.c | 222 nla_put_be64(skb, PSAMPLE_TUNNEL_KEY_ATTR_ID, tun_key->tun_id, in __psample_ip_tun_to_nlattr()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_tc.c | 483 flow->tun_key.tun_id = key32_to_tunnel_id(match.key->keyid); in bnxt_tc_parse_flow() 484 flow->tun_mask.tun_id = key32_to_tunnel_id(match.mask->keyid); in bnxt_tc_parse_flow() 808 req.tunnel_id = tunnel_id_to_key32(tun_key->tun_id); in hwrm_cfa_decap_filter_alloc() 906 encap->vni = tunnel_id_to_key32(encap_key->tun_id); in hwrm_cfa_encap_record_alloc()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_tc.c | 1999 u32 tun_id, enc_opts_id = 0; in mlx5e_get_flow_tunnel_id() local 2024 err = mapping_add(uplink_priv->tunnel_mapping, &tunnel_key, &tun_id); in mlx5e_get_flow_tunnel_id() 2049 value = tun_id << ENC_OPTS_BITS | enc_opts_id; in mlx5e_get_flow_tunnel_id() 2075 mapping_remove(uplink_priv->tunnel_mapping, tun_id); in mlx5e_get_flow_tunnel_id() 2082 u32 tun_id = flow->tunnel_id >> ENC_OPTS_BITS; in mlx5e_put_flow_tunnel_id() local 2091 if (tun_id) in mlx5e_put_flow_tunnel_id() 2092 mapping_remove(uplink_priv->tunnel_mapping, tun_id); in mlx5e_put_flow_tunnel_id()
|