diff mbox series

[v2,2/2] net: Add vhost-vdpa in show_netdevs()

Message ID 20201016030909.9522-2-lulu@redhat.com
State Superseded
Headers show
Series [v2,1/2] vhost-vdpa: Add qemu_close in vhost_vdpa_cleanup | expand

Commit Message

Cindy Lu Oct. 16, 2020, 3:09 a.m. UTC
Fix the bug that while Check qemu supported netdev,
there is no vhost-vdpa

Signed-off-by: Cindy Lu <lulu@redhat.com>
---
 net/net.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Jason Wang Oct. 19, 2020, 7:52 a.m. UTC | #1
On 2020/10/16 上午11:09, Cindy Lu wrote:
> Fix the bug that while Check qemu supported netdev,

> there is no vhost-vdpa

>

> Signed-off-by: Cindy Lu <lulu@redhat.com>

> ---

>   net/net.c | 3 +++

>   1 file changed, 3 insertions(+)

>

> diff --git a/net/net.c b/net/net.c

> index 7a2a0fb5ac..794c652282 100644

> --- a/net/net.c

> +++ b/net/net.c

> @@ -1049,6 +1049,9 @@ static void show_netdevs(void)

>   #endif

>   #ifdef CONFIG_POSIX

>           "vhost-user",

> +#endif

> +#ifdef CONFIG_VHOST_VDPA

> +        "vhost-vdpa",

>   #endif

>       };



Acked-by: Jason Wang <jasowang@redhat.com>



>
diff mbox series

Patch

diff --git a/net/net.c b/net/net.c
index 7a2a0fb5ac..794c652282 100644
--- a/net/net.c
+++ b/net/net.c
@@ -1049,6 +1049,9 @@  static void show_netdevs(void)
 #endif
 #ifdef CONFIG_POSIX
         "vhost-user",
+#endif
+#ifdef CONFIG_VHOST_VDPA
+        "vhost-vdpa",
 #endif
     };