diff --git a/examples/nvme/perf/perf.c b/examples/nvme/perf/perf.c index 9205eaa01..dbe27c18a 100644 --- a/examples/nvme/perf/perf.c +++ b/examples/nvme/perf/perf.c @@ -5,6 +5,7 @@ * All rights reserved. * * Copyright (c) 2019-2021 Mellanox Technologies LTD. All rights reserved. + * Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -2601,6 +2602,11 @@ probe_cb(void *cb_ctx, const struct spdk_nvme_transport_id *trid, } } + if (trid->trtype != trid_entry->trid.trtype && + strcasecmp(trid->trstring, trid_entry->trid.trstring)) { + return false; + } + /* Set io_queue_size to UINT16_MAX, NVMe driver * will then reduce this to MQES to maximize * the io_queue_size as much as possible.