Commit 70e26ebd authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

nvmf: remove unused port type field and enum



The type is already stored in the fabric_intf.

Change-Id: Icd33dd29f2fa1313329b4053892693c7ff90945d
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 2653cb49
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -126,7 +126,6 @@ spdk_nvmf_port_create(int tag)

	port->state = GROUP_INIT;
	port->tag = tag;
	port->type = FABRIC_RDMA;
	port->tsas.rdma.rdma_qptype = SPDK_NVMF_QP_TYPE_RELIABLE_CONNECTED;
	/* No provider specified */
	port->tsas.rdma.rdma_prtype = SPDK_NVMF_RDMA_NO_PROVIDER;
+0 −7
Original line number Diff line number Diff line
@@ -50,12 +50,6 @@
* 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 {
	GROUP_INIT = 0x0,
	GROUP_READY = 0x1,
@@ -76,7 +70,6 @@ struct spdk_nvmf_fabric_intf {
struct spdk_nvmf_port {
	int tag;
	enum group_state state;
	enum fabric_type type;
	union spdk_nvmf_transport_specific_address	tsas;
	TAILQ_HEAD(, spdk_nvmf_fabric_intf)	head;
	TAILQ_ENTRY(spdk_nvmf_port)		tailq;