From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59471) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ufs3N-0007P0-FI for qemu-devel@nongnu.org; Fri, 24 May 2013 09:29:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ufs3H-0006qo-Go for qemu-devel@nongnu.org; Fri, 24 May 2013 09:29:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:18879) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ufrxi-0004oa-7b for qemu-devel@nongnu.org; Fri, 24 May 2013 09:23:14 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r4ODNDqa019132 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 24 May 2013 09:23:13 -0400 Message-ID: <519F69BF.7000005@redhat.com> Date: Fri, 24 May 2013 07:23:11 -0600 From: Eric Blake MIME-Version: 1.0 References: <1369300080-31377-1-git-send-email-akong@redhat.com> <1369300080-31377-3-git-send-email-akong@redhat.com> <20130523120325.3113c687@redhat.com> <20130524030813.GB1550@t430s.nay.redhat.com> <20130524082326.452cc9f0@redhat.com> <519F6350.1040502@redhat.com> <20130524090834.41dd9108@redhat.com> In-Reply-To: <20130524090834.41dd9108@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="----enig2IUNLWLGRUCDTWEGIHPAX" Subject: Re: [Qemu-devel] [PATCH v3 2/2] net: introduce command to query rx-filter information List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino Cc: Amos Kong , qemu-devel@nongnu.org, stefanha@redhat.com, mst@redhat.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2IUNLWLGRUCDTWEGIHPAX Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 05/24/2013 07:08 AM, Luiz Capitulino wrote: > This sounds like premature optimization to me, but I wonder if instead > of cluttering commands with arguments to do the filtering we could add > some standard way of doing this in the QAPI. Maybe we could make QAPI support generic filtering for all query-* commands. But there's still a cost with making all query-* commands malloc the space for an entire list only to then have a QAPI layer on top of it do filtering before handing back the single element over the wire, compared to passing the filtering down to the query-* implementation to do the filtering in place. >=20 > It was you who suggested a filter command? No, Stefan suggested it on v1: https://lists.gnu.org/archive/html/qemu-devel/2013-04/msg03102.html --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org ------enig2IUNLWLGRUCDTWEGIHPAX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJRn2m/AAoJEKeha0olJ0NqbNMH/2QZBZQpvbE12O+sEegy7jvS 3K7ME3NXgTmkEveRoXGQ/1BvFTz7IrYHDDcatbJ5ddPFkbREg6k+rZsSBrx7QU5H K/6rmQcXa8s1v58RrYisXEDUYZ5DrhAQxBYGiIvKCPLmQKOTZJSkSxoVQk0ll845 jlvFn7ODHRmFVmutDSozVhflOFd+UzjkKFYYo7zL4Vsc07PZd+HhhM0OYIH4fHtR 6YkjZk5e/lB1jXx3GbOqs0jWn2Ven+tSiklGhLbZKtHq+3iFmimPTidnDc3Esgcj 6ERR67ZoobL17gxtASDdXuQNSrN9JGwjyMneM9tYgH4TN6eCJj7RV6e97Wvkv2M= =SAXJ -----END PGP SIGNATURE----- ------enig2IUNLWLGRUCDTWEGIHPAX--