Commit c0a54a76 authored by Daniel Verkamp's avatar Daniel Verkamp Committed by Jim Harris
Browse files

vhost: make dpdk_vid_mapping and g_need_iovecs static



They are not used outside of their respective files.

Change-Id: I754834e7354caec877cd2fe193e56854e5a34e20
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 4cdd929b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ typedef TAILQ_HEAD(, spdk_vhost_task) need_iovecs_tailq_t;
static struct rte_mempool *g_task_pool;
static struct rte_mempool *g_iov_buffer_pool;

need_iovecs_tailq_t g_need_iovecs[RTE_MAX_LCORE];
static need_iovecs_tailq_t g_need_iovecs[RTE_MAX_LCORE];

void
spdk_vhost_task_put(struct spdk_vhost_task *task)
+2 −1
Original line number Diff line number Diff line
@@ -98,7 +98,8 @@ struct spdk_vhost_scsi_ctrlr {
} __rte_cache_aligned;

/* This maps from the integer index passed by DPDK to the our controller representation. */
struct spdk_vhost_scsi_ctrlr *dpdk_vid_mapping[MAX_VHOST_DEVICE]; /* MAX_VHOST_DEVICE from DPDK. */
/* MAX_VHOST_DEVICE from DPDK. */
static struct spdk_vhost_scsi_ctrlr *dpdk_vid_mapping[MAX_VHOST_DEVICE];

/*
 * Get available requests from avail ring.