[v2] vhost: fix add a missing include

Message ID 1561009481-304553-1-git-send-email-noae@mellanox.com (mailing list archive)
State Accepted, archived
Delegated to: Maxime Coquelin
Headers
Series [v2] vhost: fix add a missing include |

Checks

Context Check Description
ci/intel-Performance-Testing success Performance Testing PASS
ci/mellanox-Performance-Testing success Performance Testing PASS
ci/Intel-compilation fail Compilation issues
ci/checkpatch success coding style OK

Commit Message

Noa Ezra June 20, 2019, 5:44 a.m. UTC
  Add a missing include with the defines for vhost-user driver features.

Fixes: 5fbb3941da9f ("vhost: introduce driver features related APIs")
Cc: stable@dpdk.org

Signed-off-by: Noa Ezra <noae@mellanox.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Matan Azrad <matan@mellanox.com>
---
v2 remove checkpatch warnings
---
 lib/librte_vhost/rte_vhost.h | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Maxime Coquelin June 20, 2019, 9:57 a.m. UTC | #1
On 6/20/19 7:44 AM, Noa Ezra wrote:
> Add a missing include with the defines for vhost-user driver features.
> 
> Fixes: 5fbb3941da9f ("vhost: introduce driver features related APIs")
> Cc:stable@dpdk.org
> 
> Signed-off-by: Noa Ezra<noae@mellanox.com>
> Reviewed-by: Maxime Coquelin<maxime.coquelin@redhat.com>
> Reviewed-by: Matan Azrad<matan@mellanox.com>
> ---
> v2 remove checkpatch warnings
> ---
>   lib/librte_vhost/rte_vhost.h | 1 +
>   1 file changed, 1 insertion(+)

Applied to dpdk-next-virtio/master.

Thanks,
Maxime
  

Patch

diff --git a/lib/librte_vhost/rte_vhost.h b/lib/librte_vhost/rte_vhost.h
index 0226b3e..338e47c 100644
--- a/lib/librte_vhost/rte_vhost.h
+++ b/lib/librte_vhost/rte_vhost.h
@@ -23,6 +23,7 @@ 
 /* These are not C++-aware. */
 #include <linux/vhost.h>
 #include <linux/virtio_ring.h>
+#include <linux/virtio_net.h>
 
 #define RTE_VHOST_USER_CLIENT		(1ULL << 0)
 #define RTE_VHOST_USER_NO_RECONNECT	(1ULL << 1)