All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: Li Zhijian <lizhijian@cn.fujitsu.com>,
	qemu-devel@nongnu.org, jasowang@redhat.com
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	[thread overview]
Message-ID: <56A6EE1D.8070105@redhat.com> (raw)
In-Reply-To: <1453779972-22538-1-git-send-email-lizhijian@cn.fujitsu.com>

[-- Attachment #1: Type: text/plain, Size: 1291 bytes --]

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 <wency@cn.fujitsu.com>
> Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
> ---
>  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 #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

  reply	other threads:[~2016-01-26  3:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-26  3:46 [Qemu-devel] [PATCH V2] net: awlays walk through filters reversely if traffic is outgress Li Zhijian
2016-01-26  3:55 ` Eric Blake [this message]
2016-01-26  4:01 ` Yang Hongyang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56A6EE1D.8070105@redhat.com \
    --to=eblake@redhat.com \
    --cc=jasowang@redhat.com \
    --cc=lizhijian@cn.fujitsu.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.