Skip to content

Commit

Permalink
Merge "Print headers for each row for --get-queue"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Oct 12, 2016
2 parents bfa3c6d + 4f7bf48 commit 45db076
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions utils/qosmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,11 @@ dump_priority(void)

printf("DCBX: %5s\n", dcbx_str);
printf("DCB State: %5s\n", dcb_enable ? "Enabled" : "Disabled");
printf("Priority: ");

printf("\n");
printf(" ");
for (i = 0; i < NUM_TC; i++) {
printf("%5u", i);
printf(" P%u", i);
}
printf("\n");
printf("Traffic Class: ");
Expand All @@ -96,11 +98,25 @@ dump_priority(void)
}
printf("\n");

printf("\n");
printf(" ");
for (i = 0; i < NUM_TC; i++) {
printf(" TC%u", i);
}
printf("\n");

printf("Priority Group: ");
for (i = 0; i < NUM_PG; i++) {
printf("%5u", priority_map.tc_to_group[i]);
}
printf("\n");

printf("\n");
printf(" ");
for (i = 0; i < NUM_PG; i++) {
printf(" PG%u", i);
}
printf("\n");
printf("Priority Group Bandwidth: ");
for (i = 0; i < NUM_PG; i++) {
printf("%5u", priority_map.prio_group_bw[i]);
Expand Down

0 comments on commit 45db076

Please sign in to comment.