app/testpmd: support more types for flow RSS
PATCH 1/1 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.
--- app/test-pmd/config.c | 4 ++++ 1 file changed, 4 insertions(+)
app/test-pmd/config.c +4 -0
@@ -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 },
Signature · 1 line
2.7.5
Hi Zhao,
Quoted 9 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Wei Zhao
Sent: Monday, October 22, 2018 8:49 AM
To: [email protected]
Cc: Zhang, Qi Z <[email protected]>; [email protected]; Peng, Yuan <[email protected]>; Zhao1, Wei <[email protected]>
Subject: [dpdk-dev] [PATCH] app/testpmd: support more types for flow RSSSome user and tester require flow RSS to support more types, so and "all" and
typo in commit message "and "all" " should be "add "all""
Quoted 22 lines
"none" to make configuration more easy for users.
Signed-off-by Wei Zhao <[email protected]>--- app/test-pmd/config.c | 4 ++++ 1 file changed, 4 insertions(+)app/test-pmd/config.c index renamed from app/test-pmd/config.c +0
-0bf3cd0a..f068da1 100644
app/test-pmd/config.c +4
-1@@ -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 }, --
Quoted 1 line
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.
- 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: [email protected]
Cc: Zhang, Qi Z <[email protected]>; [email protected]; Peng, Yuan <[email protected]>; Zhao1, Wei <[email protected]>
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.
--- app/test-pmd/config.c | 4 ++++ 1 file changed, 4 insertions(+)
app/test-pmd/config.c +4 -1
@@ -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
PATCH v2 1/1 app/testpmd: support more types for flow RSS
In reply to Wei ZhaoSome user and tester require flow RSS to support more types, so add "all" and "none" to make configuration more easy for users.
---
v2:
-fix typo in commit message.
--- app/test-pmd/config.c | 4 ++++ 1 file changed, 4 insertions(+)
app/test-pmd/config.c +4 -0
@@ -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 },
Signature · 1 line
2.7.5
Hi, Iremonger Bernard
Quoted 20 lines
-----Original Message-----
From: Iremonger, Bernard
Sent: Monday, October 22, 2018 6:45 PM
To: Zhao1, Wei <[email protected]>; [email protected]
Cc: Zhang, Qi Z <[email protected]>; [email protected]; Peng, Yuan <[email protected]>; Zhao1, Wei <[email protected]>
Subject: RE: [dpdk-dev] [PATCH] app/testpmd: support more types for flow RSSHi Zhao,
Quoted 9 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Wei Zhao
Sent: Monday, October 22, 2018 8:49 AM
To: [email protected]
Cc: Zhang, Qi Z <[email protected]>; [email protected]; Peng, Yuan <[email protected]>; Zhao1, Wei <[email protected]>
Subject: [dpdk-dev] [PATCH] app/testpmd: support more types for flow RSS
Quoted 4 lines
Quoted 2 lines
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!
Quoted 14 lines
Quoted 14 lines
"none" to make configuration more easy for users.
Signed-off-by Wei Zhao <[email protected]>--- app/test-pmd/config.c | 4 ++++ 1 file changed, 4 insertions(+)app/test-pmd/config.c index renamed from app/test-pmd/config.c +0
-0bf3cd0a..f068da1 100644
app/test-pmd/config.c +0
-0@@ -74,6 +74,10 @@ static const struct { };
Quoted 14 lines
Quoted 10 lines
app/test-pmd/config.c +4
-1const 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.
Quoted 4 lines
Regards,
Bernard.
Add Bernard into mailing list.
Quoted 38 lines
-----Original Message-----
From: Zhao1, Wei
Sent: Tuesday, October 23, 2018 5:21 PM
To: [email protected]
Cc: Zhang, Qi Z <[email protected]>; [email protected]; Peng, Yuan <[email protected]>; Zhao1, Wei <[email protected]>
Subject: [PATCH v2] app/testpmd: support more types for flow RSSSome 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 <[email protected]>Signed-off-by Wei Zhao <[email protected]>---
v2:
(quoted diff) +0
-2-fix typo in commit message. --- app/test-pmd/config.c | 4 ++++ 1 file changed, 4 insertions(+)app/test-pmd/config.c index renamed from app/test-pmd/config.c +0
-0bf3cd0a..f068da1 100644
app/test-pmd/config.c +4
-1@@ -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
Quoted 9 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Wei Zhao
Sent: Tuesday, October 23, 2018 10:21 AM
To: [email protected]
Cc: Zhang, Qi Z <[email protected]>; [email protected]; Peng, Yuan <[email protected]>; Zhao1, Wei <[email protected]>
Subject: [dpdk-dev] [PATCH v2] app/testpmd: support more types for flow RSS
Quoted 5 lines
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 <[email protected]>Signed-off-by Wei Zhao <[email protected]>
Ferruh Yigit
AppliedQuoted 9 lines · Bernard
Quoted 9 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Wei Zhao
Sent: Tuesday, October 23, 2018 10:21 AM
To: [email protected]
Cc: Zhang, Qi Z <[email protected]>; [email protected]; Peng, Yuan <[email protected]>; Zhao1, Wei <[email protected]>
Subject: [dpdk-dev] [PATCH v2] app/testpmd: support more types for flow RSS
Quoted 7 lines
Quoted 5 lines
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 <[email protected]>Signed-off-by Wei Zhao <[email protected]>
Applied to dpdk-next-net/master, thanks.