<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<div>
<div style="font-family:Calibri,Helvetica!important; font-size:20.0px; color:#333333">
<br>
<span style="color:#333333; font-size:20.0px">Acked-by: Jie Hai <<a href="mailto:haijie1@huawei.com" target="_BLANK">haijie1@huawei.com</a>></span><br>
<br>
<br>
<br>
<span style="color:#333333; font-size:20.0px">
<hr id="x_client_signature_separator" style="border-top:dotted 1px">
</span><br>
<span style="color:#333333; font-size:20.0px">Hai Jie</span><br>
<span style="color:#333333; font-size:20.0px">Email:<a href="mailto:haijie1@huawei.com" target="_BLANK">haijie1@huawei.com</a></span><br>
<br>
</div>
<div name="x_AnyOffice-Background-Image" style="border-top:1px solid #B5C4DF; padding:8px">
<div><b>发件人: </b>lihuisong (C)<<a href="mailto:lihuisong@huawei.com">lihuisong@huawei.com</a>></div>
<div><b>收件人: </b>dev<<a href="mailto:dev@dpdk.org">dev@dpdk.org</a>>;ferruh.yigit<<a href="mailto:ferruh.yigit@amd.com">ferruh.yigit@amd.com</a>>;haijie<<a href="mailto:haijie1@huawei.com">haijie1@huawei.com</a>>;Zhuangyuzeng (Yisen)<<a href="mailto:yisen.zhuang@huawei.com">yisen.zhuang@huawei.com</a>>;humin
(Q)<<a href="mailto:humin29@huawei.com">humin29@huawei.com</a>></div>
<div><b>抄送: </b>liuyonglong<<a href="mailto:liuyonglong@huawei.com">liuyonglong@huawei.com</a>>;lihuisong (C)<<a href="mailto:lihuisong@huawei.com">lihuisong@huawei.com</a>></div>
<div><b>主题: </b>[PATCH v2 3/3] doc/hns3: fix the usage description for RSS flow</div>
<div><b>时间: </b>2023-11-20 19:13:59</div>
<br>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">The hns3 driver supports for creating rule base on input tuple, hash key,<br>
queues and hash algorithm. But hash key, queues and hash algorithm are the<br>
global configuration for hardware which will affect other rules. The rule<br>
just setting input tuple is completely independent.<br>
<br>
Fixes: 63a0f65c9572 ("doc: add more description in hns3 guide")<br>
Cc: stable@dpdk.org<br>
<br>
Signed-off-by: Huisong Li <lihuisong@huawei.com><br>
---<br>
doc/guides/nics/hns3.rst | 42 ++++++++++++++++++++++++++--------------<br>
1 file changed, 28 insertions(+), 14 deletions(-)<br>
<br>
diff --git a/doc/guides/nics/hns3.rst b/doc/guides/nics/hns3.rst<br>
index 11d0c04884..e260b301a8 100644<br>
--- a/doc/guides/nics/hns3.rst<br>
+++ b/doc/guides/nics/hns3.rst<br>
@@ -239,36 +239,50 @@ Generic flow API<br>
<br>
- ``RSS Flow``<br>
<br>
- RSS Flow supports to set hash input set, hash function, enable hash<br>
- and configure queues.<br>
- For example:<br>
- Configure queues as queue 0, 1, 2, 3.<br>
+ RSS Flow supports for creating rule base on input tuple, hash key, queues<br>
+ and hash algorithm. But hash key, queues and hash algorithm are the global<br>
+ configuration for hardware which will affect other rules. The rule just<br>
+ setting input tuple is completely independent.<br>
+<br>
+ Run ``testpmd``:<br>
<br>
.. code-block:: console<br>
<br>
- testpmd> flow create 0 ingress pattern end actions rss types end \<br>
- queues 0 1 2 3 end / end<br>
+ dpdk-testpmd -a 0000:7d:00.0 -l 10-18 -- -i --rxq=8 --txq=8<br>
+<br>
+ All IP packets can be distributed to 8 queues.<br>
<br>
- Enable hash and set input set for IPv4-TCP.<br>
+ Set ipv4-tcp packet is distributed to 8 queues based on L3/L4 SRC only.<br>
<br>
.. code-block:: console<br>
<br>
- testpmd> flow create 0 ingress pattern eth / ipv4 / tcp / end \<br>
- actions rss types ipv4-tcp l3-src-only end queues end / end<br>
+ testpmd> flow create 0 ingress pattern eth / ipv4 / tcp / end actions \<br>
+ rss types ipv4-tcp l4-src-only l3-src-only end queues end / end<br>
<br>
- Set symmetric hash enable for flow type IPv4-TCP.<br>
+ Disable ipv4 packet RSS hash.<br>
<br>
.. code-block:: console<br>
<br>
- testpmd> flow create 0 ingress pattern eth / ipv4 / tcp / end \<br>
- actions rss types ipv4-tcp end queues end func symmetric_toeplitz / end<br>
+ testpmd> flow create 0 ingress pattern eth / ipv4 / end actions rss \<br>
+ types none end queues end / end<br>
<br>
- Set hash function as simple xor.<br>
+ Set hash function as symmetric toeplitz.<br>
<br>
.. code-block:: console<br>
<br>
testpmd> flow create 0 ingress pattern end actions rss types end \<br>
- queues end func simple_xor / end<br>
+ queues end func symmetric_toeplitz / end<br>
+<br>
+ In this case, all packets that enabled RSS are hashed using symmetric<br>
+ toeplitz algorithm.<br>
+<br>
+ Flush all RSS rules<br>
+<br>
+ .. code-block:: console<br>
+<br>
+ testpmd> flow flush 0<br>
+<br>
+ The RSS configurations of hardwre is back to the one ethdev ops set.<br>
<br>
Statistics<br>
----------<br>
-- <br>
2.33.0<br>
<br>
</div>
</span></font>
</body>
</html>