]> git.ipfire.org Git - thirdparty/qemu.git/commit
net/announce: Allow optional list of interfaces
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 20 Jun 2019 18:47:02 +0000 (19:47 +0100)
committerJason Wang <jasowang@redhat.com>
Tue, 2 Jul 2019 02:21:06 +0000 (10:21 +0800)
commitef2fdbfb4d1e492d8e94aa1a92c7a40a3f96c2ac
tree1c28a18e0b3df2e438a96e9b705d086acbf0ce49
parent4623027d866d56677b70449837accf07df693f4d
net/announce: Allow optional list of interfaces

Allow the caller to restrict the set of interfaces that announces are
sent on.  The default is still to send on all interfaces.

e.g.

  { "execute": "announce-self", "arguments": { "initial": 50, "max": 550, "rounds": 5, "step": 50, "interfaces": ["vn2", "vn1"] } }

This doesn't affect the behaviour of migraiton announcments.

Note: There's still only one timer for the qmp command, so that
performing an 'announce-self' on one list of interfaces followed
by another 'announce-self' on another list will stop the announces
on the existing set.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
include/net/announce.h
net/announce.c
net/trace-events
qapi/net.json