DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] app/testpmd: support more types for flow RSS
@ 2018-10-22  7:49 Wei Zhao
  2018-10-22 10:44 ` Iremonger, Bernard
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Wei Zhao @ 2018-10-22  7:49 UTC (permalink / raw)
  To: dev; +Cc: qi.z.zhang, stable, yuan.peng, Wei Zhao

Some user and tester require flow RSS to support more types,
so and "all" and "none" to make configuration more easy for users.

Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
---
 app/test-pmd/config.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
index bf3cd0a..f068da1 100644
--- a/app/test-pmd/config.c
+++ b/app/test-pmd/config.c
@@ -74,6 +74,10 @@ static const struct {
 };
 
 const struct rss_type_info rss_type_table[] = {
+	{ "all", ETH_RSS_IP | ETH_RSS_TCP |
+			ETH_RSS_UDP | ETH_RSS_SCTP |
+			ETH_RSS_L2_PAYLOAD },
+	{ "none", 0 },
 	{ "ipv4", ETH_RSS_IPV4 },
 	{ "ipv4-frag", ETH_RSS_FRAG_IPV4 },
 	{ "ipv4-tcp", ETH_RSS_NONFRAG_IPV4_TCP },
-- 
2.7.5

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [dpdk-dev] [PATCH] app/testpmd: support more types for flow RSS
  2018-10-22  7:49 [dpdk-dev] [PATCH] app/testpmd: support more types for flow RSS Wei Zhao
@ 2018-10-22 10:44 ` Iremonger, Bernard
  2018-10-23  9:37   ` Zhao1, Wei
  2018-10-23  6:20 ` Peng, Yuan
  2018-10-23  9:20 ` [dpdk-dev] [PATCH v2] " Wei Zhao
  2 siblings, 1 reply; 8+ messages in thread
From: Iremonger, Bernard @ 2018-10-22 10:44 UTC (permalink / raw)
  To: Zhao1, Wei, dev; +Cc: Zhang, Qi Z, stable, Peng, Yuan, Zhao1, Wei

Hi Zhao,

> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Wei Zhao
> Sent: Monday, October 22, 2018 8:49 AM
> To: dev@dpdk.org
> Cc: Zhang, Qi Z <qi.z.zhang@intel.com>; stable@dpdk.org; Peng, Yuan
> <yuan.peng@intel.com>; Zhao1, Wei <wei.zhao1@intel.com>
> Subject: [dpdk-dev] [PATCH] app/testpmd: support more types for flow RSS
> 
> Some user and tester require flow RSS to support more types, so and "all" and

typo in commit message "and "all"  " should be "add "all""

> "none" to make configuration more easy for users.
> 
> Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
> ---
>  app/test-pmd/config.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index
> bf3cd0a..f068da1 100644
> --- a/app/test-pmd/config.c
> +++ b/app/test-pmd/config.c
> @@ -74,6 +74,10 @@ static const struct {  };
> 
>  const struct rss_type_info rss_type_table[] = {
> +	{ "all", ETH_RSS_IP | ETH_RSS_TCP |
> +			ETH_RSS_UDP | ETH_RSS_SCTP |
> +			ETH_RSS_L2_PAYLOAD },
> +	{ "none", 0 },
>  	{ "ipv4", ETH_RSS_IPV4 },
>  	{ "ipv4-frag", ETH_RSS_FRAG_IPV4 },
>  	{ "ipv4-tcp", ETH_RSS_NONFRAG_IPV4_TCP },
> --
> 2.7.5

The "all" and "none" options are already documented in testpmd.
This looks like a fix, if so should there be a fixes line?

Regards,

Bernard.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [dpdk-dev] [PATCH] app/testpmd: support more types for flow RSS
  2018-10-22  7:49 [dpdk-dev] [PATCH] app/testpmd: support more types for flow RSS Wei Zhao
  2018-10-22 10:44 ` Iremonger, Bernard
@ 2018-10-23  6:20 ` Peng, Yuan
  2018-10-23  9:20 ` [dpdk-dev] [PATCH v2] " Wei Zhao
  2 siblings, 0 replies; 8+ messages in thread
From: Peng, Yuan @ 2018-10-23  6:20 UTC (permalink / raw)
  To: Zhao1, Wei, dev; +Cc: Zhang, Qi Z, stable

Tested-by: Peng, Yuan <yuan.peng@intel.com>

- Tested Branch: master
- Tested Commit: 739e13bcc98f562d3301f808ec76507ebae82e63
- OS: 4.5.5-300.fc24.x86_64
- GCC: gcc (GCC) 5.3.1 20151207 (Red Hat 5.3.1-2)
- CPU: Intel(R) Xeon(R) CPU E5-2699 v4 @ 2.20GHz
- NIC: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection [8086:10fb] (rev 01)
     Intel Corporation Ethernet Controller X710 for 10GbE SFP+ [8086:1572] (rev 01)
- Default x86_64-native-linuxapp-gcc configuration
- Prerequisites:
- Total 1 cases, 1 passed, 0 failed

- Case:
./usertools/dpdk-devbind.py -b igb_uio 05:00.0 05:00.1 1. Start the testpmd::

    ./testpmd -c 1ffff -n 4 -- -i --nb-cores=8 --rxq=4 --txq=4 --port-topology=chained
    testpmd> set fwd rxonly
    testpmd> set verbose 1
    testpmd> start

2. Show port default RSS fuctions::

    testpmd> show port 0 rss-hash
    RSS functions:
     ipv4-frag ipv4-other ipv6-frag ipv6-other ip

   Send the ipv4-other packets with different src/dst ip address.
   All the packets are distributed to all the four queues.

3. disable all RSS fuctions::

    testpmd> flow create 0 ingress pattern end actions rss types none end / end
    Flow rule #0 created
    testpmd> show port 0 rss-hash
    RSS disabled

   Send the ipv4-udp packets with different src/dst ip address.
   All the packets are distributed to queue 0.
   Notes: only i40e support the command,
   others don't support the command created.

4. enable RSS fuction with all RSS hash type::

    testpmd> flow create 0 ingress pattern end actions rss types all end / end
    Flow rule #1 created
    testpmd> show port 0 rss-hash
    RSS functions:
     all ipv4-frag ipv4-tcp ipv4-udp ipv4-sctp ipv4-other ipv6-frag ipv6-tcp ipv6-udp ipv6-sctp ipv6-other l2-payload ip udp tcp sctp

   Send the ipv4-udp packets with different src/dst ip address.
   All the packets are distributed to all the four queues.

-----Original Message-----
From: Zhao1, Wei 
Sent: Monday, October 22, 2018 3:49 PM
To: dev@dpdk.org
Cc: Zhang, Qi Z <qi.z.zhang@intel.com>; stable@dpdk.org; Peng, Yuan <yuan.peng@intel.com>; Zhao1, Wei <wei.zhao1@intel.com>
Subject: [PATCH] app/testpmd: support more types for flow RSS

Some user and tester require flow RSS to support more types, so and "all" and "none" to make configuration more easy for users.

Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
---
 app/test-pmd/config.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index bf3cd0a..f068da1 100644
--- a/app/test-pmd/config.c
+++ b/app/test-pmd/config.c
@@ -74,6 +74,10 @@ static const struct {  };
 
 const struct rss_type_info rss_type_table[] = {
+	{ "all", ETH_RSS_IP | ETH_RSS_TCP |
+			ETH_RSS_UDP | ETH_RSS_SCTP |
+			ETH_RSS_L2_PAYLOAD },
+	{ "none", 0 },
 	{ "ipv4", ETH_RSS_IPV4 },
 	{ "ipv4-frag", ETH_RSS_FRAG_IPV4 },
 	{ "ipv4-tcp", ETH_RSS_NONFRAG_IPV4_TCP },
--
2.7.5

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [dpdk-dev] [PATCH v2] app/testpmd: support more types for flow RSS
  2018-10-22  7:49 [dpdk-dev] [PATCH] app/testpmd: support more types for flow RSS Wei Zhao
  2018-10-22 10:44 ` Iremonger, Bernard
  2018-10-23  6:20 ` Peng, Yuan
@ 2018-10-23  9:20 ` Wei Zhao
  2018-10-23  9:50   ` Zhao1, Wei
  2018-10-23 10:11   ` Iremonger, Bernard
  2 siblings, 2 replies; 8+ messages in thread
From: Wei Zhao @ 2018-10-23  9:20 UTC (permalink / raw)
  To: dev; +Cc: qi.z.zhang, stable, yuan.peng, Wei Zhao

Some user and tester require flow RSS to support more types,
so add "all" and "none" to make configuration more easy for users.

Tested-by: Peng Yuan <yuan.peng@intel.com>
Signed-off-by: Wei Zhao <wei.zhao1@intel.com>

---

v2:
-fix typo in commit message.
---
 app/test-pmd/config.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
index bf3cd0a..f068da1 100644
--- a/app/test-pmd/config.c
+++ b/app/test-pmd/config.c
@@ -74,6 +74,10 @@ static const struct {
 };
 
 const struct rss_type_info rss_type_table[] = {
+	{ "all", ETH_RSS_IP | ETH_RSS_TCP |
+			ETH_RSS_UDP | ETH_RSS_SCTP |
+			ETH_RSS_L2_PAYLOAD },
+	{ "none", 0 },
 	{ "ipv4", ETH_RSS_IPV4 },
 	{ "ipv4-frag", ETH_RSS_FRAG_IPV4 },
 	{ "ipv4-tcp", ETH_RSS_NONFRAG_IPV4_TCP },
-- 
2.7.5

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [dpdk-dev] [PATCH] app/testpmd: support more types for flow RSS
  2018-10-22 10:44 ` Iremonger, Bernard
@ 2018-10-23  9:37   ` Zhao1, Wei
  0 siblings, 0 replies; 8+ messages in thread
From: Zhao1, Wei @ 2018-10-23  9:37 UTC (permalink / raw)
  To: Iremonger, Bernard, dev; +Cc: Zhang, Qi Z, stable, Peng, Yuan

Hi, Iremonger  Bernard

> -----Original Message-----
> From: Iremonger, Bernard
> Sent: Monday, October 22, 2018 6:45 PM
> To: Zhao1, Wei <wei.zhao1@intel.com>; dev@dpdk.org
> Cc: Zhang, Qi Z <qi.z.zhang@intel.com>; stable@dpdk.org; Peng, Yuan
> <yuan.peng@intel.com>; Zhao1, Wei <wei.zhao1@intel.com>
> Subject: RE: [dpdk-dev] [PATCH] app/testpmd: support more types for flow
> RSS
> 
> Hi Zhao,
> 
> > -----Original Message-----
> > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Wei Zhao
> > Sent: Monday, October 22, 2018 8:49 AM
> > To: dev@dpdk.org
> > Cc: Zhang, Qi Z <qi.z.zhang@intel.com>; stable@dpdk.org; Peng, Yuan
> > <yuan.peng@intel.com>; Zhao1, Wei <wei.zhao1@intel.com>
> > Subject: [dpdk-dev] [PATCH] app/testpmd: support more types for flow
> > RSS
> >
> > Some user and tester require flow RSS to support more types, so and
> > "all" and
> 
> typo in commit message "and "all"  " should be "add "all""

Yes, I will commit v2 for that. 
Thank you!

> 
> > "none" to make configuration more easy for users.
> >
> > Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
> > ---
> >  app/test-pmd/config.c | 4 ++++
> >  1 file changed, 4 insertions(+)
> >
> > diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index
> > bf3cd0a..f068da1 100644
> > --- a/app/test-pmd/config.c
> > +++ b/app/test-pmd/config.c
> > @@ -74,6 +74,10 @@ static const struct {  };
> >
> >  const struct rss_type_info rss_type_table[] = {
> > +	{ "all", ETH_RSS_IP | ETH_RSS_TCP |
> > +			ETH_RSS_UDP | ETH_RSS_SCTP |
> > +			ETH_RSS_L2_PAYLOAD },
> > +	{ "none", 0 },
> >  	{ "ipv4", ETH_RSS_IPV4 },
> >  	{ "ipv4-frag", ETH_RSS_FRAG_IPV4 },
> >  	{ "ipv4-tcp", ETH_RSS_NONFRAG_IPV4_TCP },
> > --
> > 2.7.5
> 
> The "all" and "none" options are already documented in testpmd.
> This looks like a fix, if so should there be a fixes line?
> 

Not a fix, this is used by rte_flow command line, not old CLI.

> Regards,
> 
> Bernard.
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [dpdk-dev] [PATCH v2] app/testpmd: support more types for flow RSS
  2018-10-23  9:20 ` [dpdk-dev] [PATCH v2] " Wei Zhao
@ 2018-10-23  9:50   ` Zhao1, Wei
  2018-10-23 10:11   ` Iremonger, Bernard
  1 sibling, 0 replies; 8+ messages in thread
From: Zhao1, Wei @ 2018-10-23  9:50 UTC (permalink / raw)
  To: dev; +Cc: Zhang, Qi Z, stable, Peng, Yuan, Iremonger, Bernard

Add Bernard into mailing list.


> -----Original Message-----
> From: Zhao1, Wei
> Sent: Tuesday, October 23, 2018 5:21 PM
> To: dev@dpdk.org
> Cc: Zhang, Qi Z <qi.z.zhang@intel.com>; stable@dpdk.org; Peng, Yuan
> <yuan.peng@intel.com>; Zhao1, Wei <wei.zhao1@intel.com>
> Subject: [PATCH v2] app/testpmd: support more types for flow RSS
> 
> Some user and tester require flow RSS to support more types, so add "all"
> and "none" to make configuration more easy for users.
> 
> Tested-by: Peng Yuan <yuan.peng@intel.com>
> Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
> 
> ---
> 
> v2:
> -fix typo in commit message.
> ---
>  app/test-pmd/config.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index
> bf3cd0a..f068da1 100644
> --- a/app/test-pmd/config.c
> +++ b/app/test-pmd/config.c
> @@ -74,6 +74,10 @@ static const struct {  };
> 
>  const struct rss_type_info rss_type_table[] = {
> +	{ "all", ETH_RSS_IP | ETH_RSS_TCP |
> +			ETH_RSS_UDP | ETH_RSS_SCTP |
> +			ETH_RSS_L2_PAYLOAD },
> +	{ "none", 0 },
>  	{ "ipv4", ETH_RSS_IPV4 },
>  	{ "ipv4-frag", ETH_RSS_FRAG_IPV4 },
>  	{ "ipv4-tcp", ETH_RSS_NONFRAG_IPV4_TCP },
> --
> 2.7.5

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [dpdk-dev] [PATCH v2] app/testpmd: support more types for flow RSS
  2018-10-23  9:20 ` [dpdk-dev] [PATCH v2] " Wei Zhao
  2018-10-23  9:50   ` Zhao1, Wei
@ 2018-10-23 10:11   ` Iremonger, Bernard
  2018-10-23 14:13     ` Ferruh Yigit
  1 sibling, 1 reply; 8+ messages in thread
From: Iremonger, Bernard @ 2018-10-23 10:11 UTC (permalink / raw)
  To: Zhao1, Wei, dev; +Cc: Zhang, Qi Z, stable, Peng, Yuan, Zhao1, Wei

> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Wei Zhao
> Sent: Tuesday, October 23, 2018 10:21 AM
> To: dev@dpdk.org
> Cc: Zhang, Qi Z <qi.z.zhang@intel.com>; stable@dpdk.org; Peng, Yuan
> <yuan.peng@intel.com>; Zhao1, Wei <wei.zhao1@intel.com>
> Subject: [dpdk-dev] [PATCH v2] app/testpmd: support more types for flow
> RSS
> 
> Some user and tester require flow RSS to support more types, so add "all"
> and "none" to make configuration more easy for users.
> 
> Tested-by: Peng Yuan <yuan.peng@intel.com>
> Signed-off-by: Wei Zhao <wei.zhao1@intel.com>

Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [dpdk-dev] [PATCH v2] app/testpmd: support more types for flow RSS
  2018-10-23 10:11   ` Iremonger, Bernard
@ 2018-10-23 14:13     ` Ferruh Yigit
  0 siblings, 0 replies; 8+ messages in thread
From: Ferruh Yigit @ 2018-10-23 14:13 UTC (permalink / raw)
  To: Iremonger, Bernard, Zhao1, Wei, dev; +Cc: Zhang, Qi Z, stable, Peng, Yuan

On 10/23/2018 11:11 AM, Iremonger, Bernard wrote:
>> -----Original Message-----
>> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Wei Zhao
>> Sent: Tuesday, October 23, 2018 10:21 AM
>> To: dev@dpdk.org
>> Cc: Zhang, Qi Z <qi.z.zhang@intel.com>; stable@dpdk.org; Peng, Yuan
>> <yuan.peng@intel.com>; Zhao1, Wei <wei.zhao1@intel.com>
>> Subject: [dpdk-dev] [PATCH v2] app/testpmd: support more types for flow
>> RSS
>>
>> Some user and tester require flow RSS to support more types, so add "all"
>> and "none" to make configuration more easy for users.
>>
>> Tested-by: Peng Yuan <yuan.peng@intel.com>
>> Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
> 
> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>

Applied to dpdk-next-net/master, thanks.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-10-23 14:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-22  7:49 [dpdk-dev] [PATCH] app/testpmd: support more types for flow RSS Wei Zhao
2018-10-22 10:44 ` Iremonger, Bernard
2018-10-23  9:37   ` Zhao1, Wei
2018-10-23  6:20 ` Peng, Yuan
2018-10-23  9:20 ` [dpdk-dev] [PATCH v2] " Wei Zhao
2018-10-23  9:50   ` Zhao1, Wei
2018-10-23 10:11   ` Iremonger, Bernard
2018-10-23 14:13     ` Ferruh Yigit

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).