mirror_qemu/net
zhanghailiang f1b2bc601a filter-buffer: Add status_changed callback processing
While the status of filter-buffer changing from 'on' to 'off',
it need to release all the buffered packets, and delete the related
timer, while switch from 'off' to 'on', it need to resume the release
packets timer.

Here, we extract the process of setup timer into a new helper,
which will be used in the new status_changed callback.

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Cc: Jason Wang <jasowang@redhat.com>
Cc: Yang Hongyang <hongyang.yang@easystack.cn>
Signed-off-by: Jason Wang <jasowang@redhat.com>
2016-03-08 15:34:18 +08:00
..
Makefile.objs netfilter: add a netbuffer filter 2015-10-12 13:31:28 +08:00
checksum.c net: Clean up includes 2016-02-04 17:41:30 +00:00
clients.h net: Permit incremental conversion of init functions to Error 2015-05-27 09:51:04 +01:00
dump.c qom: Swap 'name' next to visitor in ObjectPropertyAccessor 2016-02-08 17:29:56 +01:00
eth.c net: Clean up includes 2016-02-04 17:41:30 +00:00
filter-buffer.c filter-buffer: Add status_changed callback processing 2016-03-08 15:34:18 +08:00
filter.c filter: Add 'status' property for filter object 2016-03-08 15:34:18 +08:00
hub.c net: Clean up includes 2016-02-04 17:41:30 +00:00
hub.h net: fix qemu_flush_queued_packets() in presence of a hub 2013-02-27 16:10:23 +01:00
l2tpv3.c net: Clean up includes 2016-02-04 17:41:30 +00:00
net.c qapi-dealloc: Reduce use outside of generated code 2016-03-04 17:16:32 +01:00
netmap.c net: netmap: probe netmap interface for virtio-net header 2016-03-08 15:34:18 +08:00
queue.c net: Clean up includes 2016-02-04 17:41:30 +00:00
slirp.c net: Clean up includes 2016-02-04 17:41:30 +00:00
socket.c net: Clean up includes 2016-02-04 17:41:30 +00:00
tap-aix.c net: Clean up includes 2016-02-04 17:41:30 +00:00
tap-bsd.c net: Clean up includes 2016-02-04 17:41:30 +00:00
tap-haiku.c net: Clean up includes 2016-02-04 17:41:30 +00:00
tap-linux.c net: Clean up includes 2016-02-04 17:41:30 +00:00
tap-linux.h all: Clean up includes 2016-02-23 12:43:05 +00:00
tap-solaris.c net: Clean up includes 2016-02-04 17:41:30 +00:00
tap-win32.c net: Clean up includes 2016-02-04 17:41:30 +00:00
tap.c net: simplify net_init_tap_one logic 2016-03-08 15:34:09 +08:00
tap_int.h tap: add VNET_LE/VNET_BE operations 2015-06-17 17:12:54 +02:00
util.c net: Clean up includes 2016-02-04 17:41:30 +00:00
util.h all: Clean up includes 2016-02-23 12:43:05 +00:00
vde.c net: Clean up includes 2016-02-04 17:41:30 +00:00
vhost-user.c net: Clean up includes 2016-02-04 17:41:30 +00:00