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
net/txgbe: add VF base code
[dpdk.git]
/
drivers
/
net
/
virtio
/
virtio_rxtx_packed.h
diff --git
a/drivers/net/virtio/virtio_rxtx_packed.h
b/drivers/net/virtio/virtio_rxtx_packed.h
index
c0fad41
..
3037c8c
100644
(file)
--- a/
drivers/net/virtio/virtio_rxtx_packed.h
+++ b/
drivers/net/virtio/virtio_rxtx_packed.h
@@
-15,7
+15,7
@@
#include "virtio_logs.h"
#include "virtio_ethdev.h"
#include "virtio_logs.h"
#include "virtio_ethdev.h"
-#include "virtio
_pci
.h"
+#include "virtio.h"
#include "virtqueue.h"
#define BYTE_SIZE 8
#include "virtqueue.h"
#define BYTE_SIZE 8
@@
-111,12
+111,12
@@
virtqueue_enqueue_single_packed_vec(struct virtnet_tx *txvq,
int16_t need;
/* optimize ring usage */
int16_t need;
/* optimize ring usage */
- if ((v
tpci
_with_feature(hw, VIRTIO_F_ANY_LAYOUT) ||
- v
tpci
_with_feature(hw, VIRTIO_F_VERSION_1)) &&
+ if ((v
irtio
_with_feature(hw, VIRTIO_F_ANY_LAYOUT) ||
+ v
irtio
_with_feature(hw, VIRTIO_F_VERSION_1)) &&
rte_mbuf_refcnt_read(txm) == 1 && RTE_MBUF_DIRECT(txm) &&
txm->nb_segs == 1 && rte_pktmbuf_headroom(txm) >= hdr_size)
can_push = 1;
rte_mbuf_refcnt_read(txm) == 1 && RTE_MBUF_DIRECT(txm) &&
txm->nb_segs == 1 && rte_pktmbuf_headroom(txm) >= hdr_size)
can_push = 1;
- else if (v
tpci
_with_feature(hw, VIRTIO_RING_F_INDIRECT_DESC) &&
+ else if (v
irtio
_with_feature(hw, VIRTIO_RING_F_INDIRECT_DESC) &&
txm->nb_segs < VIRTIO_MAX_TX_INDIRECT)
use_indirect = 1;
txm->nb_segs < VIRTIO_MAX_TX_INDIRECT)
use_indirect = 1;