<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div dir="auto">Hi Patrick,</div>
<div dir="auto"><br>
</div>
<div dir="auto">11/26 16:00 UTC works <span>for me.</span></div>
<div dir="auto"><span>Please <span>let me know which link to join.</span></span></div>
<div dir="auto"><span><span><br>
</span></span></div>
<div dir="auto"><span><span>Thanks,</span></span></div>
<div dir="auto"><span><span>Bharati.</span></span></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Patrick Robb <probb@iol.unh.edu><br>
<b>Sent:</b> Monday, November 25, 2024 9:27:29 PM<br>
<b>To:</b> Bharati Bhole - Geminus <c_bharatib@xsightlabs.com><br>
<b>Cc:</b> dts@dpdk.org <dts@dpdk.org>; Nicholas Pratte <npratte@iol.unh.edu>; Dean Marx <dmarx@iol.unh.edu>; Paul Szczepanek <Paul.Szczepanek@arm.com>; Luca Vizzarro <Luca.Vizzarro@arm.com>; NBU-Contact-Thomas Monjalon (EXTERNAL) <thomas@monjalon.net>; dev
<dev@dpdk.org><br>
<b>Subject:</b> Re: Doubts in JumboFrames and stats_checks tests in DTS.</font>
<div> </div>
</div>
<div>
<div dir="ltr">Hi Bharati,
<div><br>
</div>
<div>It might be easiest to address your questions over a video conference call instead of email. Would this be okay? </div>
<div><br>
</div>
<div>I am free tomorrow 11/26 16:00-18:00 UTC, or Wednesday 11/27 14:00-16:00 UTC and 20:00-22:00 UTC. Or I have other availability if none of these work.</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Mon, Nov 25, 2024 at 5:45 AM Bharati Bhole - Geminus <<a href="mailto:c_bharatib@xsightlabs.com">c_bharatib@xsightlabs.com</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div class="x_msg5719228895142415359">
<div dir="ltr">
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi Patrik,</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I used site - <span style="color:black"><a href="https://dpdk.org/git/dpdk" originalsrc="https://dpdk.org/git/dpdk" shash="LtZA/w9EwDb039NncGKlPBc2BkajoOftKP4/+9MhMcnZJ+JOljV0EcMrnwPL/kIbFqQLIHNU9UOhZQHy9U4K79kcHbD29MO2WC/1eeIM7bXzDckkCCb/zEBIoI36zHOqJFq9fsXW13+uLGeRvvUiGL0vkU3CbqFSAFZOWINGKoA=" id="x_m_5719228895142415359LPlnkOWAf2b00ad8-468f-e825-8a14-ba29c9963612" title="dpdk Git repository" rel="vcs-git" target="_blank" style="color:black; text-align:left">https://dpdk.org/git/dpdk</a> </span>to
clone the DPDK code. I tried to go through the DTS/README.md file.</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
This file says, it uses docker container for dev as well as test execution. But I did not find any steps for setting up the test environment for it.</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I tried to look for the steps at <a href="https://doc.dpdk.org/guides/tools/dts.html" originalsrc="https://doc.dpdk.org/guides/tools/dts.html" shash="lVwwUXDgmx0r8t09qw8OmYSF/rEmRnnThycdoT/sdq2xOsw71ZDB2J08pJwrgAp/ig92YaqMcTPtqCsU/GZkGLBVomo6FXNYFFuuVoNocohTSVxr7donKo8HlL757yK/358fyGMluXDVMjwLtKYeEQB+u2FlsvUIxcKpOmZf/EU=" id="x_m_5719228895142415359LPlnk805421" target="_blank">
https://doc.dpdk.org/guides/tools/dts.html</a> but its not there.</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Can you please point me to the document for the execution steps?</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Thanks,</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Bharati.</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div id="x_m_5719228895142415359appendonsend"></div>
<hr style="display:inline-block; width:98%">
<div id="x_m_5719228895142415359divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Patrick Robb <<a href="mailto:probb@iol.unh.edu" target="_blank">probb@iol.unh.edu</a>><br>
<b>Sent:</b> 22 November 2024 10:29 PM<br>
<b>To:</b> Bharati Bhole - Geminus <<a href="mailto:c_bharatib@xsightlabs.com" target="_blank">c_bharatib@xsightlabs.com</a>><br>
<b>Cc:</b> <a href="mailto:dts@dpdk.org" target="_blank">dts@dpdk.org</a> <<a href="mailto:dts@dpdk.org" target="_blank">dts@dpdk.org</a>>; Nicholas Pratte <<a href="mailto:npratte@iol.unh.edu" target="_blank">npratte@iol.unh.edu</a>>; Dean Marx <<a href="mailto:dmarx@iol.unh.edu" target="_blank">dmarx@iol.unh.edu</a>>;
Paul Szczepanek <<a href="mailto:Paul.Szczepanek@arm.com" target="_blank">Paul.Szczepanek@arm.com</a>>; Luca Vizzarro <<a href="mailto:Luca.Vizzarro@arm.com" target="_blank">Luca.Vizzarro@arm.com</a>>; NBU-Contact-Thomas Monjalon (EXTERNAL) <<a href="mailto:thomas@monjalon.net" target="_blank">thomas@monjalon.net</a>>;
dev <<a href="mailto:dev@dpdk.org" target="_blank">dev@dpdk.org</a>><br>
<b>Subject:</b> Re: Doubts in JumboFrames and stats_checks tests in DTS.</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>Hi Bharati,</div>
<div><br>
</div>
<div>Welcome to the DTS mailing list. I will try to provide some answers based on my experience running DTS at the DPDK Community Lab at UNH. I will also flag that this "legacy" version of DTS is deprecated and getting minimal maintenance. The majority of the
current efforts for DTS are directed towards the rewrite which exists within the /dts dir of the DPDK repo: <a href="https://git.dpdk.org/dpdk/tree/dts" originalsrc="https://git.dpdk.org/dpdk/tree/dts" shash="alMfoehW0mDdqyVWYUVhqbBsUyA68PvrsoU6o7Id/GOwAJjPYBljZSnMqhhH+ncorXWMWhMkk1CrQlsEEny+yirp4xkqLJJnxcCouVsIxRLKpStzld2euBV7TCgLf1Uq4KVO1LCsVXZB0XmBBOiX3lKpuF2WO2qg196yhN5bdtU=" target="_blank">https://git.dpdk.org/dpdk/tree/dts</a></div>
<div><br>
</div>
<div>With that being said, of course the legacy repo is still useful and I encourage you to use it, so I will provide some comments inline below:</div>
<br>
<div>
<div dir="ltr">On Fri, Nov 22, 2024 at 9:43 AM Bharati Bhole - Geminus <<a href="mailto:c_bharatib@xsightlabs.com" target="_blank">c_bharatib@xsightlabs.com</a>> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div>
<div dir="ltr">
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi,</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I am Bharati Bhole. I am a new member of DTS mailing list.</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I have recently started working on DTS for my company and facing some issues/failures while running the DTS.</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Please help me with understanding the test cases and expected behaviours.</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I am trying to understand the DTS behaviour for following TCs:<br>
<br>
1. JumboFrames : </div>
<ol start="1" style="list-style-type:lower-alpha">
<li style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div>When the test set the max_pkt_len for testpmd and calculate the expected acceptable packet size, does it consider NICs supporting 2 VLANS? (In case of MTU update test, I have seen that 2 VLANs NIC are being considered while calculating acceptable packets
size but in JumboFrames I dont see it).<br>
</div>
</li></ol>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>No, 2 VLANs is not properly accounted for in the Jumboframes testsuite. And, this is actually highly topical, as this is an ongoing point of discussion in rewriting jumboframes and mtu_update for the new DTS framework (the testcases are getting combined
into 1 testsuite). I will paste the function from mtu_update of legacy DTS which you may be referring to:</div>
<div><br>
</div>
<div>------------------------------</div>
<div><br>
</div>
<div> def send_packet_of_size_to_port(self, port_id: int, pktsize: int):<br>
<br>
# The packet total size include ethernet header, ip header, and payload.<br>
# ethernet header length is 18 bytes, ip standard header length is 20 bytes.<br>
# pktlen = pktsize - ETHER_HEADER_LEN<br>
if self.kdriver in ["igb", "igc", "ixgbe"]:<br>
max_pktlen = pktsize + ETHER_HEADER_LEN + VLAN<br>
padding = max_pktlen - IP_HEADER_LEN - ETHER_HEADER_LEN - VLAN<br>
else:<br>
max_pktlen = pktsize + ETHER_HEADER_LEN + VLAN * 2<br>
padding = max_pktlen - IP_HEADER_LEN - ETHER_HEADER_LEN<br>
out = self.send_scapy_packet(<br>
port_id,<br>
f'Ether(dst=dutmac, src="52:00:00:00:00:00")/IP()/Raw(load="\x50"*{padding})',</div>
<div><br>
</div>
<div>------------------------------</div>
<div> </div>
<div>One difference between legacy DTS and the "new" DTS is that in legacy DTS a master list of devices/drivers was maintained, and there were an endless amount of conditions like this where a device list would be checked, and then some behavior modified based
on that list. Because this strategy leads to bugs, it's unresponsive to changes in driver code, hard to maintain, and for other reasons, we are no longer follow this approach in new DTS. Now, if we want to toggle different behavior (like determine max_pkt_len
for a given MTU for a given device) that needs to be accomplished by querying testpmd for device info (there are various testpmd runtime commands for this). And, in situations where testpmd doesn't expose the information we need for checking device behavior
in a particular testsuite - testpmd needs to be updated to allow for this. </div>
<div><br>
</div>
<div>I am CC'ing Nick who is the person writing the new jumboframes + MTU testsuite, which (work in progress) is on patchwork here:
<a href="https://patchwork.dpdk.org/project/dpdk/patch/20240726141307.14410-3-npratte@iol.unh.edu/" originalsrc="https://patchwork.dpdk.org/project/dpdk/patch/20240726141307.14410-3-npratte@iol.unh.edu/" shash="B0w/O15BKtiV/DT3ovSmaZ50Y2xmfCkeRH5WirCsTiv/2mCuI3gxb0mW+RdM7b+bjMQSPqr1TVIEqrKVISU+FBG5EMf4S/yKBbvXUbhgWAzfIDKwNUZg+nqWLiHcoMmuJIwCzobJoufUHdMBDhUJ6r2/v8y2DHwmrJ+3Y/QK+Ag=" target="_blank">
https://patchwork.dpdk.org/project/dpdk/patch/20240726141307.14410-3-npratte@iol.unh.edu/</a></div>
<div><br>
</div>
<div>Nick, maybe you can include the mailing list threads Thomas linke you, and explain your current understanding of how to handle this issue? This won't really help Bharati in the short term, but at least it will clarify to him how this issue will be handled
in the new DTS framework, which presumably he will upgrade to using at some point.</div>
<div><br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div>
<div dir="ltr">
<ol start="1" style="list-style-type:lower-alpha">
<li style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div><br>
</div>
</li><li style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div>In function jumboframes_send_packet() - <br>
--<snip>--</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div>if received:</div>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div> <b> if self.nic.startswith("fastlinq"):</b></div>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div> self.verify(</div>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div> self.pmdout.check_tx_bytes(tx_pkts, rx_pkts)</div>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div> and (self.pmdout.check_tx_bytes(tx_bytes, pktsize))</div>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div> and (rx_bytes == pktsize),</div>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div> "packet pass assert error",</div>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div> )</div>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div> <b> else:</b></div>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div> self.verify(</div>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div> self.pmdout.check_tx_bytes(tx_pkts, rx_pkts)</div>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div> and (self.pmdout.check_tx_bytes(tx_bytes <b>+ 4</b>, pktsize))</div>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div> and ((rx_bytes <b>+ 4</b>) == pktsize),</div>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div> "packet pass assert error",</div>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div> )</div>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div> else:</div>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div> self.verify(rx_err == 1 or tx_pkts == 0, "packet drop assert error")</div>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div> return out</div>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div>--<snip>--</div>
</div>
</li></ol>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Can someone please tell me why these tx_butes and rx_bytes calculations are different for Qlogic NICs and other NICs?</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>I don't know the reason why fastlinq has this behavior in DPDK, so I'm CCing the dev mailing list - maybe someone there will have the historical knowledge to answer.</div>
<div><br>
</div>
<div>Otherwise, in terms of DTS, this is again an example of a workflow which we do not allow in new DTS.</div>
<div> </div>
<blockquote style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div>
<div dir="ltr">
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<ol start="3" style="list-style-type:lower-alpha">
<li style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); display:block">
<div><br>
</div>
</li></ol>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
2. TestSuite_stats_checks.py : </div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
The test, test_stats_checks is sending 2 packets of ETH/IP/RAW(30) and ETH/IP/RAW(1500). <br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
In function send_packet_of_size_to_tx_port() line no. 174 to 185</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
--<snip>--</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
if received:</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
self.verify(tx_pkts_difference >= 1, "No packet was sent")</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
self.verify(</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
tx_pkts_difference == rx_pkts_difference,</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
"different numbers of packets sent and received",</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
)</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
self.verify(</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
tx_bytes_difference == rx_bytes_difference,</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
"different number of bytes sent and received",</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
)</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
self.verify(<b>tx_err_difference</b> == 1, "unexpected tx error")</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
self.verify(<b>rx_err_difference </b>== 0, "unexpected rx error")</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
--<snip>-- </div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
This test expects packets with payload size 30 to pass RX and TX which is working fine and for packet with payload size 1500, the test expecting RX and to pass and TX to fail?</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I did not get this part. The defailt MTU size is 1500. When scapy sends the packet with ETH+IP+1500 the packet size is 18+20+1500 = 1538. And even if the NIC supports 2 VLAN the max it can accept is MTU+ETH+CRC+2*VLAN = 1526</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
So according the to my understanding the packets should be dropped and rx_error counter should increase and there should not be any increment in good/error packet for TX port. </div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>This is not a testsuite that we run at our lab but I have read through the testplan and test file. I think your math makes sense and I would expect that rx_err_difference would be 1 in this scenario. When we rework this testsuite, obviously we will need
to start testpmd with various NICs, send packets with RAW(1500) and see if port stats shows rx_err 1 or 0. I am curious to see if this is the universal behavior in DPDK, or just some unique behavior from Intel 700 series (legacy DTS was often written towards
the behavior of this device). A goal in rewriting our tests is ensuring that DPDK apis (which we reach through testpmd) truly return the same behavior across different NICs.</div>
<div><br>
</div>
<div>Sorry about the half answer. Maybe someone else from the dev mailing list can provide a response about how this RAW(1500) packet can be received on rx port on any DPDK device.</div>
<div><br>
</div>
<div>I can say that we do have this stats_checks testsuite marked as a candidate to rewrite for new DTS in this current development cycle (DPDK 25.03). Maybe we can loop you into these conversations, since you have an interest in the subject? And, there's no
pressure on this, but I will just add you to the invite list for the DPDK DTS meetings (meets once every 2 weeks) in case you want to join and discuss.</div>
<div> </div>
<blockquote style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div>
<div dir="ltr">
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
Can someone please tell what is the gap/missing part in my understanding?</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Thanks,</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Bharati Bhole.</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>Thanks for getting involved - I'm glad to see more companies making use of DTS. </div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</body>
</html>