DPDK usage discussions
 help / color / mirror / Atom feed
From: David Marchand <david.marchand@redhat.com>
To: Dhamodaran Pandiyan <dhamodaran.it15@gmail.com>,
	Beilei Xing <beilei.xing@intel.com>, Jeff Guo <jia.guo@intel.com>
Cc: users@dpdk.org
Subject: Re: MAX_MBUF_SIZE causes queue configuration failure.
Date: Wed, 12 Apr 2023 09:27:34 +0200	[thread overview]
Message-ID: <CAJFAV8w9wyBOmifq4SDhEK3Kgjcx9n4JiSTYcDCQoOJ+Hi-0nQ@mail.gmail.com> (raw)
In-Reply-To: <CAG=tYMqoiWaqw7C04KHKsZxFuxYiNAAyNw5obKkmWJ_RN4Pp2Q@mail.gmail.com>

Hello,

On Wed, Apr 12, 2023 at 8:59 AM Dhamodaran Pandiyan
<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


  reply	other threads:[~2023-04-12  7:27 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 [this message]
2023-04-12 12:54   ` Xing, Beilei
2023-04-13  6:52     ` Dhamodaran Pandiyan
2023-04-13  7:08       ` Xing, Beilei
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=CAJFAV8w9wyBOmifq4SDhEK3Kgjcx9n4JiSTYcDCQoOJ+Hi-0nQ@mail.gmail.com \
    --to=david.marchand@redhat.com \
    --cc=beilei.xing@intel.com \
    --cc=dhamodaran.it15@gmail.com \
    --cc=jia.guo@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).