Thread (11 messages) 11 messages, 3 authors, 2021-04-01

Re: [dpdk-dev] [PATCH] doc: add sampling and mirroring in testpmd guide

From: Jiawei(Jonny) Wang <hidden>
Date: 2021-03-31 06:58:47

Hi Thomas,
-----Original Message-----
From: Thomas Monjalon <redacted>
Sent: Friday, March 26, 2021 1:16 AM
To: Jiawei(Jonny) Wang <redacted>; Slava Ovsiienko
[off-list ref]; Ori Kam [off-list ref]; Ferruh Yigit
[off-list ref]
Cc: xiaoyun.li@intel.com; dev@dpdk.org; Andrew Rybchenko
[off-list ref]
Subject: Re: [PATCH] doc: add sampling and mirroring in testpmd guide

25/03/2021 18:10, Ferruh Yigit:
quoted
On 3/9/2021 1:18 PM, Jiawei Wang wrote:
quoted
Update documentation for sample action usage in testpmd and show the
command line example.
+1 to document this.

Indeed for all testpmd flow update, it must be mandatory to update
"Flow rules management" section for it, Ori what do you think?
quoted
Signed-off-by: Jiawei Wang <redacted>
Acked-by: Viacheslav Ovsiienko <redacted>
<...>
quoted
+Sample Sampling/Mirroring rules
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Sample/Mirroring rules can be set by the following commands
+
+NIC-RX Sampling rule, the matched ingress packets are duplicated
+and sent to the queue 1, and each second packets are marked with
+0x1234 and sent to queue 0.
+
Also each second packets duplicated to queue 1, isn't it, because of 'ratio 2'?
quoted
+::
+
+ testpmd> set sample_actions 0 mark id  0x1234 / queue index 0 /
+ testpmd> end flow create 0 ingress group 1 pattern eth / end
+ testpmd> actions
+        sample ratio 2 index 0 / queue index 1 / end
+
+E-Switch Sampling rule, the matched ingress packets are duplicated
+and sent to port id 2, and each second packets are sent to eswitch
manager.
quoted
quoted
+
what is 'E-Switch', or "eswitch manager", isn't the mirror rule generic?
This is the HW switch in Mellanox devices.
It should not be mentioned in this generic doc.
Yes, I will remove it and send v2 patch.
Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help