git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ethdev: promote sibling iterators to stable
[dpdk.git]
/
drivers
/
net
/
virtio
/
virtio.h
diff --git
a/drivers/net/virtio/virtio.h
b/drivers/net/virtio/virtio.h
index
21d5490
..
525e2da
100644
(file)
--- a/
drivers/net/virtio/virtio.h
+++ b/
drivers/net/virtio/virtio.h
@@
-98,7
+98,7
@@
*
* Note the sizeof(struct vring_desc) is 16 bytes.
*/
*
* Note the sizeof(struct vring_desc) is 16 bytes.
*/
-#define VIRTIO_MAX_INDIRECT ((int)(
PAGE_SIZE
/ 16))
+#define VIRTIO_MAX_INDIRECT ((int)(
rte_mem_page_size()
/ 16))
/*
* Maximum number of virtqueues per device.
/*
* Maximum number of virtqueues per device.
@@
-167,6
+167,7
@@
struct virtio_hw {
uint8_t started;
uint8_t weak_barriers;
uint8_t vlan_strip;
uint8_t started;
uint8_t weak_barriers;
uint8_t vlan_strip;
+ bool rx_ol_scatter;
uint8_t has_tx_offload;
uint8_t has_rx_offload;
uint8_t use_vec_rx;
uint8_t has_tx_offload;
uint8_t has_rx_offload;
uint8_t use_vec_rx;
@@
-180,6
+181,7
@@
struct virtio_hw {
uint8_t duplex;
uint8_t intr_lsc;
uint16_t max_mtu;
uint8_t duplex;
uint8_t intr_lsc;
uint16_t max_mtu;
+ size_t max_rx_pkt_len;
/*
* App management thread and virtio interrupt handler thread
* both can change device state, this lock is meant to avoid
/*
* App management thread and virtio interrupt handler thread
* both can change device state, this lock is meant to avoid