Jim Harris 9f5e3c99f2 nvme: add spdk_nvme_ctrlr_is_fabrics()
We map the SPDK_NVME_TRANSPORT_* values directly to
the NVMe-oF trtype values.  Since PCIe isn't
Fabrics, we choose 256 which is outside of the
8-bit trtype range of values.

So we can just check if trtype >= 256 to determine
if the trid is for fabrics or not.  This is
preferable to checking PCIE || VFIOUSER in case
additional non-fabrics transport types are added
in the future.

I considered taking a trid as the parameter instead,
but went this route since it is consistent with
the existing spdk_nvme_ctrlr_is_discovery().

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: Ib62ff4d30549b2324486c81f2dce67f0f1741e9b
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8077
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Ziye Yang <ziye.yang@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
2021-06-01 07:43:12 +00:00
..
2019-03-15 19:32:55 +00:00
2020-09-15 07:12:44 +00:00
2021-03-30 11:45:50 +00:00
2021-03-30 11:45:50 +00:00
2021-04-12 09:48:21 +00:00
2020-10-23 16:23:48 +00:00
2019-05-15 18:54:27 +00:00
2017-07-12 18:12:52 -04:00
2021-05-26 09:13:34 +00:00
2019-06-17 14:09:03 +00:00
2020-10-19 10:02:10 +00:00
2021-03-30 11:45:50 +00:00
2020-03-19 08:50:45 +00:00
2020-09-25 11:30:09 +00:00
2021-06-01 07:43:12 +00:00
2020-07-23 20:48:47 +00:00
2020-11-19 09:53:21 +00:00
2019-11-06 15:19:48 +00:00
2019-05-30 21:42:36 +00:00
2020-09-28 08:33:18 +00:00
2018-12-06 22:25:09 +00:00
2021-04-27 08:29:12 +00:00
2020-02-04 16:50:25 +00:00
2021-05-17 11:29:52 +00:00