bdev/nvme: replace the structure nvme_bdf_whitelist with spdk_pci_addr.
Change-Id: I6a4e4304f166fb744164ee5eb113a9185b2425b2 Signed-off-by: Cunyin Chang <cunyin.chang@intel.com>
This commit is contained in:
parent
8e03aa1f3c
commit
d7635243b9
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user