bdev/nvme: Move up definition of struct nvme_async_probe_ctx in a file
Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: Iac315c3484c23b7e8b9a812d728a15bf1c82dbb7 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8591 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
This commit is contained in:
parent
07c2b34ab6
commit
1be049b7d4
@ -46,6 +46,25 @@ extern bool g_bdev_nvme_module_finish;
|
|||||||
|
|
||||||
#define NVME_MAX_CONTROLLERS 1024
|
#define NVME_MAX_CONTROLLERS 1024
|
||||||
|
|
||||||
|
typedef void (*spdk_bdev_create_nvme_fn)(void *ctx, size_t bdev_count, int rc);
|
||||||
|
|
||||||
|
struct nvme_async_probe_ctx {
|
||||||
|
struct spdk_nvme_probe_ctx *probe_ctx;
|
||||||
|
const char *base_name;
|
||||||
|
const char **names;
|
||||||
|
uint32_t count;
|
||||||
|
uint32_t prchk_flags;
|
||||||
|
struct spdk_poller *poller;
|
||||||
|
struct spdk_nvme_transport_id trid;
|
||||||
|
struct spdk_nvme_ctrlr_opts opts;
|
||||||
|
spdk_bdev_create_nvme_fn cb_fn;
|
||||||
|
void *cb_ctx;
|
||||||
|
uint32_t populates_in_progress;
|
||||||
|
bool ctrlr_attached;
|
||||||
|
bool probe_done;
|
||||||
|
bool namespaces_populated;
|
||||||
|
};
|
||||||
|
|
||||||
enum nvme_ns_type {
|
enum nvme_ns_type {
|
||||||
NVME_NS_UNKNOWN = 0,
|
NVME_NS_UNKNOWN = 0,
|
||||||
NVME_NS_STANDARD = 1,
|
NVME_NS_STANDARD = 1,
|
||||||
@ -137,25 +156,6 @@ struct nvme_poll_group {
|
|||||||
uint64_t end_ticks;
|
uint64_t end_ticks;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef void (*spdk_bdev_create_nvme_fn)(void *ctx, size_t bdev_count, int rc);
|
|
||||||
|
|
||||||
struct nvme_async_probe_ctx {
|
|
||||||
struct spdk_nvme_probe_ctx *probe_ctx;
|
|
||||||
const char *base_name;
|
|
||||||
const char **names;
|
|
||||||
uint32_t count;
|
|
||||||
uint32_t prchk_flags;
|
|
||||||
struct spdk_poller *poller;
|
|
||||||
struct spdk_nvme_transport_id trid;
|
|
||||||
struct spdk_nvme_ctrlr_opts opts;
|
|
||||||
spdk_bdev_create_nvme_fn cb_fn;
|
|
||||||
void *cb_ctx;
|
|
||||||
uint32_t populates_in_progress;
|
|
||||||
bool ctrlr_attached;
|
|
||||||
bool probe_done;
|
|
||||||
bool namespaces_populated;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct ocssd_io_channel;
|
struct ocssd_io_channel;
|
||||||
|
|
||||||
struct nvme_ctrlr_channel {
|
struct nvme_ctrlr_channel {
|
||||||
|
Loading…
Reference in New Issue
Block a user