mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-29 05:13:54 -06:00
virtio-net: add virtio_net_set_netclient_name.
This adds virtio_net_set_netclient_name, which is used to set the name and type shown in "info network" command. Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com> Message-id: 1368619970-23892-2-git-send-email-fred.konrad@greensocs.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
110db9b48c
commit
8a253ec26e
2 changed files with 47 additions and 2 deletions
|
@ -188,6 +188,8 @@ typedef struct VirtIONet {
|
|||
uint16_t max_queues;
|
||||
uint16_t curr_queues;
|
||||
size_t config_size;
|
||||
char *netclient_name;
|
||||
char *netclient_type;
|
||||
} VirtIONet;
|
||||
|
||||
#define VIRTIO_NET_CTRL_MAC 1
|
||||
|
@ -255,5 +257,7 @@ struct virtio_net_ctrl_mq {
|
|||
DEFINE_PROP_STRING("tx", _state, _field.tx)
|
||||
|
||||
void virtio_net_set_config_size(VirtIONet *n, uint32_t host_features);
|
||||
void virtio_net_set_netclient_name(VirtIONet *n, const char *name,
|
||||
const char *type);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue