Spdk/include/spdk
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
..
accel_engine.h lib/accel: Two crc32c APIs are added to provide the chained crc32 operation support 2021-02-23 08:52:48 +00:00
assert.h
barrier.h
base64.h
bdev_module.h bdev: speed up bdev name lookup by using rbtree 2021-05-26 09:22:06 +00:00
bdev_zone.h bdev/zone: add support for get num zones 2021-04-26 16:16:42 +00:00
bdev.h lib/bdev: Change spdk_bdev_read_blocks_with_md arg offset definiton from int64_t to uint64_t. 2021-05-27 07:35:17 +00:00
bit_array.h
bit_pool.h util: add spdk_bit_pool 2020-09-15 07:12:44 +00:00
blob_bdev.h module/blob: remove deprecated spdk_bdev_create_bs_dev/from_desc() 2021-03-05 08:33:45 +00:00
blob.h blob: cleanup Doxygen comments 2021-03-30 11:45:50 +00:00
blobfs_bdev.h
blobfs.h blobfs: cleanup Doxygen comments 2021-03-30 11:45:50 +00:00
conf.h lib/conf: allow multiple sections with same name 2020-07-22 12:24:08 +00:00
cpuset.h
crc16.h
crc32.h lib/util: move some crc32 functions to internal header 2020-05-14 10:37:14 +00:00
dif.h
endian.h
env_dpdk.h
env.h lib: add a hotplug lib for device 2021-04-12 09:48:21 +00:00
event.h event: Move RPC server initialization to init 2021-05-26 09:13:34 +00:00
fd_group.h interrupt: new fd_group in lib/util 2020-10-23 16:23:48 +00:00
fd.h
file.h
ftl.h
gpt_spec.h
histogram_data.h histogram: add handling for datapoint == 0 2021-05-19 07:50:28 +00:00
idxd.h idxd: Do not present pci device info in accel_engine_idxd.c module 2021-05-10 11:12:40 +00:00
init.h event: Move json config loading to init 2021-05-26 09:13:34 +00:00
ioat_spec.h
ioat.h lib/ioat: add mew API to get the max # of descriptors supported 2020-07-23 22:26:39 +00:00
iscsi_spec.h
json.h json: add spdk_json_free_object() 2020-10-19 10:02:10 +00:00
jsonrpc.h jsonrpc: cleanup Doxygen comments 2021-03-30 11:45:50 +00:00
likely.h
log.h lib/log: do not use spdk_log_get_flag() in macro for log flags 2020-10-16 08:14:59 +00:00
lvol.h
memory.h
mmio.h
nbd.h nbd: Use async manner to stop nbd device. 2020-12-28 14:05:15 +00:00
net.h net: Remove the net_framework subsystem 2020-09-25 11:30:09 +00:00
notify.h
nvme_intel.h
nvme_ocssd_spec.h
nvme_ocssd.h
nvme_spec.h nvme_tcp: Correctly handle the data digest err 2021-05-31 07:15:16 +00:00
nvme_zns.h nvme: add function to get ZNS max active zones 2021-02-24 13:06:32 +00:00
nvme.h nvme: add spdk_nvme_ctrlr_is_fabrics() 2021-06-01 07:43:12 +00:00
nvmf_cmd.h lib/nvmf: Support custom admin cmd handler for abort 2020-07-24 07:25:47 +00:00
nvmf_fc_spec.h nvmf/fc: FC Priority tagging and VMID support. 2021-01-14 16:18:25 +00:00
nvmf_spec.h
nvmf_transport.h nvmf: Rearrange spdk_nvmf_requset for cache line locality 2021-05-24 10:10:19 +00:00
nvmf.h lib/nvmf: Add current qpair count to poll group statistic 2021-05-27 07:35:49 +00:00
opal_spec.h
opal.h lib/opal: remove deprecated spdk_opal_supported() 2021-03-18 14:43:08 +00:00
pci_ids.h env: add spdk_pci_id->class_id 2020-07-23 20:48:47 +00:00
pipe.h
queue_extras.h include: remove util.h include from queue_extras.h 2021-04-14 07:25:21 +00:00
queue.h Include: Test for __linux__ 2020-11-19 09:53:21 +00:00
reduce.h
rpc.h
scsi_spec.h
scsi.h scsi: add bdev resize callback support 2020-09-28 08:33:18 +00:00
sock.h sock: Deprecate enable_zerocopy_send in sock_impl_set_options RPC 2021-04-27 08:13:32 +00:00
stdinc.h util: add zipf random number generator 2021-05-17 11:29:52 +00:00
string.h
thread.h poller: add register interrupt function 2021-04-23 18:09:54 +00:00
trace.h
tree.h util: Add Free BSD Red-Black tree macros 2021-05-14 10:08:02 +00:00
util.h
uuid.h
version.h version: SPDK 21.07 pre 2021-04-27 08:29:12 +00:00
vfio_user_pci.h NVMe/vfio-user: add initial version vfio-user transport to NVMe driver 2021-01-21 05:00:18 +00:00
vfio_user_spec.h libvfio-user: update submodule 2021-05-21 03:01:21 +00:00
vhost.h lib/vhost: Remove and inline spdk_vhost_blk_get_dev 2020-06-08 09:28:27 +00:00
vmd.h
zipf.h util: add zipf random number generator 2021-05-17 11:29:52 +00:00