/kernel/linux/linux-5.10/drivers/net/ |
D | vxlan.c | 80 __be32 vni; member 163 static inline struct hlist_head *vni_head(struct vxlan_sock *vs, __be32 vni) in vni_head() argument 165 return &vs->vni_list[hash_32((__force u32)vni, VNI_HASH_BITS)]; in vni_head() 215 __be32 vni) in vxlan_vs_find_vni() argument 221 vni = 0; in vxlan_vs_find_vni() 223 hlist_for_each_entry_rcu(node, vni_head(vs, vni), hlist) { in vxlan_vs_find_vni() 224 if (node->vxlan->default_dst.remote_vni != vni) in vxlan_vs_find_vni() 243 __be32 vni, sa_family_t family, in vxlan_find_vni() argument 252 return vxlan_vs_find_vni(vs, ifindex, vni); in vxlan_find_vni() 331 if ((vxlan->cfg.flags & VXLAN_F_COLLECT_METADATA) && fdb->vni && in vxlan_fdb_info() [all …]
|
D | geneve.c | 85 static inline __u32 geneve_net_vni_hash(u8 vni[3]) in geneve_net_vni_hash() 89 vnid = (vni[0] << 16) | (vni[1] << 8) | vni[2]; in geneve_net_vni_hash() 93 static __be64 vni_to_tunnel_id(const __u8 *vni) in vni_to_tunnel_id() argument 96 return (vni[0] << 16) | (vni[1] << 8) | vni[2]; in vni_to_tunnel_id() 98 return (__force __be64)(((__force u64)vni[0] << 40) | in vni_to_tunnel_id() 99 ((__force u64)vni[1] << 48) | in vni_to_tunnel_id() 100 ((__force u64)vni[2] << 56)); in vni_to_tunnel_id() 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() [all …]
|
/kernel/linux/linux-5.10/include/net/ |
D | vxlan.h | 213 __be32 vni; member 349 static inline __be32 vxlan_vni_field(__be32 vni) in vxlan_vni_field() argument 352 return (__force __be32)((__force u32)vni << 8); in vxlan_vni_field() 354 return (__force __be32)((__force u32)vni >> 8); in vxlan_vni_field() 429 __be32 vni; member 435 int vxlan_fdb_find_uc(struct net_device *dev, const u8 *mac, __be32 vni, 437 int vxlan_fdb_replay(const struct net_device *dev, __be32 vni, 440 void vxlan_fdb_clear_offload(const struct net_device *dev, __be32 vni); 444 vxlan_fdb_find_uc(struct net_device *dev, const u8 *mac, __be32 vni, in vxlan_fdb_find_uc() argument 450 static inline int vxlan_fdb_replay(const struct net_device *dev, __be32 vni, in vxlan_fdb_replay() argument [all …]
|
D | geneve.h | 60 u8 vni[3]; member
|
/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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_fid.c | 35 __be32 vni; member 59 .key_len = sizeof_field(struct mlxsw_sp_fid, vni), 60 .key_offset = offsetof(struct mlxsw_sp_fid, vni), 84 int (*vni_set)(struct mlxsw_sp_fid *fid, __be32 vni); 180 __be32 vni) in mlxsw_sp_fid_lookup_by_vni() argument 184 fid = rhashtable_lookup_fast(&mlxsw_sp->fid_core->vni_ht, &vni, in mlxsw_sp_fid_lookup_by_vni() 192 int mlxsw_sp_fid_vni(const struct mlxsw_sp_fid *fid, __be32 *vni) in mlxsw_sp_fid_vni() argument 197 *vni = fid->vni; in mlxsw_sp_fid_vni() 240 __be32 vni, int nve_ifindex) in mlxsw_sp_fid_vni_set() argument 252 fid->vni = vni; in mlxsw_sp_fid_vni_set() [all …]
|
D | spectrum_nve.h | 46 int (*fdb_replay)(const struct net_device *nve_dev, __be32 vni, 48 void (*fdb_clear_offload)(const struct net_device *nve_dev, __be32 vni);
|
D | spectrum_switchdev.c | 2013 .vni = vxlan->cfg.vni, in mlxsw_sp_bridge_8021q_vxlan_join() 2181 .vni = vxlan->cfg.vni, in mlxsw_sp_bridge_8021d_vxlan_join() 2319 fid = mlxsw_sp_fid_lookup_by_vni(mlxsw_sp, vxlan->cfg.vni); in mlxsw_sp_bridge_vxlan_leave() 2366 __be32 vni, bool adding) in mlxsw_sp_fdb_vxlan_call_notifiers() argument 2376 info.remote_vni = vni; in mlxsw_sp_fdb_vxlan_call_notifiers() 2379 info.vni = vni; in mlxsw_sp_fdb_vxlan_call_notifiers() 2388 __be32 vni, in mlxsw_sp_fdb_nve_call_notifiers() argument 2392 mlxsw_sp_fdb_vxlan_call_notifiers(dev, mac, proto, addr, vni, in mlxsw_sp_fdb_nve_call_notifiers() 2601 __be32 vni; in mlxsw_sp_fdb_notify_mac_uc_tunnel_process() local 2619 &nve_dev, &vid, &vni); in mlxsw_sp_fdb_notify_mac_uc_tunnel_process() [all …]
|
D | spectrum_nve_vxlan.c | 270 mlxsw_sp_nve_vxlan_fdb_replay(const struct net_device *nve_dev, __be32 vni, in mlxsw_sp_nve_vxlan_fdb_replay() argument 275 return vxlan_fdb_replay(nve_dev, vni, &mlxsw_sp_switchdev_notifier, in mlxsw_sp_nve_vxlan_fdb_replay() 280 mlxsw_sp_nve_vxlan_clear_offload(const struct net_device *nve_dev, __be32 vni) in mlxsw_sp_nve_vxlan_clear_offload() argument 284 vxlan_fdb_clear_offload(nve_dev, vni); in mlxsw_sp_nve_vxlan_clear_offload()
|
D | spectrum_nve.c | 778 __be32 vni) in mlxsw_sp_nve_fdb_clear_offload() argument 787 ops->fdb_clear_offload(nve_dev, vni); in mlxsw_sp_nve_fdb_clear_offload() 818 err = mlxsw_sp_fid_vni_set(fid, params->type, params->vni, in mlxsw_sp_nve_fid_enable() 825 err = ops->fdb_replay(params->dev, params->vni, extack); in mlxsw_sp_nve_fid_enable() 844 __be32 vni; in mlxsw_sp_nve_fid_disable() local 850 mlxsw_sp_fid_vni(fid, &vni))) in mlxsw_sp_nve_fid_disable() 857 mlxsw_sp_nve_fdb_clear_offload(mlxsw_sp, fid, nve_dev, vni); in mlxsw_sp_nve_fid_disable()
|
D | spectrum.h | 1126 __be32 vni); 1127 int mlxsw_sp_fid_vni(const struct mlxsw_sp_fid *fid, __be32 *vni); 1133 __be32 vni, int nve_ifindex); 1208 __be32 vni; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/flower/ |
D | match.c | 383 u32 vni; in nfp_flower_compile_tun_udp_key() local 386 vni = be32_to_cpu(match.key->keyid) << NFP_FL_TUN_VNI_OFFSET; in nfp_flower_compile_tun_udp_key() 387 *key = cpu_to_be32(vni); in nfp_flower_compile_tun_udp_key() 388 vni = be32_to_cpu(match.mask->keyid) << NFP_FL_TUN_VNI_OFFSET; in nfp_flower_compile_tun_udp_key() 389 *key_msk = cpu_to_be32(vni); in nfp_flower_compile_tun_udp_key()
|
/kernel/linux/linux-5.10/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()
|
D | cxgb4.h | 1358 uint32_t vni:ENCAP_VNI_BITWIDTH; /* VNI of tunnel */ member 2014 const u8 *addr, const u8 *mask, unsigned int vni, 2155 unsigned int vni, unsigned int vni_mask,
|
D | t4_hw.c | 7891 const u8 *addr, const u8 *mask, unsigned int vni, in t4_alloc_encap_mac_filt() argument 7913 cpu_to_be32(FW_VI_MAC_CMD_VNI_V(vni) | in t4_alloc_encap_mac_filt()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/ |
D | qed_l2.h | 81 u32 vni; member
|
D | qed_l2.c | 1316 p_first_filter->vni = cpu_to_le32(p_filter_cmd->vni); in qed_filter_ucast_common() 1324 p_second_filter->vni = p_first_filter->vni; in qed_filter_ucast_common()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/include/linux/mlx4/ |
D | device.h | 1233 __be32 vni; member 1338 __be32 vni; member
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
D | rtnetlink.sh | 450 ip -netns "$testns" link set dev "$vxlan" type vxlan vni 43 2>/dev/null
|
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_tc.c | 906 encap->vni = tunnel_id_to_key32(encap_key->tun_id); in hwrm_cfa_encap_record_alloc()
|
D | bnxt_hsi.h | 6095 __le32 vni; member 6193 __be32 vni; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_hsi.h | 3847 __le32 vni; member
|