[dpdk-dev] [PATCH v8 5/5] doc/rel_notes: add virtio offload feature in new feature section

2016-02-05 Thread Jijiang Liu
Update new feature section with virtio offload feature description. Signed-off-by: Jijiang Liu --- doc/guides/rel_notes/release_2_3.rst |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/doc/guides/rel_notes/release_2_3.rst b/doc/guides/rel_notes/release_2_3.rst index

[dpdk-dev] [PATCH v8 4/5] example/vhost: add virtio offload test in vhost sample

2016-02-05 Thread Jijiang Liu
, the reason is explained in patch 2. Signed-off-by: Jijiang Liu Acked-by: Yuanhan Liu --- examples/vhost/main.c | 105 +++- 1 files changed, 102 insertions(+), 3 deletions(-) diff --git a/examples/vhost/main.c b/examples/vhost/main.c index 044c680

[dpdk-dev] [PATCH v8 3/5] sample/vhost: remove the ipv4_hdr structure defination

2016-02-05 Thread Jijiang Liu
Remove the ipv4_hdr structure defination in vhost sample. The same structure has already defined in the rte_ip.h file, so we remove the defination from the sample, and include that header file. Signed-off-by: Jijiang Liu Acked-by: Yuanhan Liu --- examples/vhost/main.c | 15

[dpdk-dev] [PATCH v8 2/5] vhost/lib: add guest offload setting

2016-02-05 Thread Jijiang Liu
side, it means the packet is from another VM at same host. So, it's safe to set the VIRTIO_NET_HDR_F_NEEDS_CSUM, to skip checksum validation. Signed-off-by: Jijiang Liu Acked-by: Yuanhan Liu --- lib/librte_vhost/vhost_rxtx.c | 47 +++- lib/librte_vhost

[dpdk-dev] [PATCH v8 1/5] vhost/lib: add vhost TX offload capabilities in vhost lib

2016-02-05 Thread Jijiang Liu
to the related fileds in mbuf. Signed-off-by: Jijiang Liu Acked-by: Yuanhan Liu --- lib/librte_vhost/vhost_rxtx.c | 103 + lib/librte_vhost/virtio-net.c |6 ++- 2 files changed, 108 insertions(+), 1 deletions(-) diff --git a/lib/librte_vhost

[dpdk-dev] [PATCH v8 0/5] add virtio offload support in us-vhost

2016-02-05 Thread Jijiang Liu
anup code as a separate patch. v3 change: rebase latest codes. v2 change: fill virtio device information for TX offloads. Tested-by: Qian Xu --- Jijiang Liu (4): add vhost offload capabilities remove ipv4_hdr structure from vhost sample. add guest offload setting ln the vhost lib. ch

[dpdk-dev] [PATCH v7 4/4] example/vhost: add virtio offload test in vhost sample

2016-02-05 Thread Jijiang Liu
, the reason is explained in patch 2. Signed-off-by: Jijiang Liu --- examples/vhost/main.c | 105 +++- 1 files changed, 102 insertions(+), 3 deletions(-) diff --git a/examples/vhost/main.c b/examples/vhost/main.c index 044c680..210e631 100644

[dpdk-dev] [PATCH v7 3/4] sample/vhost: remove the ipv4_hdr structure defination

2016-02-05 Thread Jijiang Liu
Remove the ipv4_hdr structure defination in vhost sample. The same structure has already defined in the rte_ip.h file, so we remove the defination from the sample, and include that header file. Signed-off-by: Jijiang Liu --- examples/vhost/main.c | 15 +-- 1 files changed, 1

[dpdk-dev] [PATCH v7 2/4] vhost/lib: add guest offload setting

2016-02-05 Thread Jijiang Liu
side, it means the packet is from another VM at same host. So, it's safe to set the VIRTIO_NET_HDR_F_NEEDS_CSUM, to skip checksum validation. Signed-off-by: Jijiang Liu --- lib/librte_vhost/vhost_rxtx.c | 47 +++- lib/librte_vhost/virtio-net.c |5 +++- 2

[dpdk-dev] [PATCH v7 1/4] vhost/lib: add vhost TX offload capabilities in vhost lib

2016-02-05 Thread Jijiang Liu
to the related fileds in mbuf. Signed-off-by: Jijiang Liu --- lib/librte_vhost/vhost_rxtx.c | 103 + lib/librte_vhost/virtio-net.c |6 ++- 2 files changed, 108 insertions(+), 1 deletions(-) diff --git a/lib/librte_vhost/vhost_rxtx.c b/lib/librte_vhost

[dpdk-dev] [PATCH v7 0/4] add virtio offload support in us-vhost

2016-02-05 Thread Jijiang Liu
ange: rebase latest codes. v2 change: fill virtio device information for TX offloads. --- Jijiang Liu (4): add vhost offload capabilities remove ipv4_hdr structure from vhost sample. add guest offload setting ln the vhost lib. change vhost application to test checksum and TSO for VM to NIC

[dpdk-dev] [RFC PATCH 6/6] driver/i40e: tunnel configure in i40e

2015-12-23 Thread Jijiang Liu
Add i40e_udp_tunnel_flow_configre() to implement the configuration of flow rule with 'src IP, dst IP, src port, dst port and tunnel ID' using flow director. Signed-off-by: Jijiang Liu --- drivers/net/i40e/i40e_ethdev.c | 41 1 files changed, 41

[dpdk-dev] [RFC PATCH 5/6] rte_ether: implement encap and decap APIs

2015-12-23 Thread Jijiang Liu
Using SIMD instruction to accelarate encapsulation operation. Signed-off-by: Jijiang Liu --- lib/librte_ether/libtunnel/rte_vxlan_opt.c | 251 1 files changed, 251 insertions(+), 0 deletions(-) create mode 100644 lib/librte_ether/libtunnel/rte_vxlan_opt.c diff

[dpdk-dev] [RFC PATCH 4/6] rte_ether: define rte_eth_vxlan_decap and rte_eth_vxlan_encap

2015-12-23 Thread Jijiang Liu
This function parameters should be the same as callback function (rte_rx/tx_callback_fn). But we can redefine some parameters as 'unused'. Signed-off-by: Jijiang Liu --- lib/librte_ether/libtunnel/rte_vxlan_opt.h | 49 1 files changed, 49 insertions(+), 0

[dpdk-dev] [RFC PATCH 3/6] rte_ether: implement tunnel config API

2015-12-23 Thread Jijiang Liu
Signed-off-by: Jijiang Liu --- lib/librte_ether/rte_ethdev.c | 60 + 1 files changed, 60 insertions(+), 0 deletions(-) diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c index c3eed49..6725398 100644 --- a/lib/librte_ether

[dpdk-dev] [RFC PATCH 2/6] rte_ether: define tunnel flow structure and APIs

2015-12-23 Thread Jijiang Liu
Add the struct 'rte_eth_tunnel_conf' and the tunnel configuration API. Signed-off-by: Jijiang Liu --- lib/librte_ether/rte_ethdev.h | 28 1 files changed, 28 insertions(+), 0 deletions(-) diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h

[dpdk-dev] [RFC PATCH 1/6] rte_ether: extend rte_eth_tunnel_flow structure

2015-12-23 Thread Jijiang Liu
The purpose of extending this structure is to support more tunnel filter conditions. Signed-off-by: Jijiang Liu --- lib/librte_ether/rte_eth_ctrl.h | 14 +++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/lib/librte_ether/rte_eth_ctrl.h b/lib/librte_ether

[dpdk-dev] [RFC PATCH 0/6] General tunneling APIs

2015-12-23 Thread Jijiang Liu
x_burst_cbs[].param. In this patch set, I have not finished all of codes, the purpose of sending patch set is that I would like to collect more comments and sugestions on this idea. Jijiang Liu (6): extend rte_eth_tunnel_flow define tunnel flow structure and APIs implement tunnel flow AP

[dpdk-dev] [PATCH v6 4/4] example/vhost: add virtio offload test in vhost sample

2015-12-21 Thread Jijiang Liu
, the reason is explained in patch 2. Signed-off-by: Jijiang Liu --- examples/vhost/main.c | 105 +++- 1 files changed, 102 insertions(+), 3 deletions(-) diff --git a/examples/vhost/main.c b/examples/vhost/main.c index 044c680..210e631 100644 --- a/examples

[dpdk-dev] [PATCH v6 3/4] sample/vhost: remove the ipv4_hdr structure defination

2015-12-21 Thread Jijiang Liu
Remove the ipv4_hdr structure defination in vhost sample. The same structure has already defined in the rte_ip.h file, so we remove the defination from the sample, and include that header file. Signed-off-by: Jijiang Liu --- examples/vhost/main.c | 15 +-- 1 files changed, 1

[dpdk-dev] [PATCH v6 2/4] vhost/lib: add guest offload setting

2015-12-21 Thread Jijiang Liu
, it's safe to set the VIRTIO_NET_HDR_F_NEEDS_CSUM, to skip checksum validation. Signed-off-by: Jijiang Liu --- lib/librte_vhost/vhost_rxtx.c | 47 +++- lib/librte_vhost/virtio-net.c |5 +++- 2 files changed, 49 insertions(+), 3 deletions(-) diff --git a/lib

[dpdk-dev] [PATCH v6 1/4] vhost/lib: add vhost TX offload capabilities in vhost lib

2015-12-21 Thread Jijiang Liu
the fileds in virtio_net_hdr to the related fileds in mbuf. Signed-off-by: Jijiang Liu --- lib/librte_vhost/vhost_rxtx.c | 103 + lib/librte_vhost/virtio-net.c |6 ++- 2 files changed, 108 insertions(+), 1 deletions(-) diff --git a/lib/librte_vhost/vhos

[dpdk-dev] [PATCH v6 0/4] add virtio offload support in us-vhost

2015-12-21 Thread Jijiang Liu
tion for TX offloads. *** BLURB HERE *** Jijiang Liu (4): add vhost offload capabilities remove ipv4_hdr structure from vhost sample. add guest offload setting ln the vhost lib. change vhost application to test checksum and TSO for VM to NIC case examples/vhost/main.c |

[dpdk-dev] [PATCH v3] doc: announce ABI change for struct rte_eth_conf

2015-12-14 Thread Jijiang Liu
l_conf *tunnel_conf[RTE_MAX_QUEUES_PER_PORT]; /**< Tunnel configuration. */ }; v2 change: Add more description for the change. v3 change: Change ABI announcement description. Signed-off-by: Jijiang Liu --- doc/guides/rel_notes/deprecation.rst |6 ++ 1 files changed, 6 inserti

[dpdk-dev] [PATCH v2] doc: announce ABI change for struct rte_eth_conf

2015-12-11 Thread Jijiang Liu
and classification information and store it in a device configuration. And tunneling packet encapsulation operation will benifit from the change. v2 change: Add more description for the change. Signed-off-by: Jijiang Liu --- doc/guides/rel_notes/deprecation.rst |5 + 1 files changed, 5 insertions

[dpdk-dev] [PATCH] doc: announce ABI change for struct rte_eth_tunnel_flow

2015-12-09 Thread Jijiang Liu
flow ipv6; }; }; Note: It have not finalized yet. Signed-off-by: Jijiang Liu --- doc/guides/rel_notes/deprecation.rst |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index 1c7ab01..5c458

[dpdk-dev] [PATCH] doc: announce ABI change for struct rte_eth_conf

2015-12-07 Thread Jijiang Liu
Announce ABI change for struct rte_eth_conf. Signed-off-by: Jijiang Liu --- doc/guides/rel_notes/deprecation.rst |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index 1c7ab01..f50f0c7 100644

[dpdk-dev] [PATCH v5 4/4] example/vhost: add virtio offload test in vhost sample

2015-11-12 Thread Jijiang Liu
, the reason is explained in patch 2. Signed-off-by: Jijiang Liu --- examples/vhost/main.c | 105 +++- 1 files changed, 102 insertions(+), 3 deletions(-) diff --git a/examples/vhost/main.c b/examples/vhost/main.c index 044c680..210e631 100644 --- a/examples

[dpdk-dev] [PATCH v5 3/4] sample/vhost: remove the ipv4_hdr structure defination

2015-11-12 Thread Jijiang Liu
Remove the ipv4_hdr structure defination in vhost sample. The same structure has already defined in the rte_ip.h file, so we remove the defination from the sample, and include that header file. Signed-off-by: Jijiang Liu --- examples/vhost/main.c | 15 +-- 1 files changed, 1

[dpdk-dev] [PATCH v5 2/4] vhost/lib: add guest offload setting

2015-11-12 Thread Jijiang Liu
, it's safe to set the VIRTIO_NET_HDR_F_NEEDS_CSUM, to skip checksum validation. Signed-off-by: Jijiang Liu --- lib/librte_vhost/vhost_rxtx.c | 47 +++- lib/librte_vhost/virtio-net.c |5 +++- 2 files changed, 49 insertions(+), 3 deletions(-) diff --git a/lib

[dpdk-dev] [PATCH v5 1/4] vhost/lib: add vhost TX offload capabilities in vhost lib

2015-11-12 Thread Jijiang Liu
the fileds in virtio_net_hdr to the related fileds in mbuf. Signed-off-by: Jijiang Liu --- lib/librte_vhost/vhost_rxtx.c | 103 + lib/librte_vhost/virtio-net.c |6 ++- 2 files changed, 108 insertions(+), 1 deletions(-) diff --git a/lib/librte_vhost/vhos

[dpdk-dev] [PATCH v5 0/4] add virtio offload support in us-vhost

2015-11-12 Thread Jijiang Liu
change: rebase latest codes. v2 change: fill virtio device information for TX offloads. *** BLURB HERE *** Jijiang Liu (4): add vhost offload capabilities remove ipv4_hdr structure from vhost sample. add guest offload setting ln the vhost lib. change vhost application to test checksum

[dpdk-dev] [PATCH v4 8/8] virtio/lib:add guest offload handle

2015-11-11 Thread Jijiang Liu
Enqueue guest offload(CSUM and TSO) handle. Signed-off-by: Jijiang Liu --- lib/librte_vhost/vhost_rxtx.c | 45 +++- 1 files changed, 43 insertions(+), 2 deletions(-) diff --git a/lib/librte_vhost/vhost_rxtx.c b/lib/librte_vhost/vhost_rxtx.c index 9e70990

[dpdk-dev] [PATCH v4 7/8] virtio/lib:add virtio guest offload capabilities

2015-11-11 Thread Jijiang Liu
Add virtio guest offload capabilities. Signed-off-by: Jijiang Liu --- lib/librte_vhost/virtio-net.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/lib/librte_vhost/virtio-net.c b/lib/librte_vhost/virtio-net.c index 81bd309..839a333 100644 --- a/lib/librte_vhost

[dpdk-dev] [PATCH v4 6/8] examples/vhost:support TX offload in vhost sample

2015-11-11 Thread Jijiang Liu
Change the vhost sample to support and test TX offload. Signed-off-by: Jijiang Liu --- examples/vhost/main.c | 110 +++- 1 files changed, 107 insertions(+), 3 deletions(-) diff --git a/examples/vhost/main.c b/examples/vhost/main.c index 044c680

[dpdk-dev] [PATCH v4 5/8] sample/vhost:remove ip_hdr structure defination

2015-11-11 Thread Jijiang Liu
Remove the ip_hdr structure defination. Signed-off-by: Jijiang Liu --- examples/vhost/main.c | 15 +-- 1 files changed, 1 insertions(+), 14 deletions(-) diff --git a/examples/vhost/main.c b/examples/vhost/main.c index c081b18..044c680 100644 --- a/examples/vhost/main.c +++ b

[dpdk-dev] [PATCH v4 4/8] virtio/lib:dequeue vhost TX offload

2015-11-11 Thread Jijiang Liu
Dequeue vhost TX offload(CSUM and TSO) in vhost lib Signed-off-by: Jijiang Liu --- lib/librte_vhost/vhost_rxtx.c | 104 - 1 files changed, 103 insertions(+), 1 deletions(-) diff --git a/lib/librte_vhost/vhost_rxtx.c b/lib/librte_vhost/vhost_rxtx.c index

[dpdk-dev] [PATCH v4 3/8] virtio/lib:add vhost TX checksum support capabilities

2015-11-11 Thread Jijiang Liu
Add vhost TX offload(CSUM and TSO) support capabilities. Signed-off-by: Jijiang Liu --- lib/librte_vhost/virtio-net.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/lib/librte_vhost/virtio-net.c b/lib/librte_vhost/virtio-net.c index 14278de..81bd309 100644

[dpdk-dev] [PATCH v4 2/8] driver/virtio:record virtual address of virtio net header

2015-11-11 Thread Jijiang Liu
Record virtual address of virtio net header. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtio_ethdev.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index 74c00ee..dd39715 100644

[dpdk-dev] [PATCH v4 1/8] driver/virtio:add virtual address for virtio net header

2015-11-11 Thread Jijiang Liu
The virtual address for virtio net header need to be recorded. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtqueue.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/net/virtio/virtqueue.h b/drivers/net/virtio/virtqueue.h index 689c321..5b43eeb 100644

[dpdk-dev] [PATCH v4 0/8] add virtio offload support in us-vhost

2015-11-11 Thread Jijiang Liu
change, only keep vhost changes. add guest TX offload capabilities to support VM to VM case. split the cleanup code as a seperate patch. v3 change: rebase latest codes. v2 change: fill virtio device information for TX offloads. *** BLURB HERE *** Jijiang Liu (8): add virtual addr of virtio

[dpdk-dev] [PATCH v3 8/8] examples/vhost:support TX offload in vhost sample

2015-11-04 Thread Jijiang Liu
Change the vhost sample to support and test TX offload. Signed-off-by: Jijiang Liu --- examples/vhost/main.c | 128 ++--- 1 files changed, 111 insertions(+), 17 deletions(-) diff --git a/examples/vhost/main.c b/examples/vhost/main.c index 9eac2d0

[dpdk-dev] [PATCH v3 7/8] lib/librte_vhost:dequeue vhost TX offload

2015-11-04 Thread Jijiang Liu
Dequeue vhost TX offload in vhost lib. Signed-off-by: Jijiang Liu --- lib/librte_vhost/vhost_rxtx.c | 108 - 1 files changed, 107 insertions(+), 1 deletions(-) diff --git a/lib/librte_vhost/vhost_rxtx.c b/lib/librte_vhost/vhost_rxtx.c index 9322ce6

[dpdk-dev] [PATCH v3 6/8] driver/virtio:enqueue vhost TX offload

2015-11-04 Thread Jijiang Liu
Enqueue vhost TX checksum and TSO4/6 offload in virtio-net lib. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtio_rxtx.c | 61 ++ 1 files changed, 61 insertions(+), 0 deletions(-) diff --git a/drivers/net/virtio/virtio_rxtx.c b/drivers/net/virtio

[dpdk-dev] [PATCH v3 5/8] driver/virtio:enqueue vhost TX offload

2015-11-04 Thread Jijiang Liu
Enqueue vhost TX checksum and TSO4/6 offload in virtio-net lib. Signed-off-by: Jijiang Liu --- lib/librte_vhost/virtio-net.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/lib/librte_vhost/virtio-net.c b/lib/librte_vhost/virtio-net.c index 14278de..81bd309 100644

[dpdk-dev] [PATCH v3 4/8] driver/virtio:fill virtio device info for TX offload

2015-11-04 Thread Jijiang Liu
Fill virtio device info for TX offload. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtio_ethdev.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index cb5dfee..b831c02 100644

[dpdk-dev] [PATCH v3 3/8] driver/virtio:add vhost TX checksum support capability in virtio-net

2015-11-04 Thread Jijiang Liu
Add vhost TX checksum and TSO capabilities in virtio-net lib. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtio_ethdev.h |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.h b/drivers/net/virtio/virtio_ethdev.h index 9026d42

[dpdk-dev] [PATCH v3 2/8] driver/virtio: record virtual address of virtio net header

2015-11-04 Thread Jijiang Liu
Record virtual address of virtio net header. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtio_ethdev.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index 465d3cd..cb5dfee 100644

[dpdk-dev] [PATCH v3 1/8] driver/virtio:add virtual addr for virtio net header

2015-11-04 Thread Jijiang Liu
The virtual addr for virtio net header need to be recorded. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtqueue.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/net/virtio/virtqueue.h b/drivers/net/virtio/virtqueue.h index 689c321..5b43eeb 100644

[dpdk-dev] [PATCH v3 0/8] add vhost TX offload support

2015-11-04 Thread Jijiang Liu
: fill virtio device information for TX offloads. Jijiang Liu (8): add virtual address of virtio net header store virtual address of virtio hdr add vhost TX offload support capability in virtio-net fill virtio device information for TX offloads. add vhost TX offload support capability

[dpdk-dev] [PATCH v3 8/8] examples/vhost:support TX offload in vhost sample

2015-11-04 Thread Jijiang Liu
Change the vhost sample to support and test TX offload. Signed-off-by: Jijiang Liu --- examples/vhost/main.c | 128 ++--- 1 files changed, 111 insertions(+), 17 deletions(-) diff --git a/examples/vhost/main.c b/examples/vhost/main.c index 9eac2d0

[dpdk-dev] [PATCH v3 7/8] lib/librte_vhost:dequeue vhost TX offload

2015-11-04 Thread Jijiang Liu
Dequeue vhost TX offload in vhost lib. Signed-off-by: Jijiang Liu --- lib/librte_vhost/vhost_rxtx.c | 108 - 1 files changed, 107 insertions(+), 1 deletions(-) diff --git a/lib/librte_vhost/vhost_rxtx.c b/lib/librte_vhost/vhost_rxtx.c index 7026bfa

[dpdk-dev] [PATCH v3 6/8] driver/virtio:enqueue vhost TX offload

2015-11-04 Thread Jijiang Liu
Enqueue vhost TX checksum and TSO4/6 offload in virtio-net lib. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtio_rxtx.c | 61 ++ 1 files changed, 61 insertions(+), 0 deletions(-) diff --git a/drivers/net/virtio/virtio_rxtx.c b/drivers/net/virtio

[dpdk-dev] [PATCH v3 5/8] driver/virtio:enqueue vhost TX offload

2015-11-04 Thread Jijiang Liu
Enqueue vhost TX checksum and TSO4/6 offload in virtio-net lib. Signed-off-by: Jijiang Liu --- lib/librte_vhost/virtio-net.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/lib/librte_vhost/virtio-net.c b/lib/librte_vhost/virtio-net.c index 14278de..81bd309 100644

[dpdk-dev] [PATCH v3 4/8] driver/virtio:fill virtio device info for TX offload

2015-11-04 Thread Jijiang Liu
Fill virtio device info for TX offload. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtio_ethdev.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index cb5dfee..b831c02 100644

[dpdk-dev] [PATCH v3 3/8] driver/virtio:add vhost TX checksum support capability in virtio-net

2015-11-04 Thread Jijiang Liu
Add vhost TX checksum and TSO capabilities in virtio-net lib. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtio_ethdev.h |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.h b/drivers/net/virtio/virtio_ethdev.h index 9026d42

[dpdk-dev] [PATCH v3 2/8] driver/virtio: record virtual address of virtio net header

2015-11-04 Thread Jijiang Liu
Record virtual address of virtio net header. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtio_ethdev.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index 465d3cd..cb5dfee 100644

[dpdk-dev] [PATCH v3 1/8] driver/virtio:add virtual addr for virtio net header

2015-11-04 Thread Jijiang Liu
The virtual addr for virtio net header need to be recorded. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtqueue.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/net/virtio/virtqueue.h b/drivers/net/virtio/virtqueue.h index 7789411..530f840 100644

[dpdk-dev] [PATCH v3 0/8] add vhost TX offload support

2015-11-04 Thread Jijiang Liu
: fill virtio device information for TX offloads. Jijiang Liu (8): add virtual address of virtio net header store virtual address of virtio hdr add vhost TX offload support capability in virtio-net fill virtio device information for TX offloads. add vhost TX offload support capability

[dpdk-dev] [PATCH v2 2/2] lib/lpm:fix an initialization issue of valid_group in the delete_depth_small()

2015-10-30 Thread Jijiang Liu
Fixes an initialization issue of 'valid_group' in the delete_depth_small function. In this function, use new rte_lpm_tbl8_entry we call A to replace the old rte_lpm_tbl8_entry. But the valid_group do not set VALID, so it will be INVALID. Then when adding a new route which depth is > 24,the

[dpdk-dev] [PATCH v2 1/2] lib/lpm:fix an issue of condition check in delete_depth_small()

2015-10-30 Thread Jijiang Liu
Fixes an issue of check logic in delete_depth_small function. For a tbl24 entry, the 'ext_entry' field indicates whether we need to use tbl8_gindex to read the next_hop from a tbl8 entry, or whether it can be read directly from this entry. If a route is deleted, the prefix of previous route is

[dpdk-dev] [PATCH v2 0/2] Fix two issues in lpm

2015-10-30 Thread Jijiang Liu
Fixes two issues in the delete_depth_small() function. v2 changes: Split a patch into two patches for two issues. Add more clear issue description. *** BLURB HERE *** Jijiang Liu (2): fix an issue of condition check in delete_depth_small(). fix an initialization issue of valid_group

[dpdk-dev] [PATCH v2 8/9] examples/vhost:support TX offload in vhost sample

2015-10-30 Thread Jijiang Liu
Change the vhost sample to support and test TX offload. Signed-off-by: Jijiang Liu --- examples/vhost/main.c | 128 ++--- 1 files changed, 111 insertions(+), 17 deletions(-) diff --git a/examples/vhost/main.c b/examples/vhost/main.c index 9eac2d0

[dpdk-dev] [PATCH v2 6/9] driver/virtio:enqueue vhost TX offload

2015-10-30 Thread Jijiang Liu
Enqueue vhost TX checksum and TSO4/6 offload in virtio-net lib. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtio_rxtx.c | 61 ++ 1 files changed, 61 insertions(+), 0 deletions(-) diff --git a/drivers/net/virtio/virtio_rxtx.c b/drivers/net/virtio

[dpdk-dev] [PATCH v2 5/9] driver/virtio:add vhost TSO support capability

2015-10-30 Thread Jijiang Liu
Add vhost TSO support capability in vhost lib. Signed-off-by: Jijiang Liu --- lib/librte_vhost/virtio-net.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/lib/librte_vhost/virtio-net.c b/lib/librte_vhost/virtio-net.c index d0f1764..a5989a2 100644 --- a/lib

[dpdk-dev] [PATCH v2 3/9] driver/virtio:add vhost TX checksum support capability in virtio-net

2015-10-30 Thread Jijiang Liu
Add vhost TX checksum and TSO capabilities in virtio-net lib. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtio_ethdev.h |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.h b/drivers/net/virtio/virtio_ethdev.h index 9026d42

[dpdk-dev] [PATCH v2 2/9] driver/virtio: record virtual address of virtio net header

2015-10-30 Thread Jijiang Liu
Record virtual address of virtio net header. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtio_ethdev.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index 465d3cd..cb5dfee 100644

[dpdk-dev] [PATCH v2 1/9] driver/virtio:add virtual addr for virtio net header

2015-10-30 Thread Jijiang Liu
The virtual addr for virtio net header need to be recorded. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtqueue.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/net/virtio/virtqueue.h b/drivers/net/virtio/virtqueue.h index 7789411..530f840 100644

[dpdk-dev] [PATCH v2 0/9] add vhost TX offload support

2015-10-30 Thread Jijiang Liu
for TX offloads. Jijiang Liu (8): add virtual address of virtio net header store virtual address of virtio hdr add vhost TX offload support capability in virtio-net fill virtio device information for TX offloads. add vhost TX offload support capability in vhost enqueue TX offload

[dpdk-dev] [PATCH 8/8] app/testpmd:modify MAC address of csum forwarding

2015-10-21 Thread Jijiang Liu
The change will affect on the csum fwd performance. But I also think the change is necessary, or we cannot use csumonly fwd mode in a VM. Signed-off-by: Jijiang Liu --- app/test-pmd/csumonly.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/app/test-pmd/csumonly.c

[dpdk-dev] [PATCH 7/8] examples/vhost:support TX offload in vhost sample

2015-10-21 Thread Jijiang Liu
Change the vhost sample to support and test TX offload. Signed-off-by: Jijiang Liu --- examples/vhost/main.c | 128 ++--- 1 files changed, 111 insertions(+), 17 deletions(-) diff --git a/examples/vhost/main.c b/examples/vhost/main.c index 9eac2d0

[dpdk-dev] [PATCH 6/8] lib/librte_vhost:dequeue vhost TX offload

2015-10-21 Thread Jijiang Liu
Dequeue vhost TX offload in vhost lib. Signed-off-by: Jijiang Liu --- lib/librte_vhost/vhost_rxtx.c | 108 - 1 files changed, 107 insertions(+), 1 deletions(-) diff --git a/lib/librte_vhost/vhost_rxtx.c b/lib/librte_vhost/vhost_rxtx.c index 7026bfa

[dpdk-dev] [PATCH 4/8] driver/virtio:add vhost TX offload support capability

2015-10-21 Thread Jijiang Liu
Add vhost TX checksum and TSO support capability in vhost lib. Signed-off-by: Jijiang Liu --- lib/librte_vhost/virtio-net.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/lib/librte_vhost/virtio-net.c b/lib/librte_vhost/virtio-net.c index d0f1764..a5989a2 100644

[dpdk-dev] [PATCH 2/8] driver/virtio: record virtual address of virtio net header

2015-10-21 Thread Jijiang Liu
Record virtual address of virtio net header. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtio_ethdev.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index 465d3cd..cb5dfee 100644

[dpdk-dev] [PATCH 1/8] driver/virtio:add virtual addr for virtio net header

2015-10-21 Thread Jijiang Liu
The virtual addr for virtio net header need to be recorded. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtqueue.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/net/virtio/virtqueue.h b/drivers/net/virtio/virtqueue.h index 7789411..530f840 100644

[dpdk-dev] [PATCH 0/8] add vhost TX offload support

2015-10-21 Thread Jijiang Liu
support in the libs and change vhost sample and csum application to test these changes. [1]http://dpdk.org/ml/archives/dev/2015-September/023686.html Jijiang Liu (8): add virtual address of virtio net header store virtual address of virtio hdr add vhost TX offload support capability

[dpdk-dev] [PATCH] config:enlarge the default value of RTE_MAX_QUEUES_PER_PORT to 1024

2015-09-22 Thread Jijiang Liu
, each vmdq pool has 4 queues, there will be required 316 queues in a port. Signed-off-by: Jijiang Liu --- config/common_bsdapp |2 +- config/common_linuxapp |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/common_bsdapp b/config/common_bsdapp index c2374c0

[dpdk-dev] [PATCH 8/8] app/testpmd: modify the mac of csum forwarding

2015-09-17 Thread Jijiang Liu
The change will affect on the csum fwd performance. But I also think the change is necessary, or we cannot use csumonly fwd mode in a VM. Signed-off-by: Jijiang Liu --- app/test-pmd/csumonly.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/app/test-pmd/csumonly.c

[dpdk-dev] [PATCH 7/8] examples/vhost:support TSO in vhost sample

2015-09-17 Thread Jijiang Liu
Change the vhost sample in order to support and test TSO offload. Signed-off-by: Jijiang Liu --- examples/vhost/main.c | 20 ++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/examples/vhost/main.c b/examples/vhost/main.c index 1b137b9..482f7af 100644

[dpdk-dev] [PATCH 6/8] lib/librte_vhost:extend supported vhost features

2015-09-17 Thread Jijiang Liu
Add host TSO support into vhost features bits Signed-off-by: Jijiang Liu --- lib/librte_vhost/virtio-net.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/lib/librte_vhost/virtio-net.c b/lib/librte_vhost/virtio-net.c index b520ec5..2f9ac25 100644 --- a/lib

[dpdk-dev] [PATCH 5/8] lib/librte_vhost:dequeue vhost TSO offload

2015-09-17 Thread Jijiang Liu
Dequeue host TSO4/6 offload in host side. Signed-off-by: Jijiang Liu --- lib/librte_vhost/vhost_rxtx.c | 29 - 1 files changed, 28 insertions(+), 1 deletions(-) diff --git a/lib/librte_vhost/vhost_rxtx.c b/lib/librte_vhost/vhost_rxtx.c index 0d07338..b84ec64

[dpdk-dev] [PATCH 4/8] driver/virtio:enqueue TSO offload

2015-09-17 Thread Jijiang Liu
Enqueue host TSO4/6 offload in guest side. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtio_rxtx.c | 28 1 files changed, 28 insertions(+), 0 deletions(-) diff --git a/drivers/net/virtio/virtio_rxtx.c b/drivers/net/virtio/virtio_rxtx.c index c5b53bb

[dpdk-dev] [PATCH 3/8] driver/virtio: record virtual address of virtio net header

2015-09-17 Thread Jijiang Liu
Record virtual address of virtio net header. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtio_ethdev.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index 465d3cd..cb5dfee 100644

[dpdk-dev] [PATCH 2/8] driver/virtio:add virtual addr for virtio net header

2015-09-17 Thread Jijiang Liu
The virtual addr for virtio net header need to be recorded. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtqueue.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/net/virtio/virtqueue.h b/drivers/net/virtio/virtqueue.h index 7789411..530f840 100644

[dpdk-dev] [PATCH 1/8] driver/virtio:add vhost TSO support capability

2015-09-17 Thread Jijiang Liu
Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtio_ethdev.h |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.h b/drivers/net/virtio/virtio_ethdev.h index 9026d42..3a66491 100644 --- a/drivers/net/virtio/virtio_ethdev.h +++ b

[dpdk-dev] [PATCH 0/8] add vhost TSO capability

2015-09-17 Thread Jijiang Liu
The patch set add the negotiation between us-vhost and virtio-net for vhost TSO feature, and enqueue/dequeue vhost TSO offload and change vhost sample and csum application to test these. *** BLURB HERE *** Jijiang Liu (8): add host TSO support in virtio_ethdev.h file add virtual addr

[dpdk-dev] [RFC PATCH 8/8] app/testpmd: modify the mac of csum forwarding

2015-08-31 Thread Jijiang Liu
The change will affect on the csum fwd performance. But I also think the change is necessary, or we cannot use csumonly fwd mode in a VM. Signed-off-by: Jijiang Liu --- app/test-pmd/csumonly.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/app/test-pmd/csumonly.c

[dpdk-dev] [RFC PATCH 7/8] examples/vhost:support tso in vhost sample

2015-08-31 Thread Jijiang Liu
Change the vhost sample in order to support and test TSO offload. Signed-off-by: Jijiang Liu --- examples/vhost/main.c | 20 ++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/examples/vhost/main.c b/examples/vhost/main.c index 1b137b9..482f7af 100644

[dpdk-dev] [RFC PATCH 6/8] lib/librte_vhost:extend supported vhost features

2015-08-31 Thread Jijiang Liu
Add TSO into supported vhost features Signed-off-by: Jijiang Liu --- lib/librte_vhost/virtio-net.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/lib/librte_vhost/virtio-net.c b/lib/librte_vhost/virtio-net.c index b520ec5..2f9ac25 100644 --- a/lib/librte_vhost

[dpdk-dev] [RFC PATCH 5/8] lib/librte_vhost:dequeue vhost TSO offload

2015-08-31 Thread Jijiang Liu
Dequeue vhost TSO offload Signed-off-by: Jijiang Liu --- lib/librte_vhost/vhost_rxtx.c | 29 - 1 files changed, 28 insertions(+), 1 deletions(-) diff --git a/lib/librte_vhost/vhost_rxtx.c b/lib/librte_vhost/vhost_rxtx.c index 0d07338..9adfdb1 100644 --- a/lib

[dpdk-dev] [RFC PATCH 4/8] driver/virtio:enqueue TSO offload

2015-08-31 Thread Jijiang Liu
Enqueue TSO4/6 offload. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtio_rxtx.c | 23 +++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/drivers/net/virtio/virtio_rxtx.c b/drivers/net/virtio/virtio_rxtx.c index c5b53bb..4c2d838 100644 --- a/drivers

[dpdk-dev] [RFC PATCH 3/8] driver/virtio: record virtual address of virtio net header

2015-08-31 Thread Jijiang Liu
Record virtual address of virtio net header. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtio_ethdev.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index 465d3cd..cb5dfee 100644

[dpdk-dev] [RFC PATCH 2/8] driver/virtio: add virtual addr for virtio net header

2015-08-31 Thread Jijiang Liu
The virtual addr for virtio net header need to be recorded. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtqueue.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/net/virtio/virtqueue.h b/drivers/net/virtio/virtqueue.h index 7789411..530f840 100644

[dpdk-dev] [RFC PATCH 1/8] driver/virtio:add vhost TSO support capability

2015-08-31 Thread Jijiang Liu
Extend the VIRTIO_PMD_GUEST_FEATURES for supporting vhost TSO. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtio_ethdev.h |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.h b/drivers/net/virtio/virtio_ethdev.h index 9026d42

[dpdk-dev] [RFC PATCH 0/8] Add vhost TSO capability

2015-08-31 Thread Jijiang Liu
The patch set add the negotiation between us-vhost and virtio-net for vhost TSO feature, and enqueue/dequeue vhost TSO offload, and change vhost sample and csum application to test these. Jijiang Liu (8): add host TSO support in virtio_ethdev.h file add virtual addr for virtio net header

[dpdk-dev] [PATCH] i40e:remove unlikely check in i40e_xmit_pkts for checksum offload

2015-08-04 Thread Jijiang Liu
The i40e_xmit_pkts() is called, which often means HW offload is used here, so we had better remove 'unlikely' check for checksum offload. Signed-off-by: Jijiang Liu --- drivers/net/i40e/i40e_rxtx.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/i40e

[dpdk-dev] [PATCH] doc/testpmd_app_ug:add a comment for outer-ip option in csum

2015-07-17 Thread Jijiang Liu
Add a comment for outer-ip option in csum command. Set outer-ip option only when the packet is a IPv4 packet. Signed-off-by: Jijiang Liu --- doc/guides/testpmd_app_ug/testpmd_funcs.rst |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/doc/guides/testpmd_app_ug

[dpdk-dev] [PATCH] doc:announce ABI changes planned for struct rte_eth_dev to support up to 1024 queues per port

2015-07-08 Thread Jijiang Liu
The significant ABI change of all shared libraries is planned for struct rte_eth_dev to support up to 1024 queues per port which will be taken effect from release 2.2. Signed-off-by: Jijiang Liu --- doc/guides/rel_notes/abi.rst |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff

[dpdk-dev] [PATCH] config: revert the CONFIG_RTE_MAX_QUEUES_PER_PORT to 256

2015-07-08 Thread Jijiang Liu
Revert the CONFIG_RTE_MAX_QUEUES_PER_PORT to 256. The previous commit changed the size and the offsets of struct rte_eth_dev, so it is an ABI breakage. I revert it, and will send a deprecation notice for this. Signed-off-by: Jijiang Liu --- config/common_linuxapp |2 +- 1 files changed, 1

[dpdk-dev] [PATCH v2] doc/sample_app_ug:add a VXLAN sample guide

2015-07-03 Thread Jijiang Liu
. Signed-off-by: Jijiang Liu Signed-off-by: Thomas Long v2 changes: optimize the two pictures add tep_termination index in index.rst file fix a typo and a command line --- .../sample_app_ug/img/overlay_networking.svg | 786 .../sample_app_ug/img

  1   2   3   4   >