DPDK usage discussions
 help / color / mirror / Atom feed
From: "Xing, Beilei" <beilei.xing@intel.com>
To: Dhamodaran Pandiyan <dhamodaran.it15@gmail.com>,
	"Su, Simei" <simei.su@intel.com>
Cc: David Marchand <david.marchand@redhat.com>,
	Jeff Guo <jia.guo@intel.com>,  "users@dpdk.org" <users@dpdk.org>,
	"Zhang, Helin" <helin.zhang@intel.com>
Subject: RE: MAX_MBUF_SIZE causes queue configuration failure.
Date: Thu, 13 Apr 2023 07:08:49 +0000	[thread overview]
Message-ID: <LV2PR11MB599791DEC6FDF53BF7915601F7989@LV2PR11MB5997.namprd11.prod.outlook.com> (raw)
In-Reply-To: <CAG=tYMqhQ283SCaE5vuypwFdu7-bqhzkxXuBE9XZu_6o2ALshA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3584 bytes --]

+ Simei.

From: Dhamodaran Pandiyan <dhamodaran.it15@gmail.com>
Sent: Thursday, April 13, 2023 2:53 PM
To: Xing, Beilei <beilei.xing@intel.com>
Cc: David Marchand <david.marchand@redhat.com>; Jeff Guo <jia.guo@intel.com>; users@dpdk.org; Zhang, Helin <helin.zhang@intel.com>
Subject: Re: MAX_MBUF_SIZE causes queue configuration failure.

Hi Beilei,

We're using,
0000:5e:00.0 'Ethernet Controller X710 for 10GbE SFP+ 1572' drv=vfio-pci unused=i40e
0000:5e:00.1 'Ethernet Controller X710 for 10GbE SFP+ 1572' drv=vfio-pci unused=i40e

DPDK_VERSION=20.11

Please let me know if you need any other information.

Thanks,
Dhamodaran P

On Wed, 12 Apr 2023 at 18:24, Xing, Beilei <beilei.xing@intel.com<mailto:beilei.xing@intel.com>> wrote:
Hi,

Which DPDK version did you use?
As i40evf PMD has been deprecated for long time.

BR,
Beilei

> -----Original Message-----
> From: David Marchand <david.marchand@redhat.com<mailto:david.marchand@redhat.com>>
> Sent: Wednesday, April 12, 2023 3:28 PM
> To: Dhamodaran Pandiyan <dhamodaran.it15@gmail.com<mailto:dhamodaran.it15@gmail.com>>; Xing, Beilei
> <beilei.xing@intel.com<mailto:beilei.xing@intel.com>>; Jeff Guo <jia.guo@intel.com<mailto:jia.guo@intel.com>>
> Cc: users@dpdk.org<mailto:users@dpdk.org>
> Subject: Re: MAX_MBUF_SIZE causes queue configuration failure.
>
> Hello,
>
> On Wed, Apr 12, 2023 at 8:59 AM Dhamodaran Pandiyan
> <dhamodaran.it15@gmail.com<mailto:dhamodaran.it15@gmail.com>> wrote:
> >
> > When I set the value to MAX_MBUF_SIZE as less than 16256, all the
> initialization went through fine and the application was online.
> >
> > But when I increase the MAX_MBUF_SIZE to more than 16256 like 16257,
> 17000, or 18000, I get the attached log error which shows an issue in
> configuring the virtual queues for the NIC.
> >
> > Log Snip:
> > i40evf_configure_vsi_queues(): Failed to execute command of
> > VIRTCHNL_OP_CONFIG_VSI_QUEUES
> > i40evf_dev_start(): configure queues failed
>
> Added net/i40e driver maintainers.
>
> This error indicates a failure either when sending a message to the PF driver, or
> that the PF driver refused to configure this VF with the passed parameters.
> Assuming you are using the PF i40e driver, I tracked this message handling to
> find that buffer size is limited (the exact limit is not clear to me) probably due
> to some hw limitations.
>
> See:
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/
> net/ethernet/intel/i40e/i40e_virtchnl_pf.c#n4088
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/
> net/ethernet/intel/i40e/i40e_virtchnl_pf.c#n2371
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/
> net/ethernet/intel/i40e/i40e_virtchnl_pf.c#n714
>
> /* max pkt. length validation */
> if (info->max_pkt_size >= (16 * 1024) || info->max_pkt_size < 64) {
>     ret = -EINVAL;
>     goto error_param;
> }
>
> I'll let net/i40e reply with better details/explanations.
>
>
> > MTU size for port id:  is: 9000
> > Failed to start the fast pkt for port_id : 1Ret: -1
> >
> > Some Observations:
> > 1. Thought memory availability was an issue, so provided 10x more memory
> and allocated 10x huge pages than required, still noticed the same issue.
> > 2. Got to know MTU size also plays a role in deciding the mbuf_size, so tried
> running app with MTU of less value, but still issue persists.
> >
> > Please someone enlighten me on what is happening here.
>
>
>
> --
> David Marchand

[-- Attachment #2: Type: text/html, Size: 7734 bytes --]

  reply	other threads:[~2023-04-13  7:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-06 10:08 Dhamodaran Pandiyan
2023-04-12  7:27 ` David Marchand
2023-04-12 12:54   ` Xing, Beilei
2023-04-13  6:52     ` Dhamodaran Pandiyan
2023-04-13  7:08       ` Xing, Beilei [this message]
2023-04-13  8:51         ` Su, Simei

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=LV2PR11MB599791DEC6FDF53BF7915601F7989@LV2PR11MB5997.namprd11.prod.outlook.com \
    --to=beilei.xing@intel.com \
    --cc=david.marchand@redhat.com \
    --cc=dhamodaran.it15@gmail.com \
    --cc=helin.zhang@intel.com \
    --cc=jia.guo@intel.com \
    --cc=simei.su@intel.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).