[v1] test_plans/dpdk_gro_lib_test_plan.rst
Commit Message
Add vhost code change before test
Signed-off-by: Yinan Wang <yinan.wang@intel.com>
---
test_plans/dpdk_gro_lib_test_plan.rst | 43 +++++++++++++++++----------
1 file changed, 27 insertions(+), 16 deletions(-)
@@ -84,12 +84,31 @@ Modify the testpmd code as following::
parse_ethernet(eth_hdr, &info);
l3_hdr = (char *)eth_hdr + info.l2_len;
+Also modify the dpdk code as following::
+
+ --- a/drivers/net/vhost/rte_eth_vhost.c
+ +++ b/drivers/net/vhost/rte_eth_vhost.c
+ @@ -1071,8 +1071,14 @@ eth_dev_info(struct rte_eth_dev *dev,
+ dev_info->min_rx_bufsize = 0;
+ dev_info->tx_offload_capa = DEV_TX_OFFLOAD_MULTI_SEGS |
+ - DEV_TX_OFFLOAD_VLAN_INSERT;
+ - dev_info->rx_offload_capa = DEV_RX_OFFLOAD_VLAN_STRIP;
+ + DEV_TX_OFFLOAD_VLAN_INSERT |
+ + DEV_TX_OFFLOAD_UDP_CKSUM |
+ + DEV_TX_OFFLOAD_TCP_CKSUM |
+ + DEV_TX_OFFLOAD_IPV4_CKSUM |
+ + DEV_TX_OFFLOAD_TCP_TSO;
+ + dev_info->rx_offload_capa = DEV_RX_OFFLOAD_VLAN_STRIP |
+ + DEV_RX_OFFLOAD_TCP_CKSUM |
+ + DEV_RX_OFFLOAD_UDP_CKSUM |
+ + DEV_RX_OFFLOAD_IPV4_CKSUM |
+ + DEV_RX_OFFLOAD_TCP_LRO;
+ }
+
Test flow
=========
-::
-
- NIC2(In kernel) -> NIC1(DPDK) -> testpmd(csum fwd) -> Vhost -> Virtio-net
+NIC2(In kernel) -> NIC1(DPDK) -> testpmd(csum fwd) -> Vhost -> Virtio-net
Test Case1: DPDK GRO lightmode test with tcp/ipv4 traffic
=========================================================
@@ -121,9 +140,7 @@ Test Case1: DPDK GRO lightmode test with tcp/ipv4 traffic
testpmd>port start 1
testpmd>start
-3. Set up vm with virto device and using kernel virtio-net driver:
-
- ::
+3. Set up vm with virto device and using kernel virtio-net driver::
taskset -c 13 \
qemu-system-x86_64 -name us-vhost-vm1 \
@@ -176,9 +193,7 @@ Test Case2: DPDK GRO heavymode test with tcp/ipv4 traffic
testpmd>port start 1
testpmd>start
-3. Set up vm with virto device and using kernel virtio-net driver:
-
- ::
+3. Set up vm with virto device and using kernel virtio-net driver::
taskset -c 13 \
qemu-system-x86_64 -name us-vhost-vm1 \
@@ -231,9 +246,7 @@ Test Case3: DPDK GRO heavymode_flush4 test with tcp/ipv4 traffic
testpmd>port start 1
testpmd>start
-3. Set up vm with virto device and using kernel virtio-net driver:
-
- ::
+3. Set up vm with virto device and using kernel virtio-net driver::
taskset -c 13 \
qemu-system-x86_64 -name us-vhost-vm1 \
@@ -308,9 +321,7 @@ Vxlan topology
testpmd>port start 1
testpmd>start
-3. Set up vm with virto device and using kernel virtio-net driver:
-
- ::
+3. Set up vm with virto device and using kernel virtio-net driver::
taskset -c 13 \
qemu-system-x86_64 -name us-vhost-vm1 \
@@ -335,4 +346,4 @@ Vxlan topology
5. Start iperf test, run iperf server at vm side and iperf client at host side, check throughput in log::
Host side : ip netns exec t2 iperf -c 50.1.1.2 -i 2 -t 60 -f g -m
- VM side: iperf -s -f g
\ No newline at end of file
+ VM side: iperf -s -f g