qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH V2] net: awlays walk through filters reversely i


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH V2] net: awlays walk through filters reversely if traffic is outgress
Date: Mon, 25 Jan 2016 20:55:09 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0

On 01/25/2016 08:46 PM, Li Zhijian wrote:

In the subject:

s/awlays/always/
s/reversely/in reverse/
s/outgress/egress/

> Previously, if we attach more than filters for one netdev, IN/OUT traffic pass
> through filters in the a same order.
> ingress: netdev ->filter1 ->filter2 ->...filter[n] ->emulated device
> outgress: emulated device ->filter1 ->filter2 ->...filter[n] ->netdev.

s/outgress/egress/

> 
> But some scenes, we hope filters handle the outgress traffic in a reverse 
> order.
> For example, in colo-proxy(will be implemented later), we have a redirector

space before ( in English

> filter and a colo-rewriter filter, we need the filter behavior like that:
> ingress(->)/outgress(<-): <->redirector <->colo-rewriter <->emulated device
> 
> After this changes, outgress traffic always pass through filters in a reverse
> order.
> 
> Signed-off-by: Wen Congyang <address@hidden>
> Signed-off-by: Li Zhijian <address@hidden>
> ---
>  include/net/net.h |  4 +++-
>  net/filter.c      | 21 +++++++++++++++++++--
>  net/net.c         | 20 +++++++++++++++-----
>  3 files changed, 37 insertions(+), 8 deletions(-)
> 


-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]