]> git.droids-corp.org - dpdk.git/blobdiff - examples/tep_termination/main.c
vhost: fix false-positive warning from clang 5
[dpdk.git] / examples / tep_termination / main.c
index 24c62cd612cf3521c49990052520259a0d3ae6e7..aee36c6e48be3a4a272e089a6cd5166be98c82ae 100644 (file)
@@ -49,7 +49,8 @@
 #include <rte_log.h>
 #include <rte_string_fns.h>
 #include <rte_malloc.h>
-#include <rte_virtio_net.h>
+#include <rte_vhost.h>
+#include <rte_pause.h>
 
 #include "main.h"
 #include "vxlan.h"
@@ -559,7 +560,7 @@ check_ports_num(unsigned max_nb_ports)
  * This function routes the TX packet to the correct interface. This may be a local device
  * or the physical port.
  */
-static inline void __attribute__((always_inline))
+static __rte_always_inline void
 virtio_tx_route(struct vhost_dev *vdev, struct rte_mbuf *m)
 {
        struct mbuf_table *tx_q;