Skip to content

Commit

Permalink
Merge "Set priority group implicitly for IEEE mode"
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 45db076 + 84e17d0 commit 1d376ff
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions utils/qosmap.c
Expand Up @@ -641,6 +641,8 @@ validate_options(void)
static void
parse_long_opts(int opt_index, char *opt_arg)
{
unsigned int i;

errno = 0;

switch (opt_index) {
Expand All @@ -649,6 +651,13 @@ parse_long_opts(int opt_index, char *opt_arg)
if (dcbx_mode < 0) {
Usage();
}

if (dcbx_mode == DCB_CAP_DCBX_VER_IEEE) {
for (i = 0; i < NUM_TC; i++) {
priority_map.tc_to_group[i] = i;
}
}

break;

case DOTONEP_OPT_INDEX:
Expand Down

0 comments on commit 1d376ff

Please sign in to comment.