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/dpaa2: support configuring dpdmux max Rx frame length
[dpdk.git]
/
drivers
/
net
/
virtio
/
virtqueue.c
diff --git
a/drivers/net/virtio/virtqueue.c
b/drivers/net/virtio/virtqueue.c
index
ca23180
..
1f9af3c
100644
(file)
--- a/
drivers/net/virtio/virtqueue.c
+++ b/
drivers/net/virtio/virtqueue.c
@@
-7,7
+7,7
@@
#include "virtqueue.h"
#include "virtio_logs.h"
#include "virtqueue.h"
#include "virtio_logs.h"
-#include "virtio
_pci
.h"
+#include "virtio.h"
#include "virtio_rxtx_simple.h"
/*
#include "virtio_rxtx_simple.h"
/*
@@
-32,7
+32,7
@@
virtqueue_detach_unused(struct virtqueue *vq)
end = (vq->vq_avail_idx + vq->vq_free_cnt) & (vq->vq_nentries - 1);
for (idx = 0; idx < vq->vq_nentries; idx++) {
end = (vq->vq_avail_idx + vq->vq_free_cnt) & (vq->vq_nentries - 1);
for (idx = 0; idx < vq->vq_nentries; idx++) {
- if (hw->use_vec_rx && !v
tpci
_packed_queue(hw) &&
+ if (hw->use_vec_rx && !v
irtio_with
_packed_queue(hw) &&
type == VTNET_RQ) {
if (start <= end && idx >= start && idx < end)
continue;
type == VTNET_RQ) {
if (start <= end && idx >= start && idx < end)
continue;
@@
-93,7
+93,7
@@
virtqueue_rxvq_flush_split(struct virtqueue *vq)
uint16_t used_idx, desc_idx;
uint16_t nb_used, i;
uint16_t used_idx, desc_idx;
uint16_t nb_used, i;
- nb_used =
VIRTQUEUE_NUSED
(vq);
+ nb_used =
virtqueue_nused
(vq);
for (i = 0; i < nb_used; i++) {
used_idx = vq->vq_used_cons_idx & (vq->vq_nentries - 1);
for (i = 0; i < nb_used; i++) {
used_idx = vq->vq_used_cons_idx & (vq->vq_nentries - 1);
@@
-137,7
+137,7
@@
virtqueue_rxvq_flush(struct virtqueue *vq)
{
struct virtio_hw *hw = vq->hw;
{
struct virtio_hw *hw = vq->hw;
- if (v
tpci
_packed_queue(hw))
+ if (v
irtio_with
_packed_queue(hw))
virtqueue_rxvq_flush_packed(vq);
else
virtqueue_rxvq_flush_split(vq);
virtqueue_rxvq_flush_packed(vq);
else
virtqueue_rxvq_flush_split(vq);
@@
-175,6
+175,7
@@
virtqueue_rxvq_reset_packed(struct virtqueue *vq)
vring_desc_init_packed(vq, size);
vring_desc_init_packed(vq, size);
+ virtqueue_disable_intr(vq);
return 0;
}
return 0;
}
@@
-211,5
+212,6
@@
virtqueue_txvq_reset_packed(struct virtqueue *vq)
vring_desc_init_packed(vq, size);
vring_desc_init_packed(vq, size);
+ virtqueue_disable_intr(vq);
return 0;
}
return 0;
}