<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">在 2023/2/18 4:43, Ferruh Yigit 写道:<br>
</div>
<blockquote type="cite"
cite="mid:eb9a8e27-4eaf-ac7a-7d28-8b916122f6f0@amd.com">
<pre class="moz-quote-pre" wrap="">On 1/3/2023 2:30 AM, <a class="moz-txt-link-abbreviated moz-txt-link-freetext" href="mailto:wushaohua@chinatelecom.cn">wushaohua@chinatelecom.cn</a> wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">From: Shaohua Wu <a class="moz-txt-link-rfc2396E" href="mailto:wushaohua@chinatelecom.cn"><wushaohua@chinatelecom.cn></a>
Add the vxlan packet sending module to actively send
vxlan packets using a common network adapter.
The default vni is 1000.
example:
./dpdk-testpmd -l 32-47 -n 16 --file-prefix pg0 -- -i
--rxq=16 --txq=16 --rxd=1024 --txd=1024
--txpkts=64 --burst=64 --mbuf-size=4096
--nb-cores=15 --underlay_tx_only
--underlay-eth-peer=0,f0:00:00:00:00:66
--eth-peer=0,08:c0:eb:3e:87:af
--utx-ip=11.0.0.1,11.0.0.2
--tx-ip=30.0.0.1,30.0.0.2
--forward-mode=tuntxonly
--txonly-multi-flow
Signed-off-by: Shaohua Wu <a class="moz-txt-link-rfc2396E" href="mailto:wushaohua@chinatelecom.cn"><wushaohua@chinatelecom.cn></a>
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">Hi Shaohua,
This is a good feature but I am not sure if this is in the scope of
testpmd application.
Testpmd has basic packet generation capabilities, and it is useful for
quick/dirty testing, but for more advanced packet generation perhaps
other tools like pktgen [1] can be used, what do you think?
What is the justification to have this feature in testpmd, and what is
your usecase?
[1]
<a class="moz-txt-link-freetext" href="https://git.dpdk.org/apps/pktgen-dpdk/">https://git.dpdk.org/apps/pktgen-dpdk/</a></pre>
</blockquote>
<p>Hi Ferruh,</p>
<p>Thank you for your review.From what I know now pktgen doesn't seem to support the construction of vxlan packets.<span style="color: rgb(42, 43, 46); font-family: "PingFang SC", "Segoe UI", Arial, "Microsoft YaHei", 微软雅黑, 宋体, "Malgun Gothic", sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-line; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"></span><span style="color: rgb(42, 43, 46); font-family: "PingFang SC", "Segoe UI", Arial, "Microsoft YaHei", 微软雅黑, 宋体, "Malgun Gothic", sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-line; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"></span></p>
<p data-group="1-1" class="src grammarSection" style="box-sizing:
border-box; margin: 0px 0px 2px; padding: 0px; line-height: 21px;
display: inline; font-style: normal; font-weight: 400; font-size:
var(--main-font-size);">In a real test scenario, testpmd only sends bare packets and cannot cover test scenarios, such as ovs
decap performance. <br>
</p>
<p data-group="1-1" class="src grammarSection" style="box-sizing:
border-box; margin: 0px 0px 2px; padding: 0px; line-height: 21px;
display: inline; font-style: normal; font-weight: 400; font-size:
var(--main-font-size);">Currently, testpmd of this patch is used, and the packet sending performance is 22+Mpps
with a 25G network adapter.<span style="color: rgb(42, 43, 46); font-family: "PingFang SC", "Segoe UI", Arial, "Microsoft YaHei", 微软雅黑, 宋体, "Malgun Gothic", sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-line; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"></span></p>
<br>
<p data-group="1-1" class="src grammarSection" style="box-sizing:
border-box; margin: 0px 0px 2px; padding: 0px; line-height: 21px;
display: inline; font-style: normal; font-weight: 400; font-size:
var(--main-font-size);">This is necessary for testing DPU devices or virtualization scenarios.</p>
<p data-group="1-1" class="src grammarSection" style="box-sizing:
border-box; margin: 0px 0px 2px; padding: 0px; line-height: 21px;
display: inline; font-style: normal; font-weight: 400; font-size:
var(--main-font-size);"><br>
</p>
<p data-group="1-1" class="src grammarSection" style="box-sizing:
border-box; margin: 0px 0px 2px; padding: 0px; line-height: 21px;
display: inline; font-style: normal; font-weight: 400; font-size:
var(--main-font-size);"><br>
</p>
<p data-group="1-1" class="src grammarSection" style="box-sizing:
border-box; margin: 0px 0px 2px; padding: 0px; line-height: 21px;
display: inline; font-style: normal; font-weight: 400; font-size:
var(--main-font-size);"><span style="color: rgb(0, 0, 0);
font-family: "Microsoft YaHei UI", Tahoma; font-size:
14px; font-style: normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: 400; letter-spacing:
normal; orphans: 2; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); text-decoration-style:
initial; text-decoration-color: initial; display: inline
!important; float: none;">Best regards.Shaohua</span></p>
<blockquote type="cite"
cite="mid:eb9a8e27-4eaf-ac7a-7d28-8b916122f6f0@amd.com"> </blockquote>
</body>
</html>