Received: from eggs.gnu.org ([2001:4830:134:3::10]:48790) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOlU1-0001uQ-OG for qemu-devel@nongnu.org; Tue, 02 Sep 2014 06:38:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XOlTw-0002V4-Us for qemu-devel@nongnu.org; Tue, 02 Sep 2014 06:38:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOlTw-0002Uz-MY for qemu-devel@nongnu.org; Tue, 02 Sep 2014 06:38:36 -0400 Date: Tue, 2 Sep 2014 11:38:32 +0100 From: Stefan Hajnoczi Message-ID: <20140902103832.GI29067@stefanha-thinkpad.redhat.com> References: <1409211685-31767-1-git-send-email-jasowang@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZOudaV4lSIjFTlHv" Content-Disposition: inline In-Reply-To: <1409211685-31767-1-git-send-email-jasowang@redhat.com> Subject: Re: [Qemu-devel] [PATCH] net: don't use set/get_pointer() in set/get_netdev() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jason Wang Cc: Markus Armbruster , qemu-devel@nongnu.org, afaerber@suse.de, mst@redhat.com --ZOudaV4lSIjFTlHv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 28, 2014 at 03:41:25PM +0800, Jason Wang wrote: > Commit 1ceef9f27359cbe92ef124bf74de6f792e71f6fb (net: multiqueue > support) tries to use set_pointer() and get_pointer() to set and get > NICPeers which is not a pointer defined in DEFINE_PROP_NETDEV. This > trick works but result a unclean and fragile implementation (e.g > print_netdev and parse_netdev). >=20 > This patch solves this issue by not using set/get_pinter() and set and > get netdev directly in set_netdev() and get_netdev(). After this the > parse_netdev() and print_netdev() were no longer used and dropped from > the source. >=20 > Cc: Markus Armbruster > Cc: Stefan Hajnoczi > Signed-off-by: Jason Wang > --- > hw/core/qdev-properties-system.c | 71 ++++++++++++++++++++++------------= ------ > 1 file changed, 39 insertions(+), 32 deletions(-) Thanks, applied to my net tree: https://github.com/stefanha/qemu/commits/net Stefan --ZOudaV4lSIjFTlHv Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUBZ4oAAoJEJykq7OBq3PINvcIAJTpTS/jJtXCLkudP3WdrySM OxRgH/KQ9+s+ScEt95uYiDKUUsVgZjeZLdS4IToZIAhdwHGNFCRNNaDZnnrC8ag/ 15TRdV91cO4SsapFEiQlEIZgdxxC+xNYCynKkhnBWzmxlMC19zHbRoOkPKlyQbl8 +iWtiNvYqeFoMlyMy7wPt0xYsv+/9Kwh6kOfSVHzI125HepBMjxP8IaViKr12Chv 41dgN2O6soABHM0HaDdfVKZCOsngkmiyOmROTSA9BYYD2AhNpNYE77sGjMfJkzju gg3+6AqZagUjmkwWpjwT2STVjb+1zMZdNBNPdSXWYeaNgDtBxh7/5F6bvpJit1w= =4w9c -----END PGP SIGNATURE----- --ZOudaV4lSIjFTlHv--