Skip to content

Commit f4554ba

Browse files
hreineckeigaw
authored andcommitted
libnvme: drop 'struct nvmf_discovery_ctx'
Unused. Signed-off-by: Hannes Reinecke <[email protected]>
1 parent caaeaeb commit f4554ba

1 file changed

Lines changed: 0 additions & 45 deletions

File tree

libnvme/src/nvme/private.h

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -306,51 +306,6 @@ struct nvme_global_ctx {
306306
#endif
307307
};
308308

309-
struct nvmf_discovery_ctx {
310-
/* defaults */
311-
int default_max_discovery_retries;
312-
int default_keep_alive_timeout;
313-
314-
void (*discovery_log)(struct nvmf_discovery_ctx *dctx,
315-
bool connect,
316-
struct nvmf_discovery_log *log,
317-
uint64_t numrec, void *user_data);
318-
void (*already_connected)(struct nvme_host *host,
319-
struct nvmf_disc_log_entry *entry,
320-
void *user_data);
321-
bool (*decide_retry)(struct nvmf_discovery_ctx *dctx, int err,
322-
void *user_data);
323-
void (*connected)(struct nvmf_discovery_ctx *dctx, struct nvme_ctrl *c,
324-
void *user_data);
325-
int (*parser_init)(struct nvmf_discovery_ctx *dctx,
326-
void *user_data);
327-
void (*parser_cleanup)(struct nvmf_discovery_ctx *dctx,
328-
void *user_data);
329-
int (*parser_next_line)(struct nvmf_discovery_ctx *dctx,
330-
void *user_data);
331-
332-
/* connfiguration */
333-
bool persistent;
334-
const char *device;
335-
const char *subsysnqn;
336-
const char *transport;
337-
const char *traddr;
338-
const char *host_traddr;
339-
const char *host_iface;
340-
const char *trsvcid;
341-
const char *hostnqn;
342-
const char *hostid;
343-
const char *hostkey;
344-
const char *ctrlkey;
345-
const char *keyring;
346-
const char *tls_key;
347-
const char *tls_key_identity;
348-
struct nvme_fabrics_config *cfg;
349-
struct nvme_fabrics_config *defcfg;
350-
351-
void *user_data;
352-
};
353-
354309
struct nvmf_context {
355310
/* common callbacks */
356311
bool (*decide_retry)(struct nvmf_context *fctx, int err,

0 commit comments

Comments
 (0)