Re: [dpdk-dev] [PATCH 07/14] net/virtio: implement transmit path for packed queues

2018-02-13 Thread Jens Freimann
On Mon, Feb 12, 2018 at 09:16:27PM +0800, Jason Wang wrote: On 2018???01???29??? 22:11, Jens Freimann wrote: +/* Cleanup from completed transmits. */ +static void +virtio_xmit_cleanup(struct virtqueue *vq) +{ + uint16_t idx; + uint16_t size = vq->vq_nentries; + struct vring_d

Re: [dpdk-dev] [PATCH 07/14] net/virtio: implement transmit path for packed queues

2018-02-12 Thread Jason Wang
On 2018年01月29日 22:11, Jens Freimann wrote: +/* Cleanup from completed transmits. */ +static void +virtio_xmit_cleanup(struct virtqueue *vq) +{ + uint16_t idx; + uint16_t size = vq->vq_nentries; + struct vring_desc_1_1 *desc = vq->vq_ring.desc_1_1; + + idx = vq->vq_used_c

[dpdk-dev] [PATCH 07/14] net/virtio: implement transmit path for packed queues

2018-01-29 Thread Jens Freimann
This implements the transmit path for devices with support for Virtio 1.1. Add the feature bit for Virtio 1.1 and enable code to add buffers to vring and mark descriptors as available. This is based on a patch by Yuanhan Liu. Signed-off-by: Jens Freiman --- drivers/net/virtio/Makefile