net/announce: Add optional ID
Previously there was a single instance of the timer used by monitor triggered announces, that's OK, but when combined with the previous change that lets you have announces for subsets of interfaces it's a bit restrictive if you want to do different things to different interfaces. Add an 'id' field to the announce, and maintain a list of the timers based on id. This allows you to for example: a) Start an announce going on interface eth0 for a long time b) Start an announce going on interface eth1 for a long time c) Kill the announce on eth0 while leaving eth1 going. Signed-off-by:Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by:
Jason Wang <jasowang@redhat.com>
Showing
- hw/net/virtio-net.c 2 additions, 2 deletionshw/net/virtio-net.c
- include/net/announce.h 6 additions, 2 deletionsinclude/net/announce.h
- net/announce.c 45 additions, 7 deletionsnet/announce.c
- net/trace-events 2 additions, 1 deletionnet/trace-events
- qapi/net.json 7 additions, 2 deletionsqapi/net.json
Loading
Please register or sign in to comment