]> git.proxmox.com Git - mirror_qemu.git/commit
vmxnet3: Move some definitions to header file
authorYuval Shaia <yuval.shaia@oracle.com>
Fri, 21 Dec 2018 14:40:26 +0000 (16:40 +0200)
committerMarcel Apfelbaum <marcel.apfelbaum@gmail.com>
Sat, 22 Dec 2018 09:09:56 +0000 (11:09 +0200)
commit317639aafd3c89e601481e6fbf2a89432ff14e45
treebc912a094d5f93c25f02db1bc99d0976dc49c3ff
parent2b05705dc8ad80c09a3aa9cc70c14fb8323b0fd3
vmxnet3: Move some definitions to header file

pvrdma setup requires vmxnet3 device on PCI function 0 and PVRDMA device
on PCI function 1.
pvrdma device needs to access vmxnet3 device object for several reasons:
1. Make sure PCI function 0 is vmxnet3.
2. To monitor vmxnet3 device state.
3. To configure node_guid accoring to vmxnet3 device's MAC address.

To be able to access vmxnet3 device the definition of VMXNET3State is
moved to a new header file.

Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
Reviewed-by: Dmitry Fleytman <dmitry.fleytman@gmail.com>
Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
hw/net/vmxnet3.c
hw/net/vmxnet3_defs.h [new file with mode: 0644]