<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:宋体;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:黑体;
	panose-1:2 1 6 9 6 1 1 1 1 1;}
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:等线;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:"\@等线";
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:"\@宋体";
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:"\@黑体";
	panose-1:2 1 6 9 6 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	font-size:10.5pt;
	font-family:等线;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#954F72;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:等线;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:等线;}
/* Page Definitions */
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="ZH-CN" link="#0563C1" vlink="#954F72" style="text-justify-trim:punctuation">
<div class="WordSection1">
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US" style="font-size:12.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222;background:white">Hello,</span><span lang="EN-US" style="font-size:12.0pt;font-family:宋体"><o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;background:white"><span lang="EN-US" style="font-size:12.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;background:white"><span lang="EN-US" style="font-size:12.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222">We recently tested QINQ offload for intel E810 nic. [Ethernet controller: Intel Corporation Ethernet
 Controller E810-C for SFP (rev 02) Device id 8086:1593]<br>
relative software versions as below:<br>
DPDK: 21.11.1<br>
kernel driver: 1.7.16<br>
OS default DDP: 1.3.27<br>
Firmware: 3.1<br>
<br>
We've tested testpmd and the offload setting as below:<br>
struct rte_eth_rxmode rx_mode = {<br>
.offloads = DEV_RX_OFFLOAD_VLAN_EXTEND | DEV_RX_OFFLOAD_VLAN_STRIP | DEV_RX_OFFLOAD_QINQ_STRIP | DEV_RX_OFFLOAD_RSS_HASH,<br>
};<br>
<br>
struct rte_eth_txmode tx_mode = {<br>
.offloads = RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE | RTE_ETH_TX_OFFLOAD_VLAN_INSERT | RTE_ETH_TX_OFFLOAD_QINQ_INSERT,<br>
};<br>
<br>
We use traffic gen some QINQ packet with double vlan tag 0x8100,<br>
on rx side: the outer vlan tag has been stripped, but the inner vlan tag not, mbuf-&gt;vlan_tci_outer is 0, ol_flags: RTE_MBUF_F_RX_VLAN RTE_MBUF_F_RX_L4_CKSUM_GOOD RTE_MBUF_F_RX_IP_CKSUM_GOOD RTE_MBUF_F_RX_VLAN_STRIPPED RTE_MBUF_F_RX_OUTER_L4_CKSUM_UNKNOWN<br>
on tx side: we modified testpmd code, force to insert double vlan, mbuf-&gt;vlan_tci_outer = 101; mbuf-&gt;vlan_tci = 201; the outer vlan tag (mbuf-&gt;vlan_tci_outer) lost, packet send out by testpmd only have one vlan tag (201), ol_flags: RTE_MBUF_F_TX_VLAN | RTE_MBUF_F_TX_QINQ<br>
<br>
I believe this is a bug at the NVM firmware level or DDP package but still want someone else to confirm. We are trying to reach out to Intel as well to report the issue and get additional assistance. If anyone can assist with that, it would be appreciated.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="mso-line-height-alt:6.0pt"><span style="font-family:黑体;color:#5B9BD5">韩爽</span><span lang="EN-US" style="color:#5B9BD5"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:150%"><span style="line-height:150%;font-family:黑体;color:#1F497D">鲲鹏网络平台部门<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="mso-line-height-alt:6.0pt"><span lang="EN-US" style="font-family:黑体;color:green"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-family:黑体;color:#0070C0">北京奇安信集团</span><span lang="EN-US" style="font-family:&quot;Arial&quot;,sans-serif;color:#5B9BD5"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:&quot;Arial&quot;,sans-serif;color:#0070C0">Beijing Qi An Xin Group<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:黑体;color:green"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-family:黑体">手机<span lang="EN-US"> &#43;86 18600206283</span></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:黑体">邮箱 </span><span lang="EN-US" style="font-family:黑体;color:#595959"><a href="mailto:hanshuang@qianxin.com"><span style="color:blue">hanshuang@qianxin.com</span></a></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
</div>
</body>
</html>