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/sfc: support SW stats groups
[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
8d99cae
..
77e5cb3
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
@@
-104,7
+104,7
@@
static inline int
virtqueue_enqueue_single_packed_vec(struct virtnet_tx *txvq,
struct rte_mbuf *txm)
{
virtqueue_enqueue_single_packed_vec(struct virtnet_tx *txvq,
struct rte_mbuf *txm)
{
- struct virtqueue *vq =
txvq->vq
;
+ struct virtqueue *vq =
virtnet_txq_to_vq(txvq)
;
struct virtio_hw *hw = vq->hw;
uint16_t hdr_size = hw->vtnet_hdr_size;
uint16_t slots, can_push = 0, use_indirect = 0;
struct virtio_hw *hw = vq->hw;
uint16_t hdr_size = hw->vtnet_hdr_size;
uint16_t slots, can_push = 0, use_indirect = 0;
@@
-212,7
+212,7
@@
virtqueue_dequeue_single_packed_vec(struct virtnet_rx *rxvq,
{
uint16_t used_idx, id;
uint32_t len;
{
uint16_t used_idx, id;
uint32_t len;
- struct virtqueue *vq =
rxvq->vq
;
+ struct virtqueue *vq =
virtnet_rxq_to_vq(rxvq)
;
struct virtio_hw *hw = vq->hw;
uint32_t hdr_size = hw->vtnet_hdr_size;
struct virtio_net_hdr *hdr;
struct virtio_hw *hw = vq->hw;
uint32_t hdr_size = hw->vtnet_hdr_size;
struct virtio_net_hdr *hdr;
@@
-264,7
+264,7
@@
virtio_recv_refill_packed_vec(struct virtnet_rx *rxvq,
struct rte_mbuf **cookie,
uint16_t num)
{
struct rte_mbuf **cookie,
uint16_t num)
{
- struct virtqueue *vq =
rxvq->vq
;
+ struct virtqueue *vq =
virtnet_rxq_to_vq(rxvq)
;
struct vring_packed_desc *start_dp = vq->vq_packed.ring.desc;
uint16_t flags = vq->vq_packed.cached_flags;
struct virtio_hw *hw = vq->hw;
struct vring_packed_desc *start_dp = vq->vq_packed.ring.desc;
uint16_t flags = vq->vq_packed.cached_flags;
struct virtio_hw *hw = vq->hw;
@@
-288,7
+288,7
@@
virtio_recv_refill_packed_vec(struct virtnet_rx *rxvq,
dxp = &vq->vq_descx[idx + i];
dxp->cookie = (void *)cookie[total_num + i];
dxp = &vq->vq_descx[idx + i];
dxp->cookie = (void *)cookie[total_num + i];
- addr =
cookie[total_num + i]->buf_iova
+
+ addr =
VIRTIO_MBUF_ADDR(cookie[total_num + i], vq)
+
RTE_PKTMBUF_HEADROOM - hw->vtnet_hdr_size;
start_dp[idx + i].addr = addr;
start_dp[idx + i].len = cookie[total_num + i]->buf_len
RTE_PKTMBUF_HEADROOM - hw->vtnet_hdr_size;
start_dp[idx + i].addr = addr;
start_dp[idx + i].len = cookie[total_num + i]->buf_len