nvmf: remove unused port type field and enum
The type is already stored in the fabric_intf. Change-Id: Icd33dd29f2fa1313329b4053892693c7ff90945d Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
2653cb49a7
commit
70e26ebd6f
@ -126,7 +126,6 @@ spdk_nvmf_port_create(int tag)
|
|||||||
|
|
||||||
port->state = GROUP_INIT;
|
port->state = GROUP_INIT;
|
||||||
port->tag = tag;
|
port->tag = tag;
|
||||||
port->type = FABRIC_RDMA;
|
|
||||||
port->tsas.rdma.rdma_qptype = SPDK_NVMF_QP_TYPE_RELIABLE_CONNECTED;
|
port->tsas.rdma.rdma_qptype = SPDK_NVMF_QP_TYPE_RELIABLE_CONNECTED;
|
||||||
/* No provider specified */
|
/* No provider specified */
|
||||||
port->tsas.rdma.rdma_prtype = SPDK_NVMF_RDMA_NO_PROVIDER;
|
port->tsas.rdma.rdma_prtype = SPDK_NVMF_RDMA_NO_PROVIDER;
|
||||||
|
@ -50,12 +50,6 @@
|
|||||||
* ports for the group of aggregated links constitute a single NVM subsystem port.
|
* ports for the group of aggregated links constitute a single NVM subsystem port.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
enum fabric_type {
|
|
||||||
FABRIC_RDMA = 0x1,
|
|
||||||
FABRIC_PCI = 0x2,
|
|
||||||
FABRIC_ETHERNET = 0x3,
|
|
||||||
};
|
|
||||||
|
|
||||||
enum group_state {
|
enum group_state {
|
||||||
GROUP_INIT = 0x0,
|
GROUP_INIT = 0x0,
|
||||||
GROUP_READY = 0x1,
|
GROUP_READY = 0x1,
|
||||||
@ -76,7 +70,6 @@ struct spdk_nvmf_fabric_intf {
|
|||||||
struct spdk_nvmf_port {
|
struct spdk_nvmf_port {
|
||||||
int tag;
|
int tag;
|
||||||
enum group_state state;
|
enum group_state state;
|
||||||
enum fabric_type type;
|
|
||||||
union spdk_nvmf_transport_specific_address tsas;
|
union spdk_nvmf_transport_specific_address tsas;
|
||||||
TAILQ_HEAD(, spdk_nvmf_fabric_intf) head;
|
TAILQ_HEAD(, spdk_nvmf_fabric_intf) head;
|
||||||
TAILQ_ENTRY(spdk_nvmf_port) tailq;
|
TAILQ_ENTRY(spdk_nvmf_port) tailq;
|
||||||
|
Loading…
Reference in New Issue
Block a user