From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60511) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNuio-0006c6-Nu for qemu-devel@nongnu.org; Mon, 25 Jan 2016 22:55:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aNuil-0004TH-HU for qemu-devel@nongnu.org; Mon, 25 Jan 2016 22:55:14 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43031) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNuil-0004TC-BY for qemu-devel@nongnu.org; Mon, 25 Jan 2016 22:55:11 -0500 References: <1453779972-22538-1-git-send-email-lizhijian@cn.fujitsu.com> From: Eric Blake Message-ID: <56A6EE1D.8070105@redhat.com> Date: Mon, 25 Jan 2016 20:55:09 -0700 MIME-Version: 1.0 In-Reply-To: <1453779972-22538-1-git-send-email-lizhijian@cn.fujitsu.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="FhcGsM0v0AdMlRqeXHd8ttXuilQWe7EsI" Subject: Re: [Qemu-devel] [PATCH V2] net: awlays walk through filters reversely if traffic is outgress List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Li Zhijian , qemu-devel@nongnu.org, jasowang@redhat.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --FhcGsM0v0AdMlRqeXHd8ttXuilQWe7EsI Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 traff= ic 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/ >=20 > But some scenes, we hope filters handle the outgress traffic in a rever= se order. > For example, in colo-proxy(will be implemented later), we have a redire= ctor space before ( in English > filter and a colo-rewriter filter, we need the filter behavior like tha= t: > ingress(->)/outgress(<-): <->redirector <->colo-rewriter <->emulated de= vice >=20 > After this changes, outgress traffic always pass through filters in a r= everse > order. >=20 > Signed-off-by: Wen Congyang > Signed-off-by: Li Zhijian > --- > include/net/net.h | 4 +++- > net/filter.c | 21 +++++++++++++++++++-- > net/net.c | 20 +++++++++++++++----- > 3 files changed, 37 insertions(+), 8 deletions(-) >=20 --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --FhcGsM0v0AdMlRqeXHd8ttXuilQWe7EsI Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJWpu4dAAoJEKeha0olJ0NqynUIAKa/g2N3LZ6s3xzUMFHxK0Tc 6q5wwFwwujX98yXuqvvpDrjox8UelZd1qOFSGYcfQpTYz1SKUaa3a78KvypANDhQ byfZ5SvPgah/2XoGnNczXwNB2dAUjl5emSNLw9WKK2hIU/6AjGkZLdcKAQOLIfBQ rcZeXjuwxIfStUNFAulnucOsnWM64V32qUngOOlFFmnvD0M27RFd2/5Wq/r6vUde Eh+aTECxGQS/ZyfnGP9Mf1/tsi77qsLmPWYCwPkZJLuw8niTagDI2qmmnnnbdEbg RTUe/1RX4g+fSydo4hVba2qj3UWj9yBPrYLb96l6AHxgBAPlFL5gjYdhwka3smg= =d3em -----END PGP SIGNATURE----- --FhcGsM0v0AdMlRqeXHd8ttXuilQWe7EsI--