qemu-patch-raspberry4/include/net
Li Zhijian 25aaadf063 net: always walk through filters in reverse if traffic is egress
Previously, if we attach more than one filters for a single netdev,
both ingress and egress traffic will go through net filters in same
order like:

ingress: netdev ->filter1 ->filter2 ->...filter[n] ->emulated device
egress: emulated device ->filter1 ->filter2 ->...filter[n] ->netdev.

This is against the natural feeling and will complicate filters
configuration since in some scenes, we hope filters handle the egress
traffic in a reverse order. For example, in colo-proxy (will be
implemented later), we have a redirector filter and a colo-rewriter
filter, we need the filter behave like:

ingress(->)/egress(<-): chardev<->redirector<->colo-rewriter<->emulated device

Since both buffer filter and dump do not require strict order of
filters, this patch switches to always let egress traffic walk through
net filters in reverse to simplify the possible filters configuration
in the future.

Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
Reviewed-by: Yang Hongyang <hongyang.yang@easystack.cn>
Signed-off-by: Jason Wang <jasowang@redhat.com>
2016-02-04 14:13:11 +08:00
..
checksum.h net: declare struct iovec in checksum.h to fix compiler warning 2014-02-15 16:10:25 +04:00
eth.h ether/slirp: Avoid redefinition of the same constants 2016-01-11 11:01:35 +08:00
filter.h netfilter: print filter info associate with the netdev 2015-10-12 13:30:56 +08:00
net.h net: always walk through filters in reverse if traffic is egress 2016-02-04 14:13:11 +08:00
queue.h net/queue: export qemu_net_queue_append_iov 2015-10-12 13:31:18 +08:00
slirp.h hmp: Name HMP info handler functions hmp_info_SUBCOMMAND() 2015-02-18 11:58:50 +01:00
tap.h virtio-net,tap: use standard-headers 2015-02-26 13:04:04 +01:00
vhost-user.h Add new vhost-user netdev backend 2014-06-19 16:41:57 +03:00
vhost_net.h vhost user: add rarp sending after live migration for legacy guest 2015-10-22 14:34:49 +03:00