Home
last modified time | relevance | path

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

12

/drivers/net/vxlan/
Dvxlan_core.c81 __be32 vni; member
164 static inline struct hlist_head *vni_head(struct vxlan_sock *vs, __be32 vni) in vni_head() argument
166 return &vs->vni_list[hash_32((__force u32)vni, VNI_HASH_BITS)]; in vni_head()
216 __be32 vni) in vxlan_vs_find_vni() argument
222 vni = 0; in vxlan_vs_find_vni()
224 hlist_for_each_entry_rcu(node, vni_head(vs, vni), hlist) { in vxlan_vs_find_vni()
225 if (node->vxlan->default_dst.remote_vni != vni) in vxlan_vs_find_vni()
244 __be32 vni, sa_family_t family, in vxlan_find_vni() argument
253 return vxlan_vs_find_vni(vs, ifindex, vni); in vxlan_find_vni()
332 if ((vxlan->cfg.flags & VXLAN_F_COLLECT_METADATA) && fdb->vni && in vxlan_fdb_info()
[all …]
/drivers/net/
Dgeneve.c86 static inline __u32 geneve_net_vni_hash(u8 vni[3]) in geneve_net_vni_hash()
90 vnid = (vni[0] << 16) | (vni[1] << 8) | vni[2]; in geneve_net_vni_hash()
94 static __be64 vni_to_tunnel_id(const __u8 *vni) in vni_to_tunnel_id() argument
97 return (vni[0] << 16) | (vni[1] << 8) | vni[2]; in vni_to_tunnel_id()
99 return (__force __be64)(((__force u64)vni[0] << 40) | in vni_to_tunnel_id()
100 ((__force u64)vni[1] << 48) | in vni_to_tunnel_id()
101 ((__force u64)vni[2] << 56)); in vni_to_tunnel_id()
106 static void tunnel_id_to_vni(__be64 tun_id, __u8 *vni) in tunnel_id_to_vni() argument
109 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()
[all …]
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_fid.c35 __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 …]
Dspectrum_switchdev.c2023 .vni = vxlan->cfg.vni, in mlxsw_sp_bridge_vlan_aware_vxlan_join()
2201 .vni = vxlan->cfg.vni, in mlxsw_sp_bridge_8021d_vxlan_join()
2438 fid = mlxsw_sp_fid_lookup_by_vni(mlxsw_sp, vxlan->cfg.vni); in mlxsw_sp_bridge_vxlan_leave()
2485 __be32 vni, bool adding) in mlxsw_sp_fdb_vxlan_call_notifiers() argument
2495 info.remote_vni = vni; in mlxsw_sp_fdb_vxlan_call_notifiers()
2498 info.vni = vni; in mlxsw_sp_fdb_vxlan_call_notifiers()
2507 __be32 vni, in mlxsw_sp_fdb_nve_call_notifiers() argument
2511 mlxsw_sp_fdb_vxlan_call_notifiers(dev, mac, proto, addr, vni, in mlxsw_sp_fdb_nve_call_notifiers()
2720 __be32 vni; in mlxsw_sp_fdb_notify_mac_uc_tunnel_process() local
2738 &nve_dev, &vid, &vni); in mlxsw_sp_fdb_notify_mac_uc_tunnel_process()
[all …]
Dspectrum_nve.h45 int (*fdb_replay)(const struct net_device *nve_dev, __be32 vni,
47 void (*fdb_clear_offload)(const struct net_device *nve_dev, __be32 vni);
Dspectrum_nve_vxlan.c221 mlxsw_sp_nve_vxlan_fdb_replay(const struct net_device *nve_dev, __be32 vni, in mlxsw_sp_nve_vxlan_fdb_replay() argument
226 return vxlan_fdb_replay(nve_dev, vni, &mlxsw_sp_switchdev_notifier, in mlxsw_sp_nve_vxlan_fdb_replay()
231 mlxsw_sp_nve_vxlan_clear_offload(const struct net_device *nve_dev, __be32 vni) in mlxsw_sp_nve_vxlan_clear_offload() argument
235 vxlan_fdb_clear_offload(nve_dev, vni); in mlxsw_sp_nve_vxlan_clear_offload()
Dspectrum_nve.c778 __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()
Dspectrum.h1206 __be32 vni);
1207 int mlxsw_sp_fid_vni(const struct mlxsw_sp_fid *fid, __be32 *vni);
1213 __be32 vni, int nve_ifindex);
1288 __be32 vni; member
Dreg.h1917 MLXSW_ITEM32(reg, sfmr, vni, 0x10, 0, 24);
/drivers/net/ethernet/mellanox/mlx5/core/en/
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()
Dtc_tun.c738 esw_attr->rx_tun_attr->vni = MLX5_GET(fte_match_param, spec->match_value, in mlx5e_tc_tun_route_lookup()
/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dindir_table.c30 u32 vni; member
107 if (rule->vni == attr->rx_tun_attr->vni && in mlx5_esw_indir_table_rule_lookup()
232 rule->vni = esw_attr->rx_tun_attr->vni; in mlx5_esw_indir_table_rule_get()
265 if (rule->vni == esw_attr->rx_tun_attr->vni && in mlx5_esw_indir_table_rule_put()
/drivers/net/ethernet/netronome/nfp/flower/
Dmatch.c436 u32 vni; in nfp_flower_compile_tun_udp_key() local
439 vni = be32_to_cpu((match.key->keyid & match.mask->keyid)) << in nfp_flower_compile_tun_udp_key()
441 *key |= cpu_to_be32(vni); in nfp_flower_compile_tun_udp_key()
442 vni = be32_to_cpu(match.mask->keyid) << NFP_FL_TUN_VNI_OFFSET; in nfp_flower_compile_tun_udp_key()
443 *key_msk |= cpu_to_be32(vni); in nfp_flower_compile_tun_udp_key()
/drivers/net/ethernet/chelsio/cxgb4/
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()
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()
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()
Dcxgb4.h1356 uint32_t vni:ENCAP_VNI_BITWIDTH; /* VNI of tunnel */ member
2012 const u8 *addr, const u8 *mask, unsigned int vni,
2153 unsigned int vni, unsigned int vni_mask,
Dt4_hw.c7862 const u8 *addr, const u8 *mask, unsigned int vni, in t4_alloc_encap_mac_filt() argument
7884 cpu_to_be32(FW_VI_MAC_CMD_VNI_V(vni) | in t4_alloc_encap_mac_filt()
/drivers/net/ethernet/qlogic/qed/
Dqed_l2.h81 u32 vni; member
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()
/drivers/net/ethernet/mellanox/mlx5/core/
Den_tc.h101 u32 vni; member
/drivers/net/ethernet/mellanox/mlx4/
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()
/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_tc.c914 encap->vni = tunnel_id_to_key32(encap_key->tun_id); in hwrm_cfa_encap_record_alloc()
Dbnxt_hsi.h6923 __le32 vni; member
7021 __be32 vni; member
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_hsi.h3847 __le32 vni; member

12