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/ice: fix VXLAN/NVGRE flow matching
[dpdk.git]
/
drivers
/
net
/
virtio
/
virtqueue.h
diff --git
a/drivers/net/virtio/virtqueue.h
b/drivers/net/virtio/virtqueue.h
index
6dab7db
..
c6dd4a3
100644
(file)
--- a/
drivers/net/virtio/virtqueue.h
+++ b/
drivers/net/virtio/virtqueue.h
@@
-134,7
+134,7
@@
enum { VTNET_RQ = 0, VTNET_TQ = 1, VTNET_CQ = 2 };
*/
struct virtio_net_ctrl_mac {
uint32_t entries;
*/
struct virtio_net_ctrl_mac {
uint32_t entries;
- uint8_t macs[][ETHER_ADDR_LEN];
+ uint8_t macs[][
RTE_
ETHER_ADDR_LEN];
} __attribute__((__packed__));
#define VIRTIO_NET_CTRL_MAC 1
} __attribute__((__packed__));
#define VIRTIO_NET_CTRL_MAC 1
@@
-287,8
+287,8
@@
desc_is_used(struct vring_packed_desc *desc, struct virtqueue *vq)
uint16_t used, avail, flags;
flags = desc->flags;
uint16_t used, avail, flags;
flags = desc->flags;
- used = !!(flags & VRING_
DESC_F_USED(1)
);
- avail = !!(flags & VRING_
DESC_F_AVAIL(1)
);
+ used = !!(flags & VRING_
PACKED_DESC_F_USED
);
+ avail = !!(flags & VRING_
PACKED_DESC_F_AVAIL
);
return avail == used && used == vq->vq_packed.used_wrap_counter;
}
return avail == used && used == vq->vq_packed.used_wrap_counter;
}
@@
-317,7
+317,7
@@
vring_desc_init_split(struct vring_desc *dp, uint16_t n)
}
/**
}
/**
- * Tell the backend not to interrupt us.
+ * Tell the backend not to interrupt us.
Implementation for packed virtqueues.
*/
static inline void
virtqueue_disable_intr_packed(struct virtqueue *vq)
*/
static inline void
virtqueue_disable_intr_packed(struct virtqueue *vq)
@@
-329,6
+329,15
@@
virtqueue_disable_intr_packed(struct virtqueue *vq)
}
}
}
}
+/**
+ * Tell the backend not to interrupt us. Implementation for split virtqueues.
+ */
+static inline void
+virtqueue_disable_intr_split(struct virtqueue *vq)
+{
+ vq->vq_split.ring.avail->flags |= VRING_AVAIL_F_NO_INTERRUPT;
+}
+
/**
* Tell the backend not to interrupt us.
*/
/**
* Tell the backend not to interrupt us.
*/
@@
-338,7
+347,7
@@
virtqueue_disable_intr(struct virtqueue *vq)
if (vtpci_packed_queue(vq->hw))
virtqueue_disable_intr_packed(vq);
else
if (vtpci_packed_queue(vq->hw))
virtqueue_disable_intr_packed(vq);
else
- v
q->vq_split.ring.avail->flags |= VRING_AVAIL_F_NO_INTERRUPT
;
+ v
irtqueue_disable_intr_split(vq)
;
}
/**
}
/**