mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
Allow devices be notified of link status change (Mark McLoughlin)
Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6248 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
436e5e53c9
commit
34b25ca74e
2 changed files with 6 additions and 0 deletions
3
net.c
3
net.c
|
@ -1718,6 +1718,9 @@ int do_set_link(const char *name, const char *up_or_down)
|
|||
term_printf("invalid link status '%s'; only 'up' or 'down' valid\n",
|
||||
up_or_down);
|
||||
|
||||
if (vc->link_status_changed)
|
||||
vc->link_status_changed(vc);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue