From 70e26ebd6fdf7bced0913deb0a63101868bcca8f Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Fri, 15 Jul 2016 09:43:18 -0700 Subject: [PATCH] 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 --- lib/nvmf/port.c | 1 - lib/nvmf/port.h | 7 ------- 2 files changed, 8 deletions(-) diff --git a/lib/nvmf/port.c b/lib/nvmf/port.c index e0bf42eab..18e30fba5 100644 --- a/lib/nvmf/port.c +++ b/lib/nvmf/port.c @@ -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; diff --git a/lib/nvmf/port.h b/lib/nvmf/port.h index c5a038d4b..fc6ec2069 100644 --- a/lib/nvmf/port.h +++ b/lib/nvmf/port.h @@ -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;