lib/nvmf: introduce function to get transport name
Signed-off-by: Jacek Kalwas <jacek.kalwas@intel.com> Change-Id: Ide89666bfd856d42ca5cb535e8a29716f787ea3f Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/481953 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Seth Howell <seth.howell@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
7a35a678b8
commit
0651753ce8
@ -1064,6 +1064,15 @@ const struct spdk_nvmf_transport_opts *spdk_nvmf_get_transport_opts(struct spdk_
|
||||
*/
|
||||
spdk_nvme_transport_type_t spdk_nvmf_get_transport_type(struct spdk_nvmf_transport *transport);
|
||||
|
||||
/**
|
||||
* Get the transport name for a given transport.
|
||||
*
|
||||
* \param transport The transport to query
|
||||
*
|
||||
* \return the transport name for the given transport
|
||||
*/
|
||||
const char *spdk_nvmf_get_transport_name(struct spdk_nvmf_transport *transport);
|
||||
|
||||
/**
|
||||
* Function to be called once transport add is complete
|
||||
*
|
||||
|
@ -99,6 +99,12 @@ spdk_nvmf_get_transport_type(struct spdk_nvmf_transport *transport)
|
||||
return transport->ops->type;
|
||||
}
|
||||
|
||||
const char *
|
||||
spdk_nvmf_get_transport_name(struct spdk_nvmf_transport *transport)
|
||||
{
|
||||
return transport->ops->name;
|
||||
}
|
||||
|
||||
struct spdk_nvmf_transport *
|
||||
spdk_nvmf_transport_create(const char *transport_name, struct spdk_nvmf_transport_opts *opts)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user