<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=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Aptos;}
@font-face
{font-family:"\@DengXian";
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Wf_Segoe-Ui_Normal;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:12.0pt;
font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Aptos",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
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="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi Vladimir,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Is there another way that you can determine the device probe order from your application? (like going through the /sys/class/uio devices)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Long<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Vladimir Ratnikov <vratnikov@netgate.com>
<br>
<b>Sent:</b> Tuesday, June 25, 2024 4:50 AM<br>
<b>To:</b> Stephen Hemminger <stephen@networkplumber.org><br>
<b>Cc:</b> Long Li <longli@microsoft.com>; dev@dpdk.org<br>
<b>Subject:</b> Re: [PATCH v2] bus/vmbus: add device_order field to rte_vmbus_dev<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" align="left" width="100%" style="width:100.0%">
<tbody>
<tr>
<td style="background:#A6A6A6;padding:5.25pt 1.5pt 5.25pt 1.5pt"></td>
<td width="100%" style="width:100.0%;background:#EAEAEA;padding:5.25pt 3.75pt 5.25pt 11.25pt">
<div>
<p class="MsoNormal" style="mso-element:frame;mso-element-frame-hspace:2.25pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:column;mso-height-rule:exactly">
<span style="font-size:9.0pt;font-family:Wf_Segoe-Ui_Normal;color:#212121">You don't often get email from
</span><span style="color:black"><a href="mailto:vratnikov@netgate.com"><span style="font-size:9.0pt;font-family:Wf_Segoe-Ui_Normal">vratnikov@netgate.com</span></a></span><span style="font-size:9.0pt;font-family:Wf_Segoe-Ui_Normal;color:#212121">.
</span><span style="color:black"><a href="https://aka.ms/LearnAboutSenderIdentification"><span style="font-size:9.0pt;font-family:Wf_Segoe-Ui_Normal">Learn why this is important</span></a></span><span style="font-size:9.0pt;font-family:Wf_Segoe-Ui_Normal;color:#212121"><o:p></o:p></span></p>
</div>
</td>
<td width="75" style="width:56.25pt;background:#EAEAEA;padding:5.25pt 3.75pt 5.25pt 3.75pt;align:left">
</td>
</tr>
</tbody>
</table>
<div>
<div>
<p class="MsoNormal">Thanks for review!<br>
<br>
Regarding to <o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="color:#555555">The patch only has the device_order field, but it is set but not used anywhere in the DPDK. </span><o:p></o:p></p>
</blockquote>
<div>
<p class="MsoNormal">Unfortunately, It's not for DPDK usage, it's for DPDK based applications.<br>
After some time of testing, if nothing's changed in the host OS(no new devices, no removed devices) - the device list is always the same with the same order.<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Tue, Jun 25, 2024 at 2:02<span style="font-family:"Arial",sans-serif"> </span>AM Stephen Hemminger <<a href="mailto:stephen@networkplumber.org">stephen@networkplumber.org</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<p class="MsoNormal">On Mon, 24 Jun 2024 11:15:21 +0000<br>
Vladimir Ratnikov <<a href="mailto:vratnikov@netgate.com" target="_blank">vratnikov@netgate.com</a>> wrote:<br>
<br>
> Field can be used to have static interface naming<br>
> in DPDK based applications instead of uuid.<br>
> RTE_FOREACH_DEV won't return the correct order of<br>
> such devices due to vmbus_ignore_device in case of<br>
> blocklisting/allowlisting. So device_order field<br>
> will be helpful in that case.<br>
> <br>
> Signed-off-by: Vladimir Ratnikov <<a href="mailto:vratnikov@netgate.com" target="_blank">vratnikov@netgate.com</a>><br>
> ---<br>
<br>
Not sure the order of device discovery is predictable.<br>
The order of devices on vmbus is when they were reported by the host OS.<br>
That is why Linux driver use other ways to have persistent naming.<o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
</div>
</body>
</html>