Commit f97809e3 authored by Wojciech Malikowski's avatar Wojciech Malikowski Committed by Jim Harris
Browse files

lib/vmd: Moved MAX_VMD_TARGET definition to public header



MAX_VMD_TARGET defines size of array that need to be passed
to spdk_vmd_pci_device_list()

Change-Id: Ib2a33fe50072036e6a8f1709ac4e3ee82c1bb3f1
Signed-off-by: default avatarWojciech Malikowski <wojciech.malikowski@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/456480


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarDarek Stojaczyk <dariusz.stojaczyk@intel.com>
parent d3a0531b
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -47,6 +47,9 @@ extern "C" {
#include "spdk/config.h"
#include "spdk/env.h"

/* Maximum VMD devices - up to 6 per cpu */
#define MAX_VMD_TARGET  24

/*
 * Takes an input VMD D-BDF, probes it and attaches to it. The resulting vmd
 * adapter is placed in a vmd container. If input BDF is NULL, then all VMD
@@ -62,7 +65,7 @@ int spdk_vmd_probe(struct spdk_pci_addr *vmd_bdf);
 * Returns a list of nvme devices found on the given vmd pci BDF.
 *
 * \param vmd_addr pci BDF of the vmd device to return end device list
 * \param nvme_list buffer of up to MAX_VMD_TARGET to return spdk_pci_device array.
 * \param nvme_list buffer of exactly MAX_VMD_TARGET to return spdk_pci_device array.
 *
 * \return Returns count of nvme device attached to input VMD.
 */
+0 −2
Original line number Diff line number Diff line
@@ -36,8 +36,6 @@
#define VMD_SPEC_H

#define MAX_VMD_SUPPORTED 48  /* max number of vmd controllers in a system - */
/* up to 6 per cpu */
#define MAX_VMD_TARGET  24
#define VMD_DOMAIN_START 0x201D

#define PCI_INVALID_VENDORID 0xFFFF