examples/nvme/identify: display Arbitration Burst for round robin arbitration
Arbitration Burst is valid for both round robin and weighted round robin arbitration. Change-Id: I0046194ef510bf255ac0527bc6b1d2dc0648b7cb Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/466686 Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
6ad44e8be6
commit
2a65e28e56
@ -1247,7 +1247,7 @@ print_controller(struct spdk_nvme_ctrlr *ctrlr, const struct spdk_nvme_transport
|
|||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
if (features[SPDK_NVME_FEAT_ARBITRATION].valid && (cap.bits.ams & SPDK_NVME_CAP_AMS_WRR)) {
|
if (features[SPDK_NVME_FEAT_ARBITRATION].valid) {
|
||||||
uint32_t arb = features[SPDK_NVME_FEAT_ARBITRATION].result;
|
uint32_t arb = features[SPDK_NVME_FEAT_ARBITRATION].result;
|
||||||
unsigned ab, lpw, mpw, hpw;
|
unsigned ab, lpw, mpw, hpw;
|
||||||
|
|
||||||
@ -1264,9 +1264,12 @@ print_controller(struct spdk_nvme_ctrlr *ctrlr, const struct spdk_nvme_transport
|
|||||||
} else {
|
} else {
|
||||||
printf("%u\n", 1u << ab);
|
printf("%u\n", 1u << ab);
|
||||||
}
|
}
|
||||||
printf("Low Priority Weight: %u\n", lpw);
|
|
||||||
printf("Medium Priority Weight: %u\n", mpw);
|
if (cap.bits.ams & SPDK_NVME_CAP_AMS_WRR) {
|
||||||
printf("High Priority Weight: %u\n", hpw);
|
printf("Low Priority Weight: %u\n", lpw);
|
||||||
|
printf("Medium Priority Weight: %u\n", mpw);
|
||||||
|
printf("High Priority Weight: %u\n", hpw);
|
||||||
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user