<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:"\@DengXian";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@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">+ Simei.<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>From:</b> Dhamodaran Pandiyan <dhamodaran.it15@gmail.com>
<br>
<b>Sent:</b> Thursday, April 13, 2023 2:53 PM<br>
<b>To:</b> Xing, Beilei <beilei.xing@intel.com><br>
<b>Cc:</b> David Marchand <david.marchand@redhat.com>; Jeff Guo <jia.guo@intel.com>; users@dpdk.org; Zhang, Helin <helin.zhang@intel.com><br>
<b>Subject:</b> Re: MAX_MBUF_SIZE causes queue configuration failure.<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">Hi Beilei,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">We're using,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">0000:5e:00.0 'Ethernet Controller X710 for 10GbE SFP+ 1572' drv=vfio-pci unused=i40e<br>
0000:5e:00.1 'Ethernet Controller X710 for 10GbE SFP+ 1572' drv=vfio-pci unused=i40e<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">DPDK_VERSION=20.11<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Please let me know if you need any other information. <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Dhamodaran P<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Wed, 12 Apr 2023 at 18:24, Xing, Beilei <<a href="mailto:beilei.xing@intel.com">beilei.xing@intel.com</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-right:0in">
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi,<br>
<br>
Which DPDK version did you use?<br>
As i40evf PMD has been deprecated for long time.<br>
<br>
BR,<br>
Beilei<br>
<br>
> -----Original Message-----<br>
> From: David Marchand <<a href="mailto:david.marchand@redhat.com" target="_blank">david.marchand@redhat.com</a>><br>
> Sent: Wednesday, April 12, 2023 3:28 PM<br>
> To: Dhamodaran Pandiyan <<a href="mailto:dhamodaran.it15@gmail.com" target="_blank">dhamodaran.it15@gmail.com</a>>; Xing, Beilei<br>
> <<a href="mailto:beilei.xing@intel.com" target="_blank">beilei.xing@intel.com</a>>; Jeff Guo <<a href="mailto:jia.guo@intel.com" target="_blank">jia.guo@intel.com</a>><br>
> Cc: <a href="mailto:users@dpdk.org" target="_blank">users@dpdk.org</a><br>
> Subject: Re: MAX_MBUF_SIZE causes queue configuration failure.<br>
> <br>
> Hello,<br>
> <br>
> On Wed, Apr 12, 2023 at 8:59 AM Dhamodaran Pandiyan<br>
> <<a href="mailto:dhamodaran.it15@gmail.com" target="_blank">dhamodaran.it15@gmail.com</a>> wrote:<br>
> ><br>
> > When I set the value to MAX_MBUF_SIZE as less than 16256, all the<br>
> initialization went through fine and the application was online.<br>
> ><br>
> > But when I increase the MAX_MBUF_SIZE to more than 16256 like 16257,<br>
> 17000, or 18000, I get the attached log error which shows an issue in<br>
> configuring the virtual queues for the NIC.<br>
> ><br>
> > Log Snip:<br>
> > i40evf_configure_vsi_queues(): Failed to execute command of<br>
> > VIRTCHNL_OP_CONFIG_VSI_QUEUES<br>
> > i40evf_dev_start(): configure queues failed<br>
> <br>
> Added net/i40e driver maintainers.<br>
> <br>
> This error indicates a failure either when sending a message to the PF driver, or<br>
> that the PF driver refused to configure this VF with the passed parameters.<br>
> Assuming you are using the PF i40e driver, I tracked this message handling to<br>
> find that buffer size is limited (the exact limit is not clear to me) probably due<br>
> to some hw limitations.<br>
> <br>
> See:<br>
> <a href="https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/" target="_blank">
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/</a><br>
> net/ethernet/intel/i40e/i40e_virtchnl_pf.c#n4088<br>
> <a href="https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/" target="_blank">
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/</a><br>
> net/ethernet/intel/i40e/i40e_virtchnl_pf.c#n2371<br>
> <a href="https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/" target="_blank">
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/</a><br>
> net/ethernet/intel/i40e/i40e_virtchnl_pf.c#n714<br>
> <br>
> /* max pkt. length validation */<br>
> if (info->max_pkt_size >= (16 * 1024) || info->max_pkt_size < 64) {<br>
> ret = -EINVAL;<br>
> goto error_param;<br>
> }<br>
> <br>
> I'll let net/i40e reply with better details/explanations.<br>
> <br>
> <br>
> > MTU size for port id: is: 9000<br>
> > Failed to start the fast pkt for port_id : 1Ret: -1<br>
> ><br>
> > Some Observations:<br>
> > 1. Thought memory availability was an issue, so provided 10x more memory<br>
> and allocated 10x huge pages than required, still noticed the same issue.<br>
> > 2. Got to know MTU size also plays a role in deciding the mbuf_size, so tried<br>
> running app with MTU of less value, but still issue persists.<br>
> ><br>
> > Please someone enlighten me on what is happening here.<br>
> <br>
> <br>
> <br>
> --<br>
> David Marchand<o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
</body>
</html>