Received: from eggs.gnu.org ([2001:4830:134:3::10]:45030) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnMzT-0001fH-HA for qemu-devel@nongnu.org; Fri, 14 Jun 2013 01:56:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UnMzS-0000l3-LM for qemu-devel@nongnu.org; Fri, 14 Jun 2013 01:56:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31235) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnMzS-0000kw-BS for qemu-devel@nongnu.org; Fri, 14 Jun 2013 01:56:02 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r5E5u1la006060 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 14 Jun 2013 01:56:01 -0400 Date: Fri, 14 Jun 2013 13:55:57 +0800 From: Amos Kong Message-ID: <20130614055557.GB30663@t430s.nay.redhat.com> References: <1370428933-15178-1-git-send-email-akong@redhat.com> <51B03392.8020003@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51B03392.8020003@redhat.com> Subject: Re: [Qemu-devel] [PATCH v5] net: add support of mac-programming over macvtap in QEMU side List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jason Wang Cc: mst@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com, lcapitulino@redhat.com On Thu, Jun 06, 2013 at 03:00:34PM +0800, Jason Wang wrote: > On 06/05/2013 06:42 PM, Amos Kong wrote: > > Currently macvtap based macvlan device is working in promiscuous > > mode, we want to implement mac-programming over macvtap through > > Libvirt for better performance. ... > > +SQMP > > +query-rx-filter > > +--------------- > > + > > +Show rx-filter information. > > + > > +Returns a json-array of rx-filter information for all nics (or for the > > +given nic), returning an error if the given nic doesn't exist, or > > +given nic doesn't support rx-filter querying, or no net client > > +supports rx-filter querying. > > + > > +The query will clear the event notification flag of each nic, then qemu > > +will start to emit event to QMP monitor. > > + > > +Each array entry contains the following: > > + > > +- "name": net client name (json-string) > > +- "promiscuous": promiscuous mode is enabled (json-bool) > > +- "multicast": multicast receive state (one of 'normal', 'none', 'all') > > +- "unicast": unicast receive state (one of 'normal', 'none', 'all') > > +- "broadcast-allowed": allow to receive broadcast (json-bool) > > +- "multicast-overflow": multicast table is overflowed (json-bool) > > +- "unicast-overflow": unicast table is overflowed (json-bool) > > +- "main-mac": main macaddr string (json-string) > > +- "vlan-table": a json-array of vlan-table entry > > + - "index": index of vlan filter table (json-int) > > + - "value": 32 bit of indicator for active vlans > > Not sure whether or not this is libvirt friendly. Looks like you expect > libvirt to do some post-processing. Why not just expose vids? vid is used in userspace, I will return vid json-array in output. Thanks. > > +- "unicast-table": a json-array of unicast macaddr string > > +- "multicast-table": a json-array of multicast macaddr string > > + -- Amos.