/linux-6.6.21/drivers/net/vxlan/ |
D | vxlan_core.c | 96 int ifindex, __be32 vni, in vxlan_vs_find_vni() argument 105 vni = 0; in vxlan_vs_find_vni() 107 hlist_for_each_entry_rcu(node, vni_head(vs, vni), hlist) { in vxlan_vs_find_vni() 112 vnode = vxlan_vnifilter_lookup(node->vxlan, vni); in vxlan_vs_find_vni() 115 } else if (node->vxlan->default_dst.remote_vni != vni) { in vxlan_vs_find_vni() 137 __be32 vni, sa_family_t family, in vxlan_find_vni() argument 146 return vxlan_vs_find_vni(vs, ifindex, vni, NULL); in vxlan_find_vni() 225 if ((vxlan->cfg.flags & VXLAN_F_COLLECT_METADATA) && fdb->vni && in vxlan_fdb_info() 227 be32_to_cpu(fdb->vni))) in vxlan_fdb_info() 297 fdb_info->vni = fdb->vni; in vxlan_fdb_switchdev_notifier_info() [all …]
|
D | vxlan_vnifilter.c | 24 __be32 vni = *(__be32 *)arg->key; in vxlan_vni_cmp() local 26 return vnode->vni != vni; in vxlan_vni_cmp() 31 .key_offset = offsetof(struct vxlan_vni_node, vni), 62 hlist_add_head_rcu(&node->hlist, vni_head(vs, v->vni)); in vxlan_vs_add_del_vninode() 68 hlist_add_head_rcu(&node->hlist, vni_head(vs, v->vni)); in vxlan_vs_add_del_vninode() 95 hlist_add_head_rcu(&node->hlist, vni_head(vs, v->vni)); in vxlan_vs_add_vnigrp() 178 void vxlan_vnifilter_count(struct vxlan_dev *vxlan, __be32 vni, in vxlan_vnifilter_count() argument 190 vnode = vxlan_vnifilter_lookup(vxlan, vni); in vxlan_vnifilter_count() 201 return (be32_to_cpu(vend->vni) - be32_to_cpu(vbegin->vni)); in vnirange() 257 u32 vs = be32_to_cpu(vbegin->vni); in vxlan_fill_vni_filter_entry() [all …]
|
D | vxlan_private.h | 36 __be32 vni; member 46 static inline struct hlist_head *vni_head(struct vxlan_sock *vs, __be32 vni) in vni_head() argument 48 return &vs->vni_list[hash_32((__force u32)vni, VNI_HASH_BITS)]; in vni_head() 165 vxlan_vnifilter_lookup(struct vxlan_dev *vxlan, __be32 vni) in vxlan_vnifilter_lookup() argument 173 return rhashtable_lookup_fast(&vg->vni_hash, &vni, in vxlan_vnifilter_lookup() 181 __be32 vni, __u32 ifindex, __u16 ndm_flags, 186 __be16 port, __be32 src_vni, __be32 vni, 188 u32 eth_vni_hash(const unsigned char *addr, __be32 vni); 189 u32 fdb_head_index(struct vxlan_dev *vxlan, const u8 *mac, __be32 vni); 193 __be16 port, __be32 src_vni, __be32 vni, [all …]
|
D | vxlan_mdb.c | 21 __be32 vni; member 197 mdb_entry->key.vni && nla_put_u32(skb, MDBA_MDB_EATTR_SRC_VNI, in vxlan_mdb_entry_info_fill() 198 be32_to_cpu(mdb_entry->key.vni))) in vxlan_mdb_entry_info_fill() 584 cfg->group.vni = in vxlan_mdb_config_attrs_init() 604 cfg->group.vni = vxlan->default_dst.remote_vni; in vxlan_mdb_config_init() 792 sg_cfg.group.vni = cfg->group.vni; in vxlan_mdb_remote_src_fwd_add() 820 sg_cfg.group.vni = group->vni; in vxlan_mdb_remote_src_fwd_del() 968 if ((vxlan->cfg.flags & VXLAN_F_COLLECT_METADATA) && group->vni) in vxlan_mdb_nlmsg_size() 1319 group.vni = src_vni; in vxlan_mdb_entry_skb_get() 1385 __be32 src_vni = mdb_entry->key.vni; in vxlan_mdb_xmit()
|
D | vxlan_multicast.c | 126 __be32 vni, union vxlan_addr *rip, int rifindex) in vxlan_group_used() argument 225 !vxlan_group_used(vn, vxlan, v->vni, &v->remote_ip, in vxlan_multicast_leave_vnigrp()
|
/linux-6.6.21/drivers/net/ |
D | geneve.c | 88 static inline __u32 geneve_net_vni_hash(u8 vni[3]) in geneve_net_vni_hash() 92 vnid = (vni[0] << 16) | (vni[1] << 8) | vni[2]; in geneve_net_vni_hash() 96 static __be64 vni_to_tunnel_id(const __u8 *vni) in vni_to_tunnel_id() argument 99 return (vni[0] << 16) | (vni[1] << 8) | vni[2]; in vni_to_tunnel_id() 101 return (__force __be64)(((__force u64)vni[0] << 40) | in vni_to_tunnel_id() 102 ((__force u64)vni[1] << 48) | in vni_to_tunnel_id() 103 ((__force u64)vni[2] << 56)); in vni_to_tunnel_id() 108 static void tunnel_id_to_vni(__be64 tun_id, __u8 *vni) in tunnel_id_to_vni() argument 111 vni[0] = (__force __u8)(tun_id >> 16); in tunnel_id_to_vni() 112 vni[1] = (__force __u8)(tun_id >> 8); in tunnel_id_to_vni() [all …]
|
/linux-6.6.21/include/net/ |
D | vxlan.h | 215 __be32 vni; member 268 __be32 vni; member 413 static inline __be32 vxlan_vni_field(__be32 vni) in vxlan_vni_field() argument 416 return (__force __be32)((__force u32)vni << 8); in vxlan_vni_field() 418 return (__force __be32)((__force u32)vni >> 8); in vxlan_vni_field() 493 __be32 vni; member 499 int vxlan_fdb_find_uc(struct net_device *dev, const u8 *mac, __be32 vni, 501 int vxlan_fdb_replay(const struct net_device *dev, __be32 vni, 504 void vxlan_fdb_clear_offload(const struct net_device *dev, __be32 vni); 508 vxlan_fdb_find_uc(struct net_device *dev, const u8 *mac, __be32 vni, in vxlan_fdb_find_uc() argument [all …]
|
D | geneve.h | 60 u8 vni[3]; member
|
/linux-6.6.21/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()
|
/linux-6.6.21/tools/testing/selftests/net/ |
D | test_vxlan_vnifiltering.sh | 289 src_vni $tid vni $tid dst $group self 292 bridge -netns hv-$hvid vni add dev $vxlandev vni $tid 297 bridge -netns hv-$hvid vni add dev $vxlandev vni $tid group $group 299 bridge -netns hv-$hvid vni add dev $vxlandev vni $tid remote $group 549 bridge vni help 2>&1 | grep -q "Usage: bridge vni"
|
D | test_vxlan_mdb.sh | 245 bridge -n $ns vni add vni 10010 dev vx0 249 bridge -n $ns vni add vni 10020 dev vx0 253 bridge -n $ns vni add vni 14000 dev vx0
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_nve.h | 47 int (*fdb_replay)(const struct net_device *nve_dev, __be32 vni, 49 void (*fdb_clear_offload)(const struct net_device *nve_dev, __be32 vni);
|
D | spectrum_switchdev.c | 2518 .vni = vxlan->cfg.vni, in mlxsw_sp_bridge_vlan_aware_vxlan_join() 2709 .vni = vxlan->cfg.vni, in mlxsw_sp_bridge_8021d_vxlan_join() 2954 fid = mlxsw_sp_fid_lookup_by_vni(mlxsw_sp, vxlan->cfg.vni); in mlxsw_sp_bridge_vxlan_leave() 3001 __be32 vni, bool adding) in mlxsw_sp_fdb_vxlan_call_notifiers() argument 3011 info.remote_vni = vni; in mlxsw_sp_fdb_vxlan_call_notifiers() 3014 info.vni = vni; in mlxsw_sp_fdb_vxlan_call_notifiers() 3023 __be32 vni, in mlxsw_sp_fdb_nve_call_notifiers() argument 3027 mlxsw_sp_fdb_vxlan_call_notifiers(dev, mac, proto, addr, vni, in mlxsw_sp_fdb_nve_call_notifiers() 3243 __be32 vni; in mlxsw_sp_fdb_notify_mac_uc_tunnel_process() local 3261 &nve_dev, &vid, &vni); in mlxsw_sp_fdb_notify_mac_uc_tunnel_process() [all …]
|
D | spectrum_nve_vxlan.c | 286 mlxsw_sp_nve_vxlan_fdb_replay(const struct net_device *nve_dev, __be32 vni, in mlxsw_sp_nve_vxlan_fdb_replay() argument 291 return vxlan_fdb_replay(nve_dev, vni, &mlxsw_sp_switchdev_notifier, in mlxsw_sp_nve_vxlan_fdb_replay() 296 mlxsw_sp_nve_vxlan_clear_offload(const struct net_device *nve_dev, __be32 vni) in mlxsw_sp_nve_vxlan_clear_offload() argument 300 vxlan_fdb_clear_offload(nve_dev, vni); in mlxsw_sp_nve_vxlan_clear_offload()
|
D | spectrum_fid.c | 42 __be32 vni; member 67 .key_len = sizeof_field(struct mlxsw_sp_fid, vni), 68 .key_offset = offsetof(struct mlxsw_sp_fid, vni), 175 __be32 vni) in mlxsw_sp_fid_lookup_by_vni() argument 179 fid = rhashtable_lookup_fast(&mlxsw_sp->fid_core->vni_ht, &vni, in mlxsw_sp_fid_lookup_by_vni() 187 int mlxsw_sp_fid_vni(const struct mlxsw_sp_fid *fid, __be32 *vni) in mlxsw_sp_fid_vni() argument 192 *vni = fid->vni; in mlxsw_sp_fid_vni() 238 __be32 vni, int nve_ifindex) in mlxsw_sp_fid_vni_set() argument 250 fid->vni = vni; in mlxsw_sp_fid_vni_set() 449 mlxsw_reg_sfmr_vni_set(sfmr_pl, be32_to_cpu(fid->vni)); in mlxsw_sp_fid_edit_op() [all …]
|
D | spectrum_nve.c | 788 __be32 vni) in mlxsw_sp_nve_fdb_clear_offload() argument 797 ops->fdb_clear_offload(nve_dev, vni); in mlxsw_sp_nve_fdb_clear_offload() 964 err = mlxsw_sp_fid_vni_set(fid, params->type, params->vni, in mlxsw_sp_nve_fid_enable() 971 err = ops->fdb_replay(params->dev, params->vni, extack); in mlxsw_sp_nve_fid_enable() 990 __be32 vni; in mlxsw_sp_nve_fid_disable() local 1000 mlxsw_sp_fid_vni(fid, &vni))) in mlxsw_sp_nve_fid_disable() 1007 mlxsw_sp_nve_fdb_clear_offload(mlxsw_sp, fid, nve_dev, vni); in mlxsw_sp_nve_fid_disable()
|
D | spectrum.h | 1280 __be32 vni); 1281 int mlxsw_sp_fid_vni(const struct mlxsw_sp_fid *fid, __be32 *vni); 1287 __be32 vni, int nve_ifindex); 1366 __be32 vni; member
|
/linux-6.6.21/drivers/net/ethernet/sfc/ |
D | tc_encap_actions.c | 332 u32 vni; in efx_gen_tun_header_geneve() local 341 vni = ntohl(tunnel_id_to_key32(key->tun_id)); in efx_gen_tun_header_geneve() 342 geneve->vni[0] = vni >> 16; in efx_gen_tun_header_geneve() 343 geneve->vni[1] = vni >> 8; in efx_gen_tun_header_geneve() 344 geneve->vni[2] = vni; in efx_gen_tun_header_geneve()
|
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_mps.c | 203 unsigned int vni, unsigned int vni_mask, in cxgb4_alloc_encap_mac_filt() argument 208 ret = t4_alloc_encap_mac_filt(adap, viid, addr, mask, vni, vni_mask, in cxgb4_alloc_encap_mac_filt()
|
D | cxgb4_tc_flower.c | 263 fs->val.vni = be32_to_cpu(match.key->keyid); in cxgb4_process_flow_match() 264 fs->mask.vni = be32_to_cpu(match.mask->keyid); in cxgb4_process_flow_match() 265 if (fs->mask.vni) { in cxgb4_process_flow_match()
|
D | cxgb4_filter.c | 1450 f->fs.val.vni, in cxgb4_set_hash_filter() 1451 f->fs.mask.vni, in cxgb4_set_hash_filter() 1697 f->fs.val.vni, in __cxgb4_set_filter() 1698 f->fs.mask.vni, in __cxgb4_set_filter()
|
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/flower/ |
D | match.c | 459 u32 vni; in nfp_flower_compile_tun_udp_key() local 462 vni = be32_to_cpu((match.key->keyid & match.mask->keyid)) << in nfp_flower_compile_tun_udp_key() 464 *key |= cpu_to_be32(vni); in nfp_flower_compile_tun_udp_key() 465 vni = be32_to_cpu(match.mask->keyid) << NFP_FL_TUN_VNI_OFFSET; in nfp_flower_compile_tun_udp_key() 466 *key_msk |= cpu_to_be32(vni); in nfp_flower_compile_tun_udp_key()
|
/linux-6.6.21/drivers/net/ethernet/intel/ice/ |
D | ice_protocol_type.h | 188 __be32 vni; /* only use lower 24-bits */ member
|
/linux-6.6.21/drivers/net/ethernet/qlogic/qed/ |
D | qed_l2.h | 81 u32 vni; member
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx4/ |
D | mcg.c | 887 rule_hw->vxlan.vni = in parse_trans_rule() 888 cpu_to_be32(be32_to_cpu(spec->vxlan.vni) << 8); in parse_trans_rule() 961 "VNID = %d ", be32_to_cpu(cur->vxlan.vni)); in mlx4_err_rule()
|