mk: fix vhost shared library dependencies
[dpdk.git] / lib / librte_vhost / rte_virtio_net.h
index 4a2303a..443245d 100644 (file)
@@ -49,6 +49,7 @@
 
 #include <rte_memory.h>
 #include <rte_mempool.h>
+#include <rte_ether.h>
 
 struct rte_mbuf;
 
@@ -96,6 +97,11 @@ struct vhost_virtqueue {
        struct buf_vector       buf_vec[BUF_VECTOR_MAX];        /**< for scatter RX. */
 } __rte_cache_aligned;
 
+/* Old kernels have no such macro defined */
+#ifndef VIRTIO_NET_F_GUEST_ANNOUNCE
+ #define VIRTIO_NET_F_GUEST_ANNOUNCE 21
+#endif
+
 
 /*
  * Make an extra wrapper for VIRTIO_NET_F_MQ and
@@ -133,7 +139,9 @@ struct virtio_net {
        void                    *priv;          /**< private context */
        uint64_t                log_size;       /**< Size of log area */
        uint64_t                log_base;       /**< Where dirty pages are logged */
-       uint64_t                reserved[62];   /**< Reserve some spaces for future extension. */
+       struct ether_addr       mac;            /**< MAC address */
+       rte_atomic16_t          broadcast_rarp; /**< A flag to tell if we need broadcast rarp packet */
+       uint64_t                reserved[61];   /**< Reserve some spaces for future extension. */
        struct vhost_virtqueue  *virtqueue[VHOST_MAX_QUEUE_PAIRS * 2];  /**< Contains all virtqueue information. */
 } __rte_cache_aligned;