mirror of https://github.com/xqemu/xqemu.git
qmp-commands: move 'query-rx-filter' doc to schema
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
e26a0d0070
commit
043ea3123d
|
@ -1163,63 +1163,6 @@ Example:
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
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 given net client
|
|
||||||
isn't a NIC.
|
|
||||||
|
|
||||||
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')
|
|
||||||
- "vlan": vlan receive state (one of 'normal', 'none', 'all') (Since 2.0)
|
|
||||||
- "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 active vlan id
|
|
||||||
- "unicast-table": a json-array of unicast macaddr string
|
|
||||||
- "multicast-table": a json-array of multicast macaddr string
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
-> { "execute": "query-rx-filter", "arguments": { "name": "vnet0" } }
|
|
||||||
<- { "return": [
|
|
||||||
{
|
|
||||||
"promiscuous": true,
|
|
||||||
"name": "vnet0",
|
|
||||||
"main-mac": "52:54:00:12:34:56",
|
|
||||||
"unicast": "normal",
|
|
||||||
"vlan": "normal",
|
|
||||||
"vlan-table": [
|
|
||||||
4,
|
|
||||||
0
|
|
||||||
],
|
|
||||||
"unicast-table": [
|
|
||||||
],
|
|
||||||
"multicast": "normal",
|
|
||||||
"multicast-overflow": false,
|
|
||||||
"unicast-overflow": false,
|
|
||||||
"multicast-table": [
|
|
||||||
"01:00:5e:00:00:01",
|
|
||||||
"33:33:00:00:00:01",
|
|
||||||
"33:33:ff:12:34:56"
|
|
||||||
],
|
|
||||||
"broadcast-allowed": false
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
blockdev-add
|
blockdev-add
|
||||||
------------
|
------------
|
||||||
|
|
||||||
|
|
|
@ -5279,6 +5279,36 @@
|
||||||
# isn't a NIC.
|
# isn't a NIC.
|
||||||
#
|
#
|
||||||
# Since: 1.6
|
# Since: 1.6
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
#
|
||||||
|
# -> { "execute": "query-rx-filter", "arguments": { "name": "vnet0" } }
|
||||||
|
# <- { "return": [
|
||||||
|
# {
|
||||||
|
# "promiscuous": true,
|
||||||
|
# "name": "vnet0",
|
||||||
|
# "main-mac": "52:54:00:12:34:56",
|
||||||
|
# "unicast": "normal",
|
||||||
|
# "vlan": "normal",
|
||||||
|
# "vlan-table": [
|
||||||
|
# 4,
|
||||||
|
# 0
|
||||||
|
# ],
|
||||||
|
# "unicast-table": [
|
||||||
|
# ],
|
||||||
|
# "multicast": "normal",
|
||||||
|
# "multicast-overflow": false,
|
||||||
|
# "unicast-overflow": false,
|
||||||
|
# "multicast-table": [
|
||||||
|
# "01:00:5e:00:00:01",
|
||||||
|
# "33:33:00:00:00:01",
|
||||||
|
# "33:33:ff:12:34:56"
|
||||||
|
# ],
|
||||||
|
# "broadcast-allowed": false
|
||||||
|
# }
|
||||||
|
# ]
|
||||||
|
# }
|
||||||
|
#
|
||||||
##
|
##
|
||||||
{ 'command': 'query-rx-filter', 'data': { '*name': 'str' },
|
{ 'command': 'query-rx-filter', 'data': { '*name': 'str' },
|
||||||
'returns': ['RxFilterInfo'] }
|
'returns': ['RxFilterInfo'] }
|
||||||
|
|
Loading…
Reference in New Issue