Received: from eggs.gnu.org ([2001:4830:134:3::10]:58542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1x3C-000717-O3 for qemu-devel@nongnu.org; Mon, 08 Jun 2015 09:25:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z1x38-0005hU-L3 for qemu-devel@nongnu.org; Mon, 08 Jun 2015 09:25:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52259) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1x38-0005hQ-Fh for qemu-devel@nongnu.org; Mon, 08 Jun 2015 09:25:10 -0400 Date: Mon, 8 Jun 2015 14:25:08 +0100 From: Stefan Hajnoczi Message-ID: <20150608132508.GL23825@stefanha-thinkpad.redhat.com> References: <55701BED.2090802@redhat.com> <1433510652-13866-1-git-send-email-thibaut.collet@6wind.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WkHPBKJ2pKcVUM5H" Content-Disposition: inline In-Reply-To: <1433510652-13866-1-git-send-email-thibaut.collet@6wind.com> Subject: Re: [Qemu-devel] [PATCH v2] net: Add support of VIRTIO_NET_F_GUEST_ANNOUNCE for vhost-net/vhost-user List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thibaut Collet Cc: jasowang@redhat.com, quintela@redhat.com, qemu-devel@nongnu.org, mst@redhat.com --WkHPBKJ2pKcVUM5H Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 05, 2015 at 03:24:12PM +0200, Thibaut Collet wrote: > Add VIRTIO_NET_F_GUEST_ANNOUNCE capability to vhost-net when netdev backe= nd is > vhost-user. >=20 > For netdev backend using virtio-net NIC the self announce is managed dire= ctly > by the virtio-net NIC and not by the netdev backend itself. > To avoid duplication of announces (once from the guest and once from QEMU= ) a > bitfield is added in the NetClientState structure. > If this bit is set self announce does not send message to the guest to re= quest > gratuitous ARP but let virtio-net NIC set the VIRTIO_NET_S_ANNOUNCE for > gratuitous ARP. >=20 > Signed-off-by: Thibaut Collet > --- > v2: do not discard anymore packets send to vhost-user: it is GARP request= after > live migration. > As suggested by S. Hajnoczi qemu_announce_self skips virtio-net NIC t= hat > already send GARP. >=20 > hw/net/vhost_net.c | 2 ++ > include/net/net.h | 1 + > net/vhost-user.c | 2 ++ > savevm.c | 11 ++++++++--- > 4 files changed, 13 insertions(+), 3 deletions(-) Please send each patch revision as a new email thread. This makes it easy to see your new patches in threaded email clients. Stefan --WkHPBKJ2pKcVUM5H Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVdZe0AAoJEJykq7OBq3PInOAH/joc4EPWHVnfeevTVvgX9RIq LpGzss2mb270HiLwB/A6kDpv3v6tkMkncpTiEbjdhns5glgSOCh7No8lheNBAZWI UBhCqvT5scKF2sSYw4kNnEOMeqLNrQOl4xWQ1cCpiPz87p/xARkwA/K3yhCo4g6B +61XXYOPNfoTceWdFG3yTbgYYnHFEB+O+QDWorNb46W9ayoT/427Vbbo8K6otgKW DuXLdmJWhuYO+CrvXY2OOeree82ciBp8ZjlLTqRI3DQSG0n+skkma6K0Su5lDd4x IPe7v/KZyT3CWoqvzIxNdSA4t3L21Zud5p1X1GqyZIrqpMb5qtB89nhCf8iqLNQ= =O4LX -----END PGP SIGNATURE----- --WkHPBKJ2pKcVUM5H--