Commit d7635243 authored by Cunyin Chang's avatar Cunyin Chang Committed by Jim Harris
Browse files

bdev/nvme: replace the structure nvme_bdf_whitelist with spdk_pci_addr.



Change-Id: I6a4e4304f166fb744164ee5eb113a9185b2425b2
Signed-off-by: default avatarCunyin Chang <cunyin.chang@intel.com>
parent 8e03aa1f
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -44,7 +44,6 @@

#include "spdk/conf.h"
#include "spdk/endian.h"
#include "spdk/env.h"
#include "spdk/log.h"
#include "spdk/bdev.h"
#include "spdk/nvme.h"
+2 −8
Original line number Diff line number Diff line
@@ -35,20 +35,14 @@
#define SPDK_BLOCKDEV_NVME_H

#include <stdint.h>
#include "spdk/env.h"

#define NVME_MAX_CONTROLLERS 16

struct nvme_bdf_whitelist {
	uint16_t	domain;
	uint8_t		bus;
	uint8_t		dev;
	uint8_t		func;
};

struct nvme_probe_ctx {
	int controllers_remaining;
	int num_whitelist_controllers;
	struct nvme_bdf_whitelist whitelist[NVME_MAX_CONTROLLERS];
	struct spdk_pci_addr whitelist[NVME_MAX_CONTROLLERS];
};

int