#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <doca_argp.h>
#include <doca_dev.h>
#include <doca_erasure_coding.h>
#include <doca_error.h>
#include <doca_log.h>
#include <utils.h>
Go to the source code of this file.
|
| | DOCA_LOG_REGISTER (EC_RECOVER::MAIN) |
| |
| doca_error_t | ec_recover (const char *pci_addr, const char *input_path, const char *output_path, bool do_both, enum doca_ec_matrix_type matrix_type, uint32_t data_block_count, uint32_t rdnc_block_count, uint32_t *missing_indices, size_t n_missing, int num_src_buf, int num_dst_buf) |
| |
| static doca_error_t | pci_address_callback (void *param, void *config) |
| |
| static doca_error_t | input_path_callback (void *param, void *config) |
| |
| static doca_error_t | output_path_callback (void *param, void *config) |
| |
| static doca_error_t | do_both_callback (void *param, void *config) |
| |
| static doca_error_t | matrix_callback (void *param, void *config) |
| |
| static doca_error_t | data_block_count_callback (void *param, void *config) |
| |
| static doca_error_t | rdnc_block_count_callback (void *param, void *config) |
| |
| static doca_error_t | delete_block_indices_callback (void *param, void *config) |
| |
| static doca_error_t | num_src_buf_callback (void *param, void *config) |
| |
| static doca_error_t | num_dst_buf_callback (void *param, void *config) |
| |
| static doca_error_t | register_ec_params (void) |
| |
| int | main (int argc, char **argv) |
| |
◆ MAX_BLOCKS
| #define MAX_BLOCKS (128 + 32) /* ec blocks up to 128 in, 32 out */ |
◆ MAX_PATH_NAME
◆ USER_MAX_PATH_NAME
| #define USER_MAX_PATH_NAME 255 /* max file name length */ |
◆ data_block_count_callback()
| static doca_error_t data_block_count_callback |
( |
void * |
param, |
|
|
void * |
config |
|
) |
| |
|
static |
◆ delete_block_indices_callback()
| static doca_error_t delete_block_indices_callback |
( |
void * |
param, |
|
|
void * |
config |
|
) |
| |
|
static |
◆ do_both_callback()
| static doca_error_t do_both_callback |
( |
void * |
param, |
|
|
void * |
config |
|
) |
| |
|
static |
◆ DOCA_LOG_REGISTER()
| DOCA_LOG_REGISTER |
( |
EC_RECOVER::MAIN |
| ) |
|
◆ ec_recover()
| doca_error_t ec_recover |
( |
const char * |
pci_addr, |
|
|
const char * |
input_path, |
|
|
const char * |
output_path, |
|
|
bool |
do_both, |
|
|
enum doca_ec_matrix_type |
matrix_type, |
|
|
uint32_t |
data_block_count, |
|
|
uint32_t |
rdnc_block_count, |
|
|
uint32_t * |
missing_indices, |
|
|
size_t |
n_missing, |
|
|
int |
num_src_buf, |
|
|
int |
num_dst_buf |
|
) |
| |
◆ input_path_callback()
| static doca_error_t input_path_callback |
( |
void * |
param, |
|
|
void * |
config |
|
) |
| |
|
static |
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ matrix_callback()
| static doca_error_t matrix_callback |
( |
void * |
param, |
|
|
void * |
config |
|
) |
| |
|
static |
◆ num_dst_buf_callback()
| static doca_error_t num_dst_buf_callback |
( |
void * |
param, |
|
|
void * |
config |
|
) |
| |
|
static |
◆ num_src_buf_callback()
| static doca_error_t num_src_buf_callback |
( |
void * |
param, |
|
|
void * |
config |
|
) |
| |
|
static |
◆ output_path_callback()
| static doca_error_t output_path_callback |
( |
void * |
param, |
|
|
void * |
config |
|
) |
| |
|
static |
◆ pci_address_callback()
| static doca_error_t pci_address_callback |
( |
void * |
param, |
|
|
void * |
config |
|
) |
| |
|
static |
◆ rdnc_block_count_callback()
| static doca_error_t rdnc_block_count_callback |
( |
void * |
param, |
|
|
void * |
config |
|
) |
| |
|
static |
◆ register_ec_params()