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

Function mlx5dr_debug_dump_context_info

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

Source from the content-addressed store, hash-verified

482}
483
484static int mlx5dr_debug_dump_context_info(FILE *f, struct mlx5dr_context *ctx)
485{
486 int ret;
487
488 ret = fprintf(f, "%d,0x%" PRIx64 ",%d,%s,%s\n",
489 MLX5DR_DEBUG_RES_TYPE_CONTEXT,
490 (uint64_t)(uintptr_t)ctx,
491 ctx->flags & MLX5DR_CONTEXT_FLAG_HWS_SUPPORT,
492 mlx5_glue->get_device_name(mlx5dr_context_get_local_ibv(ctx)->device),
493 DEBUG_VERSION);
494 if (ret < 0) {
495 rte_errno = EINVAL;
496 return rte_errno;
497 }
498
499 ret = mlx5dr_debug_dump_context_attr(f, ctx);
500 if (ret)
501 return ret;
502
503 ret = mlx5dr_debug_dump_context_caps(f, ctx);
504 if (ret)
505 return ret;
506
507 return 0;
508}
509
510static int
511mlx5dr_debug_dump_context_stc_resource(FILE *f,

Callers 1

Tested by

no test coverage detected