Skip to content

RFC latest virtio1.1 prototype

Tiwei Bie dpdk-dev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest29 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/29net/virtio: vring init for 1.1drivers/net/virtio/virtio-1.1.h drivers/net/virtio/virtio_ethdev.c drivers/net/virtio/virtio_pci.h +2 more+61 -120 replies
2/29net/virtio: implement 1.1 guest Txdrivers/net/virtio/Makefile drivers/net/virtio/virtio_ethdev.c drivers/net/virtio/virtio_ethdev.h +2 more+183 -70 replies
3/29net/virtio-user: add option to enable 1.1drivers/net/virtio/virtio_user/virtio_user_dev.c drivers/net/virtio/virtio_user/virtio_user_dev.h drivers/net/virtio/virtio_user_ethdev.c+23 -30 replies
4/29vhost: enable 1.1 for testinglib/librte_vhost/vhost.h+4 -00 replies
5/29vhost: set desc addr for 1.1lib/librte_vhost/vhost.h lib/librte_vhost/vhost_user.c+2 -00 replies
6/29vhost: implement virtio 1.1 dequeue pathlib/librte_vhost/virtio-1.1.h lib/librte_vhost/virtio_net.c+204 -00 replies
7/29vhost: mark desc being usedlib/librte_vhost/virtio_net.c+6 -40 replies
8/29xxx: batch the desc_hw update?drivers/net/virtio/virtio_rxtx_1.1.c lib/librte_vhost/virtio_net.c+20 -150 replies
9/29xxx: virtio: remove overheadsdrivers/net/virtio/virtio_rxtx.c+13 -1770 replies
10/29vhost: prefetch desclib/librte_vhost/virtio_net.c+29 -70 replies
11/29add virtio 1.1 test guideREADME-virtio-1.1+50 -00 replies
12/29testpmd: add s-txonlyapp/test-pmd/Makefile app/test-pmd/s-txonly.c app/test-pmd/testpmd.c +1 more+137 -00 replies
13/29net/virtio: implement the Rx code pathdrivers/net/virtio/virtio_ethdev.c drivers/net/virtio/virtio_rxtx.c drivers/net/virtio/virtqueue.h+116 -110 replies
14/29vhost: a rough implementation on enqueue code pathlib/librte_vhost/virtio_net.c+123 -10 replies
15/29vhost: descriptor length should include vhost headerlib/librte_vhost/virtio_net.c+1 -10 replies
16/29net/virtio: avoid touching packet datadrivers/net/virtio/virtio_rxtx.c+8 -00 replies
17/29net/virtio: fix virtio1.1 feature negotiationdrivers/net/virtio/virtio_user/virtio_user_dev.c+4 -30 replies
18/29net/virtio: the Rx support for virtio1.1 has been added nowdrivers/net/virtio/virtio_ethdev.c+0 -40 replies
19/29vhost: VIRTIO_NET_F_MRG_RXBUF is not supported for nowlib/librte_vhost/vhost.h+1 -10 replies
20/29vhost: fix vring addr setuplib/librte_vhost/vhost.c lib/librte_vhost/vhost_user.c+19 -20 replies
21/29net/virtio: free mbuf when need to usedrivers/net/virtio/virtio_rxtx_1.1.c+6 -90 replies
22/29vhost: don't copy descs during Rxlib/librte_vhost/virtio_net.c+10 -250 replies
23/29vhost: fix mbuf leaklib/librte_vhost/virtio_net.c+6 -10 replies
24/29net/virtio: cleanup txd when free count below thresholddrivers/net/virtio/virtio_rxtx_1.1.c+3 -00 replies
25/29net/virtio: refill descs for vhost in batchdrivers/net/virtio/virtio_rxtx.c+28 -40 replies
26/29vhost: remove dead codelib/librte_vhost/virtio_net.c+4 -240 replies
27/29vhost: various optimizations for Txlib/librte_vhost/virtio_net.c+11 -50 replies
28/29vhost: make the code more readablelib/librte_vhost/virtio_net.c+3 -30 replies
29/29vhost: update and return descs in batchlib/librte_vhost/virtio_net.c+6 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 00/29] latest virtio1.1 prototype

This patchset rebased Yuanhan's virtio1.1 prototype [1] to the current master branch of dpdk-next-virtio tree. It also contains Jens' fixes, my fixes and optimizations.

After sending each RFC patchset to the mailing list, I'll also collect them to my github repo [2] to give everyone a repo where can find the latest working code of virtio1.1 prototype.

[1] http://dpdk.org/browse/next/dpdk-next-virtio/log/?h=for-testing
[2] https://github.com/btw616/dpdk-virtio1.1

Best regards,
Tiwei Bie

Jens Freimann (1):
vhost: descriptor length should include vhost header

Tiwei Bie (14):
net/virtio: avoid touching packet data net/virtio: fix virtio1.1 feature negotiation net/virtio: the Rx support for virtio1.1 has been added now
vhost: VIRTIO_NET_F_MRG_RXBUF is not supported for now
vhost: fix vring addr setup
net/virtio: free mbuf when need to use
vhost: don't copy descs during Rx
vhost: fix mbuf leak
net/virtio: cleanup txd when free count below threshold net/virtio: refill descs for vhost in batch
vhost: remove dead code
vhost: various optimizations for Tx
vhost: make the code more readable
vhost: update and return descs in batch

Yuanhan Liu (14):
net/virtio: vring init for 1.1
net/virtio: implement 1.1 guest Tx net/virtio-user: add option to enable 1.1
vhost: enable 1.1 for testing
vhost: set desc addr for 1.1
vhost: implement virtio 1.1 dequeue path
vhost: mark desc being used
xxx: batch the desc_hw update?
xxx: virtio: remove overheads
vhost: prefetch desc
add virtio 1.1 test guide
testpmd: add s-txonly
net/virtio: implement the Rx code path
vhost: a rough implementation on enqueue code path

 README-virtio-1.1                                |  50 ++++
 app/test-pmd/Makefile                            |   1 +
 app/test-pmd/s-txonly.c                          | 134 ++++++++++
 app/test-pmd/testpmd.c                           |   1 +
 app/test-pmd/testpmd.h                           |   1 +
 drivers/net/virtio/Makefile                      |   1 +
 drivers/net/virtio/virtio-1.1.h                  |  19 ++
 drivers/net/virtio/virtio_ethdev.c               |  45 ++--
 drivers/net/virtio/virtio_ethdev.h               |   3 +
 drivers/net/virtio/virtio_pci.h                  |   7 +
 drivers/net/virtio/virtio_ring.h                 |  15 +-
 drivers/net/virtio/virtio_rxtx.c                 | 320 +++++++++++------------
 drivers/net/virtio/virtio_rxtx_1.1.c             | 161 ++++++++++++
 drivers/net/virtio/virtio_user/virtio_user_dev.c |  12 +-
 drivers/net/virtio/virtio_user/virtio_user_dev.h |   3 +-
 drivers/net/virtio/virtio_user_ethdev.c          |  14 +-
 drivers/net/virtio/virtqueue.h                   |  11 +
 lib/librte_vhost/vhost.c                         |   4 +
 lib/librte_vhost/vhost.h                         |   7 +-
 lib/librte_vhost/vhost_user.c                    |  16 +-
 lib/librte_vhost/virtio-1.1.h                    |  23 ++
 lib/librte_vhost/virtio_net.c                    | 310 +++++++++++++++++++++-
 22 files changed, 958 insertions(+), 200 deletions(-)
 create mode 100644 README-virtio-1.1
 create mode 100644 app/test-pmd/s-txonly.c
 create mode 100644 drivers/net/virtio/virtio-1.1.h
 create mode 100644 drivers/net/virtio/virtio_rxtx_1.1.c
 create mode 100644 lib/librte_vhost/virtio-1.1.h
Signature · 1 line
2.7.4