nvmf: make spdk_nvmf_ctrlr_ops contents private
This structure is not part of the public API and shouldn't be in spdk/nvmf.h. Change-Id: I29fbb269d3ab77cd9fa9908726abc7c7a4c6d8c1 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/363296 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
7d42767817
commit
81344a66ef
@ -62,6 +62,7 @@ struct spdk_bdev;
|
||||
struct spdk_nvme_ctrlr;
|
||||
struct spdk_nvmf_request;
|
||||
struct spdk_nvmf_conn;
|
||||
struct spdk_nvmf_ctrlr_ops;
|
||||
|
||||
typedef void (*spdk_nvmf_subsystem_connect_fn)(void *cb_ctx, struct spdk_nvmf_request *req);
|
||||
typedef void (*spdk_nvmf_subsystem_disconnect_fn)(void *cb_ctx, struct spdk_nvmf_conn *conn);
|
||||
@ -83,38 +84,6 @@ struct spdk_nvmf_host {
|
||||
TAILQ_ENTRY(spdk_nvmf_host) link;
|
||||
};
|
||||
|
||||
struct spdk_nvmf_ctrlr_ops {
|
||||
/**
|
||||
* Initialize the controller.
|
||||
*/
|
||||
int (*attach)(struct spdk_nvmf_subsystem *subsystem);
|
||||
|
||||
/**
|
||||
* Get NVMe identify controller data.
|
||||
*/
|
||||
void (*ctrlr_get_data)(struct spdk_nvmf_session *session);
|
||||
|
||||
/**
|
||||
* Process admin command.
|
||||
*/
|
||||
int (*process_admin_cmd)(struct spdk_nvmf_request *req);
|
||||
|
||||
/**
|
||||
* Process IO command.
|
||||
*/
|
||||
int (*process_io_cmd)(struct spdk_nvmf_request *req);
|
||||
|
||||
/**
|
||||
* Poll for completions.
|
||||
*/
|
||||
void (*poll_for_completions)(struct spdk_nvmf_subsystem *subsystem);
|
||||
|
||||
/**
|
||||
* Detach the controller.
|
||||
*/
|
||||
void (*detach)(struct spdk_nvmf_subsystem *subsystem);
|
||||
};
|
||||
|
||||
struct spdk_nvmf_subsystem_allowed_listener {
|
||||
struct spdk_nvmf_listen_addr *listen_addr;
|
||||
TAILQ_ENTRY(spdk_nvmf_subsystem_allowed_listener) link;
|
||||
|
@ -36,6 +36,7 @@
|
||||
|
||||
#include "spdk/stdinc.h"
|
||||
|
||||
#include "spdk/nvmf.h"
|
||||
#include "spdk/nvmf_spec.h"
|
||||
#include "spdk/assert.h"
|
||||
#include "spdk/queue.h"
|
||||
@ -43,6 +44,38 @@
|
||||
|
||||
#define SPDK_NVMF_DEFAULT_NUM_SESSIONS_PER_LCORE 1
|
||||
|
||||
struct spdk_nvmf_ctrlr_ops {
|
||||
/**
|
||||
* Initialize the controller.
|
||||
*/
|
||||
int (*attach)(struct spdk_nvmf_subsystem *subsystem);
|
||||
|
||||
/**
|
||||
* Get NVMe identify controller data.
|
||||
*/
|
||||
void (*ctrlr_get_data)(struct spdk_nvmf_session *session);
|
||||
|
||||
/**
|
||||
* Process admin command.
|
||||
*/
|
||||
int (*process_admin_cmd)(struct spdk_nvmf_request *req);
|
||||
|
||||
/**
|
||||
* Process IO command.
|
||||
*/
|
||||
int (*process_io_cmd)(struct spdk_nvmf_request *req);
|
||||
|
||||
/**
|
||||
* Poll for completions.
|
||||
*/
|
||||
void (*poll_for_completions)(struct spdk_nvmf_subsystem *subsystem);
|
||||
|
||||
/**
|
||||
* Detach the controller.
|
||||
*/
|
||||
void (*detach)(struct spdk_nvmf_subsystem *subsystem);
|
||||
};
|
||||
|
||||
struct spdk_nvmf_tgt {
|
||||
uint16_t max_queue_depth;
|
||||
uint16_t max_queues_per_session;
|
||||
|
Loading…
Reference in New Issue
Block a user