]> git.droids-corp.org - dpdk.git/commitdiff
vhost: drop the Rx and Tx queue macro
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Sat, 1 Apr 2017 07:22:50 +0000 (15:22 +0800)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Sat, 1 Apr 2017 08:42:44 +0000 (10:42 +0200)
They are virtio-net specific and should be defined inside the virtio-net
driver.

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
doc/guides/rel_notes/release_17_05.rst
drivers/net/vhost/rte_eth_vhost.c
examples/tep_termination/main.h
examples/vhost/main.h
lib/librte_vhost/rte_virtio_net.h
lib/librte_vhost/vhost_user.c

index fa305476c7aa6469377d9dd5f7c74f6cb314aba8..4759ce8358a2a2cc9fcd8f9032e5b9f82c13558d 100644 (file)
@@ -299,6 +299,12 @@ API Changes
   * The vhost API ``rte_vhost_get_queue_num`` is deprecated, instead,
     ``rte_vhost_get_vring_num`` should be used.
 
+  * Following macros are removed in ``rte_virtio_net.h``
+
+    * ``VIRTIO_RXQ``
+    * ``VIRTIO_TXQ``
+    * ``VIRTIO_QNUM``
+
 
 ABI Changes
 -----------
index 5feb79cc5f85b17a3461c0f49a7a10100d56bf16..b355c526fa16f47b85a541e0ebca2c097320c85c 100644 (file)
@@ -45,6 +45,8 @@
 
 #include "rte_eth_vhost.h"
 
+enum {VIRTIO_RXQ, VIRTIO_TXQ, VIRTIO_QNUM};
+
 #define ETH_VHOST_IFACE_ARG            "iface"
 #define ETH_VHOST_QUEUES_ARG           "queues"
 #define ETH_VHOST_CLIENT_ARG           "client"
index c0ea766764686089dbdb172cfc82b2a7d12cd01f..8ed817d46499f559b214636f8bd80c28a251cc72 100644 (file)
@@ -54,6 +54,8 @@
 /* Max number of devices. Limited by the application. */
 #define MAX_DEVICES 64
 
+enum {VIRTIO_RXQ, VIRTIO_TXQ, VIRTIO_QNUM};
+
 /* Per-device statistics struct */
 struct device_statistics {
        uint64_t tx_total;
index 6bb42e8990c3849d72600686dcf1cd19fd3caffb..7a3d251fc38565898caa797008f2a4403f7d0c2c 100644 (file)
@@ -41,6 +41,8 @@
 #define RTE_LOGTYPE_VHOST_DATA   RTE_LOGTYPE_USER2
 #define RTE_LOGTYPE_VHOST_PORT   RTE_LOGTYPE_USER3
 
+enum {VIRTIO_RXQ, VIRTIO_TXQ, VIRTIO_QNUM};
+
 struct device_statistics {
        uint64_t        tx;
        uint64_t        tx_total;
index 52915b33c59c07958dca4c8c8beab244ae8c68d6..6e07de9f0626d81f0c62d2f4e83d4e336165a8d3 100644 (file)
@@ -55,9 +55,6 @@
 #define RTE_VHOST_USER_NO_RECONNECT    (1ULL << 1)
 #define RTE_VHOST_USER_DEQUEUE_ZERO_COPY       (1ULL << 2)
 
-/* Enum for virtqueue management. */
-enum {VIRTIO_RXQ, VIRTIO_TXQ, VIRTIO_QNUM};
-
 /**
  * Information relating to memory regions including offsets to
  * addresses in QEMUs memory file.
index 9140f60954d463b3e42313db3298e427a4616a13..604d95da9a468dd214f49225b36b8ab5bd19a0dc 100644 (file)
@@ -233,6 +233,8 @@ numa_realloc(struct virtio_net *dev, int index)
        struct vhost_virtqueue *old_vq, *vq;
        int ret;
 
+       enum {VIRTIO_RXQ, VIRTIO_TXQ, VIRTIO_QNUM};
+
        old_dev = dev;
        vq = old_vq = dev->virtqueue[index];