Commit 72b4cda8 authored by Cunyin Chang's avatar Cunyin Chang
Browse files

bdev: remove unused field in data struct nvme_bdf_whitelist



Change-Id: Ib21ef75515277d84cb12cdb6733137cbbe2e4ebc
Signed-off-by: default avatarCunyin Chang <cunyin.chang@intel.com>
parent e1f93d26
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -145,9 +145,9 @@ the kernel to avoid interrupts and context switching.
  # is referenced later in the Subsystem section.
  #
  # Alternatively, the user can specify ClaimAllDevices. All
  # NVMe devices will be claimed and named Nvme0, Nvme1, etc.
  BDF 0000:00:00.0 Nvme0
  BDF 0000:01:00.0 Nvme1
  # NVMe devices will be claimed.
  BDF 0000:00:00.0
  BDF 0000:01:00.0

  # SPDK supports partitioning each nvme card into multiple LUNs
  #  through the NvmeLunsPerNs parameter. If NvmeLunsPerNs is specified,
+0 −9
Original line number Diff line number Diff line
@@ -475,15 +475,6 @@ nvme_library_init(void)
			probe_ctx.whitelist[probe_ctx.num_whitelist_controllers].dev = dev;
			probe_ctx.whitelist[probe_ctx.num_whitelist_controllers].func = func;

			val = spdk_conf_section_get_nmval(sp, "BDF", i, 1);
			if (val == NULL) {
				SPDK_ERRLOG("BDF section with no device name\n");
				return -1;
			}

			snprintf(probe_ctx.whitelist[probe_ctx.num_whitelist_controllers].name, MAX_NVME_NAME_LENGTH, "%s",
				 val);

			probe_ctx.num_whitelist_controllers++;
		}
	}
+0 −2
Original line number Diff line number Diff line
@@ -36,7 +36,6 @@

#include <stdint.h>

#define MAX_NVME_NAME_LENGTH 64
#define NVME_MAX_CONTROLLERS 16

struct nvme_bdf_whitelist {
@@ -44,7 +43,6 @@ struct nvme_bdf_whitelist {
	uint8_t		bus;
	uint8_t		dev;
	uint8_t		func;
	char		name[MAX_NVME_NAME_LENGTH];
};

struct nvme_probe_ctx {