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: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Daniel Verkamp 2017-03-06 13:27:24 -07:00 committed by Jim Harris
parent 4cdd929b66
commit c0a54a7606
2 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -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.