test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Tu, Lijuan" <lijuan.tu@intel.com>
To: "He, Zhiwei" <zhiwei.he@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Cc: "He, Zhiwei" <zhiwei.he@intel.com>
Subject: Re: [dts] [PATCH V1] test_plans: add IPV4 IPV6 tcp udp switchfilter non	pipline mode case for CVL
Date: Fri, 3 Jan 2020 03:04:36 +0000	[thread overview]
Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBA16B0@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <1577971712-26414-1-git-send-email-zhiwei.he@intel.com>

applied

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of zhiwei.he
> Sent: Thursday, January 2, 2020 9:29 PM
> To: dts@dpdk.org
> Cc: He, Zhiwei <zhiwei.he@intel.com>
> Subject: [dts] [PATCH V1] test_plans: add IPV4 IPV6 tcp udp switchfilter non
> pipline mode case for CVL
> 
> From: "zhiwei.he" <zhiwei.he@intel.com>
> 
> Signed-off-by: zhiwei.he <zhiwei.he@intel.com>
> ---
>  test_plans/cvl_switch_filter_test_plan.rst | 218
> +++++++++++++++++++++++++++--
>  1 file changed, 207 insertions(+), 11 deletions(-)
> 
> diff --git a/test_plans/cvl_switch_filter_test_plan.rst
> b/test_plans/cvl_switch_filter_test_plan.rst
> index 6537a77..43f5930 100644
> --- a/test_plans/cvl_switch_filter_test_plan.rst
> +++ b/test_plans/cvl_switch_filter_test_plan.rst
> @@ -64,28 +64,30 @@ Pattern and input set
>    |    Packet Types     |           Pattern             +-------------------------------------------
> +-------------------------------------------+
>    |                     |                               |              non-pipeline mode            |
> pipeline mode                |
> 
> +=====================+===============================+=========
> ==================================+=============================
> ==============+
> -  |                     | MAC_IPV4_FRAG                 |                                           | [Source
> IP], [Dest IP],                   |
> +  |                     | MAC_IPV4_FRAG                 | N/A
> 					| [Source IP], [Dest IP],                   |
>    |                     |                               |                                           | [DSCP]
> |
>    |                     +-------------------------------+-------------------------------------------+---
> ----------------------------------------+
> -  |                     | MAC_IPV4_PAY                  |                                           | [Source
> IP], [Dest IP],                   |
> +  |                     | MAC_IPV4_PAY                  | [Source IP], [Dest IP],[TOS],[TTL]
> | [Source IP], [Dest IP],                   |
>    |                     |                               |                                           | [IP protocol],
> [DSCP]                     |
>    |                     +-------------------------------+-------------------------------------------+---
> ----------------------------------------+
> -  |                     | MAC_IPV4_UDP_PAY              |                                           |
> [Source IP], [Dest IP],                   |
> -  |                     |                               |                                           | [DSCP],
> |
> +  |                     | MAC_IPV4_UDP_PAY              | [Source IP], [Dest
> IP],[TOS],[TTL],       | [Source IP], [Dest IP],                   |
> +  |                     |                               | [Source Port],[Dest Port]                 | [DSCP],
> |
>    |                     |                               |                                           | [Source Port],
> [Dest Port]                |
>    |                     +-------------------------------+-------------------------------------------+---
> ----------------------------------------+
> -  | IPv4/IPv6 + TCP/UDP	| MAC_IPV4_TCP                  |
> | [Source IP], [Dest IP],                   |
> -  |                     |                               |                                           | [DSCP],
> |
> +  | IPv4/IPv6 + TCP/UDP	| MAC_IPV4_TCP                  | [Source IP],
> [Dest IP],[TOS],[TTL],       | [Source IP], [Dest IP],                   |
> +  |                     |                               | [Source Port],[Dest Port]                 | [DSCP],
> |
>    |                     |                               |                                           | [Source Port],
> [Dest Port]                |
>    |                     +-------------------------------+-------------------------------------------+---
> ----------------------------------------+
> -  |                     | MAC_IPV6_FRAG                 |                                           | [Source
> IP], [Dest IP],                   |
> +  |                     | MAC_IPV6_FRAG                 | [Source IP], [Dest IP]                    |
> [Source IP], [Dest IP],                   |
>    |                     |                               |                                           | [TC]
> |
>    |                     +-------------------------------+-------------------------------------------+---
> ----------------------------------------+
> -  |                     | MAC_IPV6_UDP_PAY              |                                           |
> [Source IP], [Dest IP],                   |
> +  |                     | MAC_IPV6_UDP_PAY              | [Source IP], [Dest
> IP],[TOS],[TTL],       | [Source IP], [Dest IP],                   |
> +  |                     |                               | [Source Port],[Dest Port]                | [Source
> IP], [Dest IP],                   |
>    |                     |                               |                                           | [TC],
> |
>    |                     |                               |                                           | [Source Port],
> [Dest Port]                |
>    |                     +-------------------------------+-------------------------------------------+---
> ----------------------------------------+
> -  |                     | MAC_IPV6_TCP                  |                                           | [Source
> IP], [Dest IP],                   |
> +  |                     | MAC_IPV6_TCP                  | [Source IP], [Dest IP],[TOS],[TTL],
> | [Source IP], [Dest IP],                   |
> +  |                     |                               | [Source Port],[Dest Port]                 |
> [Source IP], [Dest IP],                   |
>    |                     |                               |                                           | [TC],
> |
>    |                     |                               |                                           | [Source Port],
> [Dest Port]                |
>    +---------------------+-------------------------------+-----------------------------------------
> --+-------------------------------------------+
> @@ -3552,8 +3554,8 @@ verify this packet not dropped
>     verify the rule does not exist, and send matched packets, the packets are
> not to the corresponding queues.
> 
> 
> -Test case: Non-tunnel pipeline mode
> -===================================
> +Test case: IPv4/IPv6 + TCP/UDP pipeline mode
> +============================================
> 
>  1. create switch filter rules and verify
> 
> @@ -4471,3 +4473,197 @@ verify this packet not dropped
>       testpmd> flow list 0
> 
>     verify the rule does not exist, and send matched packets, the packets are
> not to the corresponding queues.
> +
> +Test case: IPv4/IPv6 + TCP/UDP non-pipeline mode
> +================================================
> +
> +1. create fdir rules to make the fdir table full,
> +   which can be created as follows::
> +
> +     flow create 0 ingress pattern eth / ipv4 src is 192.168.0.0 dst is
> + 192.1.0.0 tos is 4 / tcp src is 25 dst is 23 / end actions queue index
> + 5 / end
> +
> +2. create switch filter rules and verify
> +
> +* MAC_IPV4_PAY
> +
> +1) to queue action
> +
> +create a rule::
> +
> +  testpmd> flow create 0 ingress pattern eth dst is 68:05:ca:8d:ed:a8 /
> + ipv4 src is 192.168.0.1 dst is 192.168.0.2 tos is 4 ttl is 2 / end
> + actions queue index 4 / end
> +
> +send matched packets::
> +
> +
> + sendp([Ether(dst="68:05:ca:8d:ed:a8")/IP(src="192.168.0.1",dst="192.16
> + 8.0.2",tos=4,ttl=2)/("X"*480)], iface="enp27s0f2", count=100)
> +
> +verify these 100 packets to queue 4
> +
> +2) drop action
> +
> +create a rule::
> +
> +  testpmd> flow create 0 ingress pattern eth dst is 68:05:ca:8d:ed:a8 /
> + ipv4 src is 192.168.0.1 dst is 192.168.0.3 tos is 4 ttl is 2 / end
> + actions drop / end
> +
> +send matched packets::
> +
> +
> + sendp([Ether(dst="68:05:ca:8d:ed:a8")/IP(src="192.168.0.1",dst="192.16
> + 8.0.3",tos=4,ttl=2)/("X"*480)], iface="enp27s0f2", count=100)
> +
> +verify theses 100 packets dropped
> +
> +* MAC_IPV4_UDP_PAY
> +
> +1) to queue action
> +
> +create a rule::
> +
> +  testpmd> flow create 0 ingress pattern eth dst is 68:05:ca:8d:ed:a8 /
> + ipv4 src is 192.168.0.1 dst is 192.168.0.2 tos is 4 ttl is 3 / udp src
> + is 25 dst is 23 / end actions queue index 2 / end
> +
> +send matched packets::
> +
> +sendp([Ether(dst="68:05:ca:8d:ed:a8")/IP(src="192.168.0.1",dst="192.168
> +.0.2",tos=4,ttl=3)/UDP(sport=25,dport=23)/("X"*480)],
> +iface="enp27s0f2", count=100)
> +
> +verify these 100 packets to queue 2
> +
> +2) drop action
> +
> +create a rule::
> +
> +  testpmd> flow create 0 ingress pattern eth dst is 68:05:ca:8d:ed:a8 /
> + ipv4 src is 192.168.0.1 dst is 192.168.0.3 tos is 4 / udp src is 25
> + dst is 23 / end actions drop / end
> +
> +send matched packets::
> +
> +sendp([Ether(dst="68:05:ca:8d:ed:a8")/IP(src="192.168.0.1",dst="192.168
> +.0.3",tos=4)/UDP(sport=25,dport=23)/("X"*480)], iface="enp27s0f2",
> +count=100)
> +
> +verify theses 100 packets dropped
> +
> +* MAC_IPV4_TCP_PAY
> +
> +1) to queue action
> +
> +create a rule::
> +
> +  testpmd> flow create 0 ingress pattern eth dst is 68:05:ca:8d:ed:a8 /
> + ipv4 src is 192.168.0.1 dst is 192.168.0.32 tos is 4 / tcp src is 25
> + dst is 23 / end actions queue index 3 / end
> +
> +send matched packets::
> +
> +sendp([Ether(dst="68:05:ca:8d:ed:a8")/IP(src="192.168.0.1",dst="192.168
> +.0.32",tos=4)/TCP(sport=25,dport=23)/("X"*480)], iface="enp27s0f2",
> +count=100)
> +
> +verify these 100 packets to queue 3
> +
> +2) drop action
> +
> +create a rule::
> +
> +  testpmd> flow create 0 ingress pattern eth dst is 68:05:ca:8d:ed:a8 /
> + ipv4 src is 192.168.0.1 dst is 192.168.0.3 tos is 4 / tcp src is 25
> + dst is 23 / end actions drop / end
> +
> +send matched packets::
> +
> +sendp([Ether(dst="68:05:ca:8d:ed:a8")/IP(src="192.168.0.1",dst="192.168
> +.0.3",tos=4)/TCP(sport=25,dport=23)/("X"*480)], iface="enp27s0f2",
> +count=100)
> +
> +verify theses 100 packets dropped
> +
> +
> +* MAC_IPV6_PAY
> +
> +1) to queue action
> +
> +create a rule::
> +
> +  testpmd> flow create 0 ingress pattern eth / ipv6 src is
> + CDCD:910A:2222:5498:8475:1111:3900:1536 dst is
> + CDCD:910A:2222:5498:8475:1111:3900:2020 / end actions queue index 8 /
> + end
> +
> +send matched packets::
> + sendp([Ether()/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536",
> +dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/("X"*480)],
> +iface="enp27s0f2", count=100)
> +
> +verify these 100 packets to queue 8
> +
> +2) drop action
> +
> +create a rule::
> +
> +  testpmd> flow create 0 ingress pattern eth / ipv6 src is
> + CDCD:910A:2222:5498:8475:1111:3900:1537 dst is
> + CDCD:910A:2222:5498:8475:1111:3900:2020 / end actions drop / end
> +
> +send matched packets::
> +  sendp([Ether()/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537",
> +dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/("X"*480)],
> +iface="enp27s0f2", count=100)
> +
> +verify theses 100 packets dropped
> +
> +* MAC_IPV6_FRAG
> +
> +1) to queue action
> +
> +create a rule::
> +
> +  testpmd> flow create 0 ingress pattern eth / ipv6 src is
> + CDCD:910A:2222:5498:8475:1111:3900:1536 dst is
> + CDCD:910A:2222:5498:8475:1111:3900:2022 / end actions queue index 10 /
> + end
> +
> +send matched packets::
> +  sendp([Ether()/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536",
> dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/("
> X"*480)], iface="enp27s0f2", count=100)
> +
> +verify these 100 packets to queue 10
> +
> +2) drop action
> +
> +create a rule::
> +
> +  testpmd> flow create 0 ingress pattern eth / ipv6 src is
> + CDCD:910A:2222:5498:8475:1111:3900:1536 dst is
> + CDCD:910A:2222:5498:8475:1111:3900:2023 / end actions drop / end
> +
> +send matched packets::
> +  sendp([Ether()/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536",
> +dst="CDCD:910A:2222:5498:8475:1111:3900:2023")/IPv6ExtHdrFragment()/(
> "X
> +"*480)], iface="enp27s0f2", count=100)
> +
> +verify theses 100 packets dropped
> +
> +* MAC_IPV6_UDP
> +
> +1) to queue action
> +
> +create a rule::
> +
> +  testpmd> flow create 0 ingress pattern eth / ipv6 dst is
> + CDCD:910A:2222:5498:8475:1111:3900:2020 src is
> + CDCD:910A:2222:5498:8475:1111:3900:1518 / udp src is 25 dst is 23 /
> + end actions queue index 6 / end
> +
> +send matched packets::
> +  sendp([Ether()/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1518",
> +dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/UDP(sport=25,dport=23
> )/(
> +"X"*480)], iface="enp27s0f2", count=100)
> +
> +verify these 100 packets to queue 6
> +
> +2) drop action
> +
> +create a rule::
> +
> +  testpmd> flow create 0 ingress pattern eth / ipv6 dst is
> + CDCD:910A:2222:5498:8475:1111:3900:2020 src is
> + CDCD:910A:2222:5498:8475:1111:3900:1528 / udp src is 25 dst is 23 /
> + end actions drop / end
> +
> +send matched packets::
> +  sendp([Ether()/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1528",
> +dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/UDP(sport=25,dport=23
> )/(
> +"X"*480)], iface="enp27s0f2", count=100)
> +
> +verify theses 100 packets dropped
> +
> +* MAC_IPV6_TCP
> +
> +1) to queue action
> +
> +create a rule::
> +
> +  testpmd> flow create 0 ingress pattern eth / ipv6 dst is
> + CDCD:910A:2222:5498:8475:1111:3900:2020 src is
> + CDCD:910A:2222:5498:8475:1111:3900:1515 / tcp / end actions queue
> + index 12 / end
> +
> +send matched packets::
> +  sendp([Ether()/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1515",
> +dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/TCP()/("X"*480)],
> +iface="enp27s0f2", count=100)
> +
> +verify these 100 packets to queue 12
> +
> +2) drop action
> +
> +create a rule::
> +
> +  testpmd> flow create 0 ingress pattern eth / ipv6 dst is
> + CDCD:910A:2222:5498:8475:1111:3900:2020 src is
> + CDCD:910A:2222:5498:8475:1111:3900:1516 / tcp / end actions drop / end
> +
> +send matched packets::
> +  sendp([Ether()/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1516",
> +dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/TCP()/("X"*480)],
> +iface="enp27s0f2", count=100)
> +
> +verify theses 100 packets dropped
> +
> +3. verify rules can be listed and destroyed::
> +
> +     testpmd> flow list 0
> +
> +   verify the rule exists in the list.
> +   destroy the rule, suppose the rule number is 0::
> +
> +     testpmd> flow destroy 0 rule 0
> +     testpmd> flow list 0
> +
> +   verify the rule does not exist, and send matched packets, the packets are
> not to the corresponding queues.
> +
> --
> 1.8.3.1


      reply	other threads:[~2020-01-03  3:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-02 13:28 zhiwei.he
2020-01-03  3:04 ` 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=8CE3E05A3F976642AAB0F4675D0AD20E0BBA16B0@SHSMSX101.ccr.corp.intel.com \
    --to=lijuan.tu@intel.com \
    --cc=dts@dpdk.org \
    --cc=zhiwei.he@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).