Lines Matching refs:fid
585 mlxsw_sp_nve_fid_flood_index_set(struct mlxsw_sp_fid *fid, in mlxsw_sp_nve_fid_flood_index_set() argument
594 if (mlxsw_sp_fid_nve_flood_index_is_set(fid)) in mlxsw_sp_nve_fid_flood_index_set()
600 return mlxsw_sp_fid_nve_flood_index_set(fid, mc_record->kvdl_index); in mlxsw_sp_nve_fid_flood_index_set()
604 mlxsw_sp_nve_fid_flood_index_clear(struct mlxsw_sp_fid *fid, in mlxsw_sp_nve_fid_flood_index_clear() argument
620 return mlxsw_sp_fid_nve_flood_index_clear(fid); in mlxsw_sp_nve_fid_flood_index_clear()
624 struct mlxsw_sp_fid *fid, in mlxsw_sp_nve_flood_ip_add() argument
632 key.fid_index = mlxsw_sp_fid_index(fid); in mlxsw_sp_nve_flood_ip_add()
641 err = mlxsw_sp_nve_fid_flood_index_set(fid, mc_list); in mlxsw_sp_nve_flood_ip_add()
655 struct mlxsw_sp_fid *fid, in mlxsw_sp_nve_flood_ip_del() argument
662 key.fid_index = mlxsw_sp_fid_index(fid); in mlxsw_sp_nve_flood_ip_del()
667 mlxsw_sp_nve_fid_flood_index_clear(fid, mc_list); in mlxsw_sp_nve_flood_ip_del()
693 struct mlxsw_sp_fid *fid) in mlxsw_sp_nve_flood_ip_flush() argument
699 if (!mlxsw_sp_fid_nve_flood_index_is_set(fid)) in mlxsw_sp_nve_flood_ip_flush()
702 mlxsw_sp_fid_nve_flood_index_clear(fid); in mlxsw_sp_nve_flood_ip_flush()
704 key.fid_index = mlxsw_sp_fid_index(fid); in mlxsw_sp_nve_flood_ip_flush()
776 const struct mlxsw_sp_fid *fid, in mlxsw_sp_nve_fdb_clear_offload() argument
783 if (WARN_ON(mlxsw_sp_fid_nve_type(fid, &type))) in mlxsw_sp_nve_fdb_clear_offload()
790 int mlxsw_sp_nve_fid_enable(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_fid *fid, in mlxsw_sp_nve_fid_enable() argument
818 err = mlxsw_sp_fid_vni_set(fid, params->type, params->vni, in mlxsw_sp_nve_fid_enable()
832 mlxsw_sp_fid_vni_clear(fid); in mlxsw_sp_nve_fid_enable()
839 struct mlxsw_sp_fid *fid) in mlxsw_sp_nve_fid_disable() argument
841 u16 fid_index = mlxsw_sp_fid_index(fid); in mlxsw_sp_nve_fid_disable()
846 mlxsw_sp_nve_flood_ip_flush(mlxsw_sp, fid); in mlxsw_sp_nve_fid_disable()
849 if (WARN_ON(mlxsw_sp_fid_nve_ifindex(fid, &nve_ifindex) || in mlxsw_sp_nve_fid_disable()
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()
858 mlxsw_sp_fid_fdb_clear_offload(fid, nve_dev); in mlxsw_sp_nve_fid_disable()
863 mlxsw_sp_fid_vni_clear(fid); in mlxsw_sp_nve_fid_disable()