rte_virtio: added virtio_dev.c/.h
virtio_ethdev.c -> virtio_dev.c virtio_ethdev.h -> virtio_dev.h These files provide generic interface for virtio_hw struct. i.e. device init, virtqueue alloc, device start/stop. Change-Id: I8ed11b7335a7fafd7a1470ab21bfc95db90ffd1b Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/376352 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
b9febadf38
commit
147ea6b213
@ -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
|
||||
C_SRCS += rte_virtio/virtio_ethdev.c rte_virtio/virtio_pci.c rte_virtio/virtio_rxtx.c
|
||||
C_SRCS += rte_virtio/virtio_dev.c rte_virtio/virtio_pci.c rte_virtio/virtio_rxtx.c
|
||||
C_SRCS += rte_virtio/virtio_user.c
|
||||
C_SRCS += rte_virtio/virtio_user/vhost_user.c rte_virtio/virtio_user/virtio_user_dev.c
|
||||
|
||||
|
@ -50,7 +50,7 @@
|
||||
|
||||
#include <linux/virtio_scsi.h>
|
||||
|
||||
#include <virtio_ethdev.h>
|
||||
#include <virtio_dev.h>
|
||||
#include <virtio_user/virtio_user_dev.h>
|
||||
|
||||
#include "spdk/scsi_spec.h"
|
||||
|
@ -53,7 +53,7 @@
|
||||
#include <rte_eal.h>
|
||||
#include <rte_dev.h>
|
||||
|
||||
#include "virtio_ethdev.h"
|
||||
#include "virtio_dev.h"
|
||||
#include "virtio_pci.h"
|
||||
#include "virtio_logs.h"
|
||||
#include "virtqueue.h"
|
@ -31,8 +31,8 @@
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef _VIRTIO_ETHDEV_H_
|
||||
#define _VIRTIO_ETHDEV_H_
|
||||
#ifndef _VIRTIO_DEV_H_
|
||||
#define _VIRTIO_DEV_H_
|
||||
|
||||
#include <stdint.h>
|
||||
#include <sys/uio.h>
|
||||
@ -72,4 +72,4 @@ struct virtio_hw *get_pci_virtio_hw(void);
|
||||
|
||||
void virtio_interrupt_handler(void *param);
|
||||
|
||||
#endif /* _VIRTIO_ETHDEV_H_ */
|
||||
#endif /* _VIRTIO_DEV_H_ */
|
@ -44,7 +44,7 @@
|
||||
#include <rte_prefetch.h>
|
||||
|
||||
#include "virtio_logs.h"
|
||||
#include "virtio_ethdev.h"
|
||||
#include "virtio_dev.h"
|
||||
#include "virtio_pci.h"
|
||||
#include "virtqueue.h"
|
||||
|
||||
|
@ -44,7 +44,7 @@
|
||||
#include <rte_vdev.h>
|
||||
#include <rte_alarm.h>
|
||||
|
||||
#include "virtio_ethdev.h"
|
||||
#include "virtio_dev.h"
|
||||
#include "virtio_logs.h"
|
||||
#include "virtio_pci.h"
|
||||
#include "virtqueue.h"
|
||||
|
@ -45,7 +45,7 @@
|
||||
|
||||
#include "vhost.h"
|
||||
#include "virtio_user_dev.h"
|
||||
#include "../virtio_ethdev.h"
|
||||
#include "../virtio_dev.h"
|
||||
|
||||
static int
|
||||
virtio_user_create_queue(struct virtio_user_dev *dev, uint32_t queue_sel)
|
||||
|
Loading…
Reference in New Issue
Block a user