DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Liu, Yong" <yong.liu@intel.com>
To: "Liu, Jijiang" <jijiang.liu@intel.com>, "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH v5 0/8]Support VxLAN on Fortville
Date: Sat, 11 Oct 2014 07:28:56 +0000	[thread overview]
Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E10CE5A29@SHSMSX103.ccr.corp.intel.com> (raw)
In-Reply-To: <1413006935-22535-1-git-send-email-jijiang.liu@intel.com>

Basic Information
        Patch name      Support VxLAN on Fortville
        Brief description about test purpose    Verify vxlan checksum detect/offload and tunnel filter work fine.
        Test Flag       Tested-by
        Tester name     yong.liu@intel.com
        Test environment
-       OS Environment
-       Compilation (GCC)
-       Hardware Info (CPU & NIC)
-       Virtualization environment /Configure   OS: Fedora20 3.15.8-200.fc20.x86_64
GCC: gcc version 4.8.3 20140624
CPU: Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz
NIC: Intel Corporation Ethernet Controller XL710 for 40GbE QSFP+ [8086:1583]



        Test Tool Chain information     N/A
        Commit ID       ee1a5470faa751c1fd07d23b86659fe7a68fd251
Detailed Testing information    DPDK SW Configuration   Default x86_64-native-linuxapp-gcc configuration
        Test Result Summary     Total 6 cases, 6 passed, 0 failed
        Test Case - name        vxlan_ipv4_detect
        Test Case - Description Check testpmd can receive and detect vxlan packet
        Test Case -test sample/application      Start testpmd with vxlan enabled and rss disabled.
testpmd -c ffff -n 4 -- -i --tunnel-type=1 --disble-rss --rxq=4 --txq=4 --nb-cores=8 --nb-ports=2

Set forward type to rxonly and enable verbose log.
testpmd>set fwd rxonly
testpmd>set verbose 1
testpmd>start

Send vxlan packets with udp|tcp|sctp inner L4 data
        Test Case -command / instruction
        Test Case - expected test result        testpmd can receive the vxlan packet with different inner L4 data and detect whether the packet is  vxlan packet
        Test Case - name        vxlan_ipv6_detect
        Test Case - Description Check testpmd can receive and detect ipv6 vxlan packet
        Test Case -test sample/application      Start testpmd with vxlan enabled and rss disabled.
testpmd -c ffff -n 4 -- -i --tunnel-type=1 --disble-rss --rxq=4 --txq=4 --nb-cores=8 --nb-ports=2

Set forward type to rxonly and enable verbose log.
testpmd>set fwd rxonly
testpmd>set verbose 1
testpmd>start

Send vxlan packets with outer IPv6 header and inner IPv6 header.
        Test Case -command / instruction
        Test Case - expected test result        testpmd can receive the vxlan packet with different inner L4 data and detect whether the packet is IPv6 vxlan packet
        Test Case - name        vxlan_ipv4_checksum_offload
        Test Case - Description Check testpmd can offload vxlan checksum and forward the packet
        Test Case -test sample/application      Start testpmd with vxlan enabled and rss disabled.
testpmd -c ffff -n 4 -- -i --tunnel-type=1 --disble-rss --rxq=4 --txq=4 --nb-cores=8 --nb-ports=2

Set csum packet forwarding mode and enable verbose log.
testpmd>set fwd csum
testpmd>set verbose 1
testpmd>start

Enable outer IP,UDP,TCP,SCTP and inner IP,UDP checksum offload when inner L4 protocal is UDP.
testpmd>tx_checksum set 0 0xf3

Enable outer IP,UDP,TCP,SCTP and inner IP,TCP,SCTP checksum offload when inner L4 protocal is TCP or SCTP.
testpmd>tx_checksum set 0 0xfd

Send ipv4 vxlan packet with invalid outer/inner l3 or l4 checksum first. Then check forwarded packet checksum is corrected and there's chksum error counter increased.
        Test Case -command / instruction
        Test Case - expected test result        testpmd can forwarded vxlan packet and the checksum is corrected. The chksum error counter also increased.
        Test Case - name        vxlan_ipv6_checksum_offload
        Test Case - Description Check testpmd can offload ipv6 vxlan checksum and forward the packet
        Test Case -test sample/application      Start testpmd with vxlan enabled and rss disabled.
testpmd -c ffff -n 4 -- -i --tunnel-type=1 --disble-rss --rxq=4 --txq=4 --nb-cores=8 --nb-ports=2

Set csum packet forwarding mode and enable verbose log.
testpmd>set fwd csum
testpmd>set verbose 1
testpmd>start

Enable outer IP,UDP,TCP,SCTP and inner IP,UDP checksum offload when inner L4 protocal is UDP.
testpmd>tx_checksum set 0 0xf3

Enable outer IP,UDP,TCP,SCTP and inner IP,TCP,SCTP checksum offload when inner L4 protocal is TCP or SCTP.
testpmd>tx_checksum set 0 0xfd

Send ipv6 vxlan packet with invalid outer/inner l3 or l4 checksum first. Then check forwarded packet checksum is corrected and there's chksum error counter increased.
        Test Case -command / instruction
        Test Case - expected test result        testpmd can forwarded vxlan packet and the checksum is corrected. The chksum error counter also increased.
        Test Case - name        tunnel_filter
        Test Case - Description Check FVL vxlan tunnel  filter function work on testpmd
        Test Case -test sample/application      Start testpmd with vxlan enabled and rss disabled.
testpmd -c ffff -n 4 -- -i --tunnel-type=1 --disble-rss --rxq=4 --txq=4 --nb-cores=8 --nb-ports=2

Set rxonly forwarding mode and enable verbose log.
testpmd>set fwd rxonly
testpmd>set verbose 1
testpmd>start

Add cloud filter with specified inner dst mac and inner vlan.
testpmd>tunnel_filter add 0 11:22:33:44:55:66 00:00:20:00:00:01 192.168.2.2 1 vxlan imac-ivlan 1 3

Add cloud filter with specified inner dst mac,inner vlan and tunnel id.

testpmd>tunnel_filter add 0 11:22:33:44:55:66 00:00:20:00:00:01 192.168.2.2 1 vxlan imac-ivlan-tenid 1 3

Add cloud filter with specified inner dst mac and tunnel id.
testpmd>tunnel_filter add 0 11:22:33:44:55:66 00:00:20:00:00:01 192.168.2.2 1 vxlan imac-tenid 1 3

Add cloud filter with specified inner dst mac.
testpmd>tunnel_filter add 0 11:22:33:44:55:66 00:00:20:00:00:01 192.168.2.2 1 vxlan imac 1 3

Add cloud filter with specified outer dst mac, inner dst mac and tunnel id.
testpmd>tunnel_filter add 0 11:22:33:44:55:66 00:00:20:00:00:01 192.168.2.2 1 vxlan omac-imac-tenid 1 3

Send vxlan packet matched the specified fields
        Test Case -command / instruction
        Test Case - expected test result        testpmd can received the  vxlan packet on the assigned queue 3.
        Test Case - name        tunnel_filter_invalid
        Test Case - Description Check FVL vxlan tunnel  filter invalid command cannot accepted by testpmd
        Test Case -test sample/application      Start testpmd with vxlan enabled and rss disabled.
testpmd -c ffff -n 4 -- -i --tunnel-type=1 --disble-rss --rxq=4 --txq=4 --nb-cores=8 --nb-ports=2

Add Clould filter with invalid Mac address.
Add Clould filter with invalid ip address.
Add Clould filter with invalid vlan.
Add Clould filter with invalid vni.
Add Clould filter with invalid queue id.
        Test Case -command / instruction
        Test Case - expected test result        testpmd will report the parameter is invalid.


> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Jijiang Liu
> Sent: Saturday, October 11, 2014 1:55 PM
> To: dev@dpdk.org
> Subject: [dpdk-dev] [PATCH v5 0/8]Support VxLAN on Fortville
>
> The patch set supports VxLAN on Fortville based on latest mbuf structure.
>
> It includes:
>  - Support VxLAN packet identification by configuring tunneling UDP port.
>  - Support VxLAN packet filters. It uses MAC and VLAN to point
>    to a queue. The filter types supported include below:
>    1. Inner MAC and Inner VLAN ID
>    2. Inner MAC address, inner VLAN ID and tenant ID.
>    3. Inner MAC and tenant ID
>    4. Inner MAC address
>    5. Outer MAC address, tenant ID and inner MAC
>  - Support VxLAN TX checksum offload, which include outer L3(IP), inner L3(IP)
> and inner L4(UDP,TCP and SCTP)
>
> Change notes:
>
>  v5) * Use the "packet_type" field to replace the "reserved2" field in the
> rte_mbuf structure.
>      * Add the "inner_l2_l3_len" field in the rte_mbuf structure.
>      * Add an offload flag PKT_TX_VXLAN_CKSUM in rte_mbuf.h
>      * Change i40e_txd_enable_checksum() function for VxLAN Tx checksum
> offload setting.
>
> jijiangl (8):
>   Support VxLAN packet identification in librte_ether
>   Support VxLAN packet identification in librte_pmd_i40e
>   Test vxlan packet identification
>   Add new filter framework
>   Implement API of VxLAN packet filter in librte_pmd_i40e
>   Test VxLAN packet filter API
>   Support VxLAN Tx checksum offload
>   Test VxLAN Tx checksum offload
>
>
>  app/test-pmd/cmdline.c            |  230 ++++++++++++++++++++-
>  app/test-pmd/config.c             |    6 +-
>  app/test-pmd/csumonly.c           |  196 ++++++++++++++++--
>  app/test-pmd/parameters.c         |   13 ++
>  app/test-pmd/rxonly.c             |   49 +++++
>  app/test-pmd/testpmd.c            |    8 +
>  app/test-pmd/testpmd.h            |    4 +
>  config/common_linuxapp            |    5 +
>  lib/librte_ether/Makefile         |    1 +
>  lib/librte_ether/rte_eth_ctrl.h   |  152 ++++++++++++++
>  lib/librte_ether/rte_ethdev.c     |   95 +++++++++
>  lib/librte_ether/rte_ethdev.h     |  108 ++++++++++
>  lib/librte_ether/rte_ether.h      |    8 +
>  lib/librte_mbuf/rte_mbuf.h        |   22 ++-
>  lib/librte_pmd_i40e/i40e_ethdev.c |  419
> ++++++++++++++++++++++++++++++++++++-
>  lib/librte_pmd_i40e/i40e_ethdev.h |    5 +
>  lib/librte_pmd_i40e/i40e_rxtx.c   |   53 +++++-
>  17 files changed, 1344 insertions(+), 30 deletions(-)
>  create mode 100644 lib/librte_ether/rte_eth_ctrl.h
>
> --
> 1.7.7.6

  parent reply	other threads:[~2014-10-11  7:21 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-11  5:55 Jijiang Liu
2014-10-11  5:55 ` [dpdk-dev] [PATCH v5 1/8]i40e:support VxLAN packet identification in librte_ether Jijiang Liu
2014-10-16 17:07   ` Thomas Monjalon
2014-10-11  5:55 ` [dpdk-dev] [PATCH v5 2/8]i40e:support VxLAN packet identification in librte_pmd_i40e Jijiang Liu
2014-10-13 16:12   ` De Lara Guarch, Pablo
2014-10-16 10:19     ` De Lara Guarch, Pablo
2014-10-16 19:56   ` Thomas Monjalon
2014-10-17  5:58     ` Liu, Jijiang
2014-10-17  7:39       ` Thomas Monjalon
2014-10-20  1:25         ` Liu, Jijiang
2014-10-11  5:55 ` [dpdk-dev] [PATCH v5 3/8]app/test-pmd:test VxLAN packet identification Jijiang Liu
2014-10-16 20:01   ` Thomas Monjalon
2014-10-17  5:23     ` Liu, Jijiang
2014-10-17  7:41       ` Thomas Monjalon
2014-10-11  5:55 ` [dpdk-dev] [PATCH v5 4/8]librte_ether:add a common filter API Jijiang Liu
2014-10-15 16:01   ` De Lara Guarch, Pablo
2014-10-16  1:24     ` Liu, Jijiang
2014-10-16 12:41   ` De Lara Guarch, Pablo
2014-10-16 20:09   ` Thomas Monjalon
2014-10-17  6:53     ` Liu, Jijiang
2014-10-17  7:47       ` Thomas Monjalon
2014-10-20  1:22         ` Liu, Jijiang
2014-10-11  5:55 ` [dpdk-dev] [PATCH v5 5/8]i40e:implement API of VxLAN packet filter in librte_pmd_i40e Jijiang Liu
2014-10-11  5:55 ` [dpdk-dev] [PATCH v5 6/8]app/testpmd:test VxLAN packet filter API Jijiang Liu
2014-10-11  5:55 ` [dpdk-dev] [PATCH v5 7/8]i40e:support VxLAN Tx checksum offload Jijiang Liu
2014-10-16 20:34   ` Thomas Monjalon
2014-10-17  5:20     ` Liu, Jijiang
2014-10-11  5:55 ` [dpdk-dev] [PATCH v5 8/8]app/testpmd:test " Jijiang Liu
2014-10-11  7:28 ` Liu, Yong [this message]
2014-10-11  7:56   ` [dpdk-dev] [PATCH v5 0/8]Support VxLAN on Fortville Liu, Yong
2014-10-16 20:18     ` Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86228AFD5BCD8E4EBFD2B90117B5E81E10CE5A29@SHSMSX103.ccr.corp.intel.com \
    --to=yong.liu@intel.com \
    --cc=dev@dpdk.org \
    --cc=jijiang.liu@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).