Skip to content

Commit

Permalink
mlx5: DR, Extend the dump information
Browse files Browse the repository at this point in the history
Extend the dump information to show whether we are using multi QPs, and
whether we are using a fixed size matcher.

Signed-off-by: Muhammad Sammar <muhammads@nvidia.com>
Signed-off-by: Alex Vesker <valex@nvidia.com>
Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
  • Loading branch information
Muhammad Sammar authored and Yishai Hadas committed Feb 23, 2022
1 parent 847d02f commit c590950
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions providers/mlx5/dr_dbg.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,13 +432,14 @@ static int dr_dump_matcher_rx_tx(FILE *f, bool is_rx,
rec_type = is_rx ? DR_DUMP_REC_TYPE_MATCHER_RX :
DR_DUMP_REC_TYPE_MATCHER_TX;

ret = fprintf(f, "%d,0x%" PRIx64 ",0x%" PRIx64 ",%d,0x%" PRIx64 ",0x%" PRIx64 "\n",
ret = fprintf(f, "%d,0x%" PRIx64 ",0x%" PRIx64 ",%d,0x%" PRIx64 ",0x%" PRIx64 ",%d\n",
rec_type,
(uint64_t) (uintptr_t) matcher_rx_tx,
matcher_id,
matcher_rx_tx->num_of_builders,
dr_dump_icm_to_idx(matcher_rx_tx->s_htbl->chunk->icm_addr),
dr_dump_icm_to_idx(matcher_rx_tx->e_anchor->chunk->icm_addr));
dr_dump_icm_to_idx(matcher_rx_tx->e_anchor->chunk->icm_addr),
matcher_rx_tx->fixed_size ? matcher_rx_tx->s_htbl->chunk_size : -1);
if (ret < 0)
return ret;

Expand Down Expand Up @@ -675,11 +676,12 @@ static int dr_dump_domain_info_dev_attr(FILE *f, struct dr_domain_info *info,
{
int ret;

ret = fprintf(f, "%d,0x%" PRIx64 ",%u,%s\n",
ret = fprintf(f, "%d,0x%" PRIx64 ",%u,%s,%d\n",
DR_DUMP_REC_TYPE_DOMAIN_INFO_DEV_ATTR,
domain_id,
info->caps.vports.num_ports,
info->attr.orig_attr.fw_ver);
info->attr.orig_attr.fw_ver,
info->use_mqs);
if (ret < 0)
return ret;

Expand Down

0 comments on commit c590950

Please sign in to comment.