Code Review
/
deb_dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
New upstream version 18.11-rc2
[deb_dpdk.git]
/
drivers
/
net
/
virtio
/
virtio_pci.h
diff --git
a/drivers/net/virtio/virtio_pci.h
b/drivers/net/virtio/virtio_pci.h
index
58fdd3d
..
e961a58
100644
(file)
--- a/
drivers/net/virtio/virtio_pci.h
+++ b/
drivers/net/virtio/virtio_pci.h
@@
-204,7
+204,6
@@
struct virtio_pci_ops {
void *dst, int len);
void (*write_dev_cfg)(struct virtio_hw *hw, size_t offset,
const void *src, int len);
void *dst, int len);
void (*write_dev_cfg)(struct virtio_hw *hw, size_t offset,
const void *src, int len);
- void (*reset)(struct virtio_hw *hw);
uint8_t (*get_status)(struct virtio_hw *hw);
void (*set_status)(struct virtio_hw *hw, uint8_t status);
uint8_t (*get_status)(struct virtio_hw *hw);
void (*set_status)(struct virtio_hw *hw, uint8_t status);
@@
-232,7
+231,7
@@
struct virtio_hw {
uint64_t req_guest_features;
uint64_t guest_features;
uint32_t max_queue_pairs;
uint64_t req_guest_features;
uint64_t guest_features;
uint32_t max_queue_pairs;
-
uint16_t
started;
+
bool
started;
uint16_t max_mtu;
uint16_t vtnet_hdr_size;
uint8_t vlan_strip;
uint16_t max_mtu;
uint16_t vtnet_hdr_size;
uint8_t vlan_strip;
@@
-258,6
+257,7
@@
struct virtio_hw {
*/
rte_spinlock_t state_lock;
struct rte_mbuf **inject_pkts;
*/
rte_spinlock_t state_lock;
struct rte_mbuf **inject_pkts;
+ bool opened;
struct virtqueue **vqs;
};
struct virtqueue **vqs;
};