]> Git Repo - qemu.git/commit
net: do not exit on "netdev_add help" monitor command
authorPaolo Bonzini <[email protected]>
Wed, 11 Nov 2020 10:52:22 +0000 (05:52 -0500)
committerJason Wang <[email protected]>
Tue, 24 Nov 2020 02:40:17 +0000 (10:40 +0800)
commitad6f932fe8d1fc7f37ec17c7520aec68d3ee3706
treebcc38a02aad021c16fa50df9d448683a3e0d44f6
parentc2cb511634012344e3d0fe49a037a33b12d8a98a
net: do not exit on "netdev_add help" monitor command

"netdev_add help" is causing QEMU to exit because the code that
invokes show_netdevs is shared between CLI and HMP processing.
Move the check to the callers so that exit(0) remains only
in the CLI flow.

"netdev_add help" is not fixed by this patch; that is left for
later work.

Signed-off-by: Paolo Bonzini <[email protected]>
Signed-off-by: Jason Wang <[email protected]>
include/net/net.h
monitor/hmp-cmds.c
net/net.c
This page took 0.021217 seconds and 4 git commands to generate.