rte_virtio: renamed virtio_dev.h to virtio.h
This is a single header file that provides access to all virtio initiator capabilities. This is a preparation to exporting rte_virtio as a separate spdk lib. Also renamed virtio_dev.c. Change-Id: If45a0cadc61943b6ffd87cf70a59321a83b238a6 Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/385624 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
9daed64edb
commit
d42de5c864
@ -38,7 +38,7 @@ CFLAGS += $(ENV_CFLAGS) -I$(SPDK_ROOT_DIR)/lib/bdev/ -Irte_virtio
|
||||
CFLAGS += -I$(SPDK_ROOT_DIR)/lib/vhost/linux
|
||||
|
||||
C_SRCS = bdev_virtio.c bdev_virtio_rpc.c
|
||||
C_SRCS += rte_virtio/virtio_dev.c rte_virtio/virtio_pci.c
|
||||
C_SRCS += rte_virtio/virtio.c rte_virtio/virtio_pci.c
|
||||
C_SRCS += rte_virtio/virtio_user.c
|
||||
C_SRCS += rte_virtio/virtio_user/vhost_user.c
|
||||
|
||||
|
@ -48,8 +48,7 @@
|
||||
|
||||
#include <linux/virtio_scsi.h>
|
||||
|
||||
#include <virtio_dev.h>
|
||||
|
||||
#include "rte_virtio/virtio.h"
|
||||
#include "bdev_virtio.h"
|
||||
|
||||
#define BDEV_VIRTIO_MAX_TARGET 64
|
||||
|
@ -55,7 +55,7 @@
|
||||
|
||||
#include "spdk/env.h"
|
||||
|
||||
#include "virtio_dev.h"
|
||||
#include "virtio.h"
|
||||
|
||||
struct virtio_driver g_virtio_driver = {
|
||||
.init_ctrlrs = TAILQ_HEAD_INITIALIZER(g_virtio_driver.init_ctrlrs),
|
@ -31,8 +31,8 @@
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef _VIRTIO_DEV_H_
|
||||
#define _VIRTIO_DEV_H_
|
||||
#ifndef SPDK_VIRTIO_H
|
||||
#define SPDK_VIRTIO_H
|
||||
|
||||
#include "spdk/stdinc.h"
|
||||
|
||||
@ -457,4 +457,4 @@ struct virtio_dev *virtio_user_dev_init(const char *name, const char *path,
|
||||
|
||||
extern const struct virtio_pci_ops virtio_user_ops;
|
||||
|
||||
#endif /* _VIRTIO_DEV_H_ */
|
||||
#endif /* SPDK_VIRTIO_H */
|
@ -39,7 +39,7 @@
|
||||
#include "spdk/string.h"
|
||||
#include "spdk/env.h"
|
||||
|
||||
#include "virtio_dev.h"
|
||||
#include "virtio.h"
|
||||
|
||||
struct virtio_hw {
|
||||
uint8_t use_msix;
|
||||
|
@ -41,8 +41,8 @@
|
||||
#include <rte_malloc.h>
|
||||
#include <rte_alarm.h>
|
||||
|
||||
#include "virtio_dev.h"
|
||||
#include "virtio_user/vhost.h"
|
||||
#include "virtio.h"
|
||||
|
||||
#include "spdk/string.h"
|
||||
|
||||
|
@ -40,7 +40,7 @@
|
||||
|
||||
#include "spdk_internal/log.h"
|
||||
|
||||
#include "../virtio_dev.h"
|
||||
#include "../virtio.h"
|
||||
|
||||
#define VIRTIO_MAX_VIRTQUEUES 0x100
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user