On Wed, May 29, 2013 at 01:31:12PM +0800, Jason Wang wrote: > On 05/16/2013 07:07 PM, Amos Kong wrote: > > We want to implement mac programming over macvtap through Libvirt. > > The previous patch adds QMP event to notify management of mac-table > > change. This patch adds a monitor command to query rx mode information > > of mac-tables. > > > > (qemu) info mac-table vnet0 > > vnet0: > > \ promisc: on > > \ allmulti: off > > \ alluni: off > > \ nomulti: off > > \ nouni: off > > \ nobcast: off > > \ multi_overflow: off > > \ uni_overflow: off > > \ multicast: > > 01:00:5e:00:00:01 > > 33:33:00:00:00:01 > > 33:33:ff:12:34:56 > > > > Signed-off-by: Amos Kong <ak...@redhat.com> > > Maybe you also need a command to query the vlan table, or rename the > command as "info filter" and do it here.
Thanks for your reminder. Yes, we need to include all filters that are used in receive_filter(). It contains main-mac, rx-mode items(mac-table, promisc, unit/multi/broadcast flags), vlan-table. It's not good to return all(128) entries of vlan-table to monitor client, and management only use QMP to query info, so I will drop HMP command. Amos.