test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Tu, Lijuan" <lijuan.tu@intel.com>
To: "Peng, Yuan" <yuan.peng@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Cc: "Peng, Yuan" <yuan.peng@intel.com>
Subject: Re: [dts] [PATCH]test_plans: add tx checksum case to	rxtx_offload_test_plan.rst
Date: Fri, 17 May 2019 02:00:26 +0000	[thread overview]
Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BA8252C@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <1557464427-38853-1-git-send-email-yuan.peng@intel.com>

Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Peng Yuan
> Sent: Friday, May 10, 2019 1:00 PM
> To: dts@dpdk.org
> Cc: Peng, Yuan <yuan.peng@intel.com>
> Subject: [dts] [PATCH]test_plans: add tx checksum case to
> rxtx_offload_test_plan.rst
> 
> Add tx checksum case to rxtx_offload_test_plan.rst
> 
> Signed-off-by: Peng Yuan <yuan.peng@intel.com>
> 
> diff --git a/test_plans/rxtx_offload_test_plan.rst
> b/test_plans/rxtx_offload_test_plan.rst
> index 8b08682..246e1e1 100644
> --- a/test_plans/rxtx_offload_test_plan.rst
> +++ b/test_plans/rxtx_offload_test_plan.rst
> @@ -193,6 +193,8 @@ Test case: Rx offload per-port setting in command-
> line  1. Enable rx cksum in command-line::
> 
>      ./testpmd -c f -n 4 -- -i --rxq=4 --txq=4 --enable-rx-cksum
> +    testpmd> set fwd csum
> +    testpmd> set verbose 1
>      testpmd> show port 0 rx_offload configuration
>      Rx Offloading Configuration of port 0 :
>        Port : IPV4_CKSUM UDP_CKSUM TCP_CKSUM @@ -201,6 +203,20 @@
> Test case: Rx offload per-port setting in command-line
>        Queue[ 2] :
>        Queue[ 3] :
> 
> +1) Send packets::
> +
> +    pkt1=Ether(dst="00:00:00:00:01:00",
> src="52:00:00:00:00:00")/IP(src="10.0.0.1")/TCP()/("X"*46)
> +    pkt2=Ether(dst="00:00:00:00:01:00",
> src="52:00:00:00:00:00")/IP(chksum=0x0)/TCP(chksum=0xf)/("X"*46)
> +    pkt3=Ether(dst="00:00:00:00:01:00",
> src="52:00:00:00:00:00")/IP(src="10.0.0.1")/UDP(chksum=0xf)/("X"*46)
> +    pkt4=Ether(dst="00:00:00:00:01:00",
> + src="52:00:00:00:00:00")/IP(chksum=0x0)/UDP()/("X"*46)
> +
> +2) Check the rx flags::
> +
> +    PKT_RX_L4_CKSUM_GOOD PKT_RX_IP_CKSUM_GOOD
> +    PKT_RX_L4_CKSUM_BAD PKT_RX_IP_CKSUM_BAD
> +    PKT_RX_L4_CKSUM_BAD PKT_RX_IP_CKSUM_GOOD
> +    PKT_RX_L4_CKSUM_UNKNOWN PKT_RX_IP_CKSUM_BAD
> +
>  2. Disable the rx cksum per_port::
> 
>      testpmd> port stop 0
> @@ -504,6 +520,68 @@ Test case: Tx offload per-port setting in command-
> line
>     The tester port received packets with vlan ID.
>     The per_port capability can be enabled by per_port command.
> 
> +Test case: Tx offload checksum
> +==============================
> +
> +1. Set checksum forward mode::
> +
> +    ./testpmd -c f -n 4 -- -i --rxq=4 --txq=4
> +    testpmd> set fwd csum
> +    testpmd> set verbose 1
> +    testpmd> show port 0 tx_offload configuration
> +    Rx Offloading Configuration of port 0 :
> +      Port :
> +      Queue[ 0] :
> +      Queue[ 1] :
> +      Queue[ 2] :
> +      Queue[ 3] :
> +
> +1) Send an ipv4-udp packet to the port::
> +
> +    sendp([Ether(dst="00:00:00:00:01:00")/IP(src="100.0.0.1",
> + dst="100.0.0.2")/UDP(sport=1024,dport=1025)], iface="enp131s0f3")
> +
> +2) Check the tx flags::
> +
> +    PKT_TX_L4_NO_CKSUM PKT_TX_IPV4
> +
> +2. Enable the tx ipv4_cksum of port 1::
> +
> +    testpmd> port stop 1
> +    testpmd> port config 1 tx_offload ipv4_cksum on
> +    testpmd> show port 1 tx_offload configuration
> +    Tx Offloading Configuration of port 1 :
> +      Port : IPV4_CKSUM
> +      Queue[ 0] : IPV4_CKSUM
> +      Queue[ 1] : IPV4_CKSUM
> +      Queue[ 2] : IPV4_CKSUM
> +      Queue[ 3] : IPV4_CKSUM
> +    testpmd> port start 1
> +    testpmd> start
> +
> +   The port can start normally.
> +
> +3. Send an ipv4-udp packet to the port::
> +
> +    sendp([Ether(dst="00:00:00:00:01:00")/IP(src="100.0.0.1",
> + dst="100.0.0.2")/UDP(sport=1024,dport=1025)], iface="enp131s0f3")
> +
> +   There is printing "PKT_TX_IP_CKSUM" and "PKT_TX_L4_NO_CKSUM" in the
> tx line.
> +
> +4. Disable tx ipv4_cksum and enable tx udp_cksum,
> +   then send the same ipv4-udp packet, there is printing
> "PKT_TX_UDP_CKSUM",
> +   but no "PKT_TX_IP_CKSUM".
> +
> +5. Try step 4 with "tcp_cksum" on, then send an ipv4-tcp packet::
> +
> +    sendp([Ether(dst="00:00:00:00:01:00")/IP(src="100.0.0.1",
> + dst="100.0.0.2")/TCP(sport=1024,dport=1025)], iface="enp131s0f3")
> +
> +   There is printing "PKT_TX_TCP_CKSUM".
> +
> +6. Try step 4 with "sctp_cksum" on, then send an ipv4-sctp packet::
> +
> +    sendp([Ether(dst="00:00:00:00:01:00")/IP(src="100.0.0.1",
> + dst="100.0.0.2")/sctp(sport=1024,dport=1025)], iface="enp131s0f3")
> +
> +   There is printing "PKT_TX_SCTP_CKSUM".
> +
>  Test case: Tx offload per-queue and per-port setting
> ====================================================
> 
> --
> 2.14.3


      reply	other threads:[~2019-05-17  2:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-10  5:00 Peng Yuan
2019-05-17  2:00 ` Tu, Lijuan [this message]

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=8CE3E05A3F976642AAB0F4675D0AD20E0BA8252C@SHSMSX101.ccr.corp.intel.com \
    --to=lijuan.tu@intel.com \
    --cc=dts@dpdk.org \
    --cc=yuan.peng@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).