Commit de7760df authored by Dariusz Stojaczyk's avatar Dariusz Stojaczyk Committed by Daniel Verkamp
Browse files

virtio: remove SCSI-specific Virtio features from the library code



We can now proudly say that rte_virtio
doesn't contain SCSI references anymore.

Change-Id: Id814de255d8715af03c68a237923432f1e4fe2e1
Signed-off-by: default avatarDariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/392628


Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
parent 534d9c20
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -153,6 +153,10 @@ struct bdev_virtio_io_channel {
/** Module finish in progress */
static bool g_bdev_virtio_finish = false;

/* Features desired/implemented by this driver. */
#define VIRTIO_SCSI_DEV_SUPPORTED_FEATURES		\
	(1ULL << VIRTIO_SCSI_F_INOUT)

static void virtio_scsi_dev_unregister_cb(void *io_device);
static void virtio_scsi_dev_remove(struct virtio_scsi_dev *svdev);
static int bdev_virtio_scsi_ch_create_cb(void *io_device, void *ctx_buf);
+2 −0
Original line number Diff line number Diff line
@@ -334,6 +334,8 @@ virtio_dev_restart(struct virtio_dev *dev, uint64_t req_features)
{
	int ret;

	req_features |= (1ULL << VIRTIO_F_VERSION_1);

	/* Reset the device although not necessary at startup */
	virtio_dev_stop(dev);

+2 −6
Original line number Diff line number Diff line
@@ -191,11 +191,6 @@ struct virtio_pci_ctx;
 */
typedef int (*virtio_pci_create_cb)(struct virtio_pci_ctx *pci_ctx);

/* Features desired/implemented by this driver. */
#define VIRTIO_SCSI_DEV_SUPPORTED_FEATURES		\
	(1ULL << VIRTIO_SCSI_F_INOUT		|	\
	 1ULL << VIRTIO_F_VERSION_1)

uint16_t virtio_recv_pkts(struct virtqueue *vq, void **io, uint32_t *len, uint16_t io_cnt);

/**
@@ -266,7 +261,8 @@ int virtio_dev_construct(struct virtio_dev *vdev, const struct virtio_dev_ops *o
 * This call will also allocate virtqueues and renegotiate feature flags.
 *
 * \param vdev virtio device
 * \param req_features features this driver supports
 * \param req_features features this driver supports. A VIRTIO_F_VERSION_1
 * flag will be automatically appended, as legacy devices are not supported.
 */
int virtio_dev_restart(struct virtio_dev *vdev, uint64_t req_features);