Home
last modified time | relevance | path

Searched refs:vni (Results 1 – 25 of 33) sorted by relevance

12

/linux-6.3-rc2/drivers/net/vxlan/
A Dvxlan_private.h36 __be32 vni; member
48 return &vs->vni_list[hash_32((__force u32)vni, VNI_HASH_BITS)]; in vni_head()
99 vxlan_vnifilter_lookup(struct vxlan_dev *vxlan, __be32 vni) in vxlan_vnifilter_lookup() argument
107 return rhashtable_lookup_fast(&vg->vni_hash, &vni, in vxlan_vnifilter_lookup()
115 __be32 vni, __u32 ifindex, __u16 ndm_flags,
120 __be16 port, __be32 src_vni, __be32 vni,
122 u32 eth_vni_hash(const unsigned char *addr, __be32 vni);
127 __be16 port, __be32 src_vni, __be32 vni,
131 struct vxlan_config *conf, __be32 vni);
139 void vxlan_vnifilter_count(struct vxlan_dev *vxlan, __be32 vni,
[all …]
A Dvxlan_vnifilter.c24 __be32 vni = *(__be32 *)arg->key; in vxlan_vni_cmp() local
26 return vnode->vni != vni; in vxlan_vni_cmp()
201 return (be32_to_cpu(vend->vni) - be32_to_cpu(vbegin->vni)); in vnirange()
261 ve = be32_to_cpu(vend->vni); in vxlan_fill_vni_filter_entry()
492 vni, in vxlan_update_default_fdb_entry()
493 vni, in vxlan_update_default_fdb_entry()
506 vni, vni, in vxlan_update_default_fdb_entry()
630 vninode->vni, vninode->vni, in vxlan_vni_delete_group()
678 if (be32_to_cpu(v->vni) < be32_to_cpu(vent->vni)) in __vxlan_vni_add_list()
695 __be32 vni) in vxlan_vni_alloc() argument
[all …]
A Dvxlan_core.c152 vni = 0; in vxlan_vs_find_vni()
344 fdb_info->vni = fdb->vni; in vxlan_fdb_switchdev_notifier_info()
468 if (vni == f->vni) in __vxlan_find_mac()
573 if (f->vni == vni) { in vxlan_fdb_replay()
607 if (f->vni == vni) in vxlan_fdb_clear_offload()
1385 __be32 vni; in vxlan_fdb_get() local
1463 vni, in vxlan_snoop()
3003 f->vni == vxlan->cfg.vni) in vxlan_flush()
3513 } else if (tmp->cfg.vni != vni) { in vxlan_vni_in_use()
3886 if (changelink && (vni != conf->vni)) { in vxlan_nl2conf()
[all …]
A Dvxlan_multicast.c126 __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.3-rc2/drivers/net/
A Dgeneve.c92 vnid = (vni[0] << 16) | (vni[1] << 8) | vni[2]; in geneve_net_vni_hash()
99 return (vni[0] << 16) | (vni[1] << 8) | vni[2]; in vni_to_tunnel_id()
178 u8 *vni; in geneve_lookup_skb() local
187 vni = zero_vni; in geneve_lookup_skb()
190 vni = geneve_hdr(skb)->vni; in geneve_lookup_skb()
207 vni = geneve_hdr(skb)->vni; in geneve_lookup_skb()
432 vni = geneve_hdr(skb)->vni; in geneve_udp_encap_err_lookup()
447 vni = geneve_hdr(skb)->vni; in geneve_udp_encap_err_lookup()
670 __u8 vni[3]; in geneve_sock_add() local
1507 __u32 vni; in geneve_nl2info() local
[all …]
/linux-6.3-rc2/include/net/
A Dvxlan.h214 __be32 vni; member
267 __be32 vni; member
400 static inline __be32 vxlan_vni_field(__be32 vni) in vxlan_vni_field() argument
403 return (__force __be32)((__force u32)vni << 8); in vxlan_vni_field()
405 return (__force __be32)((__force u32)vni >> 8); in vxlan_vni_field()
480 __be32 vni; member
486 int vxlan_fdb_find_uc(struct net_device *dev, const u8 *mac, __be32 vni,
488 int vxlan_fdb_replay(const struct net_device *dev, __be32 vni,
491 void vxlan_fdb_clear_offload(const struct net_device *dev, __be32 vni);
495 vxlan_fdb_find_uc(struct net_device *dev, const u8 *mac, __be32 vni, in vxlan_fdb_find_uc() argument
[all …]
A Dgeneve.h60 u8 vni[3]; member
/linux-6.3-rc2/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()
/linux-6.3-rc2/tools/testing/selftests/net/
A Dtest_vxlan_vnifiltering.sh289 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"
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlxsw/
A Dspectrum_nve.h47 int (*fdb_replay)(const struct net_device *nve_dev, __be32 vni,
49 void (*fdb_clear_offload)(const struct net_device *nve_dev, __be32 vni);
A Dspectrum_switchdev.c2420 .vni = vxlan->cfg.vni, in mlxsw_sp_bridge_vlan_aware_vxlan_join()
2598 .vni = vxlan->cfg.vni, in mlxsw_sp_bridge_8021d_vxlan_join()
2893 info.remote_vni = vni; in mlxsw_sp_fdb_vxlan_call_notifiers()
2896 info.vni = vni; in mlxsw_sp_fdb_vxlan_call_notifiers()
2905 __be32 vni, in mlxsw_sp_fdb_nve_call_notifiers() argument
3131 __be32 vni; in mlxsw_sp_fdb_notify_mac_uc_tunnel_process() local
3331 __be32 vni; in mlxsw_sp_switchdev_bridge_nve_fdb_event() local
3367 vni); in mlxsw_sp_switchdev_bridge_nve_fdb_event()
3601 vxlan_fdb_info->vni != cfg->vni) { in mlxsw_sp_switchdev_vxlan_work_prepare()
3717 __be32 vni = vxlan->cfg.vni; in mlxsw_sp_switchdev_vxlan_vlan_add() local
[all …]
A Dspectrum_nve_vxlan.c284 mlxsw_sp_nve_vxlan_fdb_replay(const struct net_device *nve_dev, __be32 vni, in mlxsw_sp_nve_vxlan_fdb_replay() argument
289 return vxlan_fdb_replay(nve_dev, vni, &mlxsw_sp_switchdev_notifier, in mlxsw_sp_nve_vxlan_fdb_replay()
294 mlxsw_sp_nve_vxlan_clear_offload(const struct net_device *nve_dev, __be32 vni) in mlxsw_sp_nve_vxlan_clear_offload() argument
298 vxlan_fdb_clear_offload(nve_dev, vni); in mlxsw_sp_nve_vxlan_clear_offload()
A Dspectrum_fid.c42 __be32 vni; member
67 .key_len = sizeof_field(struct mlxsw_sp_fid, vni),
68 .key_offset = offsetof(struct mlxsw_sp_fid, vni),
185 __be32 vni) in mlxsw_sp_fid_lookup_by_vni() argument
189 fid = rhashtable_lookup_fast(&mlxsw_sp->fid_core->vni_ht, &vni, in mlxsw_sp_fid_lookup_by_vni()
197 int mlxsw_sp_fid_vni(const struct mlxsw_sp_fid *fid, __be32 *vni) in mlxsw_sp_fid_vni() argument
202 *vni = fid->vni; in mlxsw_sp_fid_vni()
248 __be32 vni, int nve_ifindex) in mlxsw_sp_fid_vni_set() argument
260 fid->vni = vni; in mlxsw_sp_fid_vni_set()
459 mlxsw_reg_sfmr_vni_set(sfmr_pl, be32_to_cpu(fid->vni)); in mlxsw_sp_fid_edit_op()
[all …]
A Dspectrum_nve.c788 __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
997 mlxsw_sp_fid_vni(fid, &vni))) in mlxsw_sp_nve_fid_disable()
1004 mlxsw_sp_nve_fdb_clear_offload(mlxsw_sp, fid, nve_dev, vni); in mlxsw_sp_nve_fid_disable()
A Dspectrum.h1279 __be32 vni);
1280 int mlxsw_sp_fid_vni(const struct mlxsw_sp_fid *fid, __be32 *vni);
1286 __be32 vni, int nve_ifindex);
1365 __be32 vni; member
/linux-6.3-rc2/drivers/net/ethernet/chelsio/cxgb4/
A Dcxgb4_mps.c203 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()
A Dcxgb4_tc_flower.c263 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()
A Dcxgb4_filter.c1450 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()
A Dcxgb4.h1354 uint32_t vni:ENCAP_VNI_BITWIDTH; /* VNI of tunnel */ member
2010 const u8 *addr, const u8 *mask, unsigned int vni,
2151 unsigned int vni, unsigned int vni_mask,
/linux-6.3-rc2/drivers/net/ethernet/netronome/nfp/flower/
A Dmatch.c459 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.3-rc2/drivers/net/ethernet/intel/ice/
A Dice_protocol_type.h197 __be32 vni; /* only use lower 24-bits */ member
/linux-6.3-rc2/drivers/net/ethernet/qlogic/qed/
A Dqed_l2.h81 u32 vni; member
A Dqed_l2.c1317 p_first_filter->vni = cpu_to_le32(p_filter_cmd->vni); in qed_filter_ucast_common()
1325 p_second_filter->vni = p_first_filter->vni; in qed_filter_ucast_common()
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx4/
A Dmcg.c887 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()
/linux-6.3-rc2/include/linux/mlx4/
A Ddevice.h1232 __be32 vni; member
1337 __be32 vni; member

Completed in 95 milliseconds

12