MCPcopy Create free account
hub / github.com/F-Stack/f-stack / mlx5dr_debug_dump_context_caps

Function mlx5dr_debug_dump_context_caps

dpdk/drivers/net/mlx5/hws/mlx5dr_debug.c:418–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416}
417
418static int mlx5dr_debug_dump_context_caps(FILE *f, struct mlx5dr_context *ctx)
419{
420 struct mlx5dr_cmd_query_caps *caps = ctx->caps;
421 int ret;
422
423 ret = fprintf(f, "%d,0x%" PRIx64 ",%s,%d,%d,%d,%d,",
424 MLX5DR_DEBUG_RES_TYPE_CONTEXT_CAPS,
425 (uint64_t)(uintptr_t)ctx,
426 caps->fw_ver,
427 caps->wqe_based_update,
428 caps->ste_format,
429 caps->ste_alloc_log_max,
430 caps->log_header_modify_argument_max_alloc);
431 if (ret < 0) {
432 rte_errno = EINVAL;
433 return rte_errno;
434 }
435
436 ret = fprintf(f, "%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d\n",
437 caps->flex_protocols,
438 caps->rtc_reparse_mode,
439 caps->rtc_index_mode,
440 caps->ste_alloc_log_gran,
441 caps->stc_alloc_log_max,
442 caps->stc_alloc_log_gran,
443 caps->rtc_log_depth_max,
444 caps->format_select_gtpu_dw_0,
445 caps->format_select_gtpu_dw_1,
446 caps->format_select_gtpu_dw_2,
447 caps->format_select_gtpu_ext_dw_0,
448 caps->nic_ft.max_level,
449 caps->nic_ft.reparse,
450 caps->fdb_ft.max_level,
451 caps->fdb_ft.reparse,
452 caps->log_header_modify_argument_granularity);
453 if (ret < 0) {
454 rte_errno = EINVAL;
455 return rte_errno;
456 }
457
458 return 0;
459}
460
461static int mlx5dr_debug_dump_context_attr(FILE *f, struct mlx5dr_context *ctx)
462{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected