From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4D05C4296B for ; Mon, 17 Apr 2023 10:16:14 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 32B4442B8E; Mon, 17 Apr 2023 10:15:41 +0200 (CEST) Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) by mails.dpdk.org (Postfix) with ESMTP id 60B164021F for ; Thu, 13 Apr 2023 08:53:05 +0200 (CEST) Received: by mail-lf1-f46.google.com with SMTP id h37so1005960lfv.0 for ; Wed, 12 Apr 2023 23:53:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681368785; x=1683960785; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=FR3v40SIlOAjJAOL5fKYhwId7+zkbSDW8txGmuthhgQ=; b=itoXCV+9hNhlX/GWh3gDiIyxcvl7+M8C+eQLySxdjUCo36B1PAJMAfdh5TH8nlbq48 Mj4ABQdJfv3stLjtIoDvsNJ32lv7Os21xbqIFA6/pDUxNNsBHoeT+krZM5gO42CXQANs +rIfpaf6nBLz33BjJ9RYK3WiZfbBrpFnPGV10z6Mb+7r8i/p0ZAwQLg3LGg6vAHgu1r4 a//hvGZr5/wIJAwaFzngbRpiemyzHmcidR3+BBCAJfi/iGwXpxbildeXc5cMaVBjw/GO RBEKpvsNOUbZAVcjzxOl5U7amQogAK+zxfX+hWl+gkfvbX/SrhNxrrplXfkuz7H2BOHA kqig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681368785; x=1683960785; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FR3v40SIlOAjJAOL5fKYhwId7+zkbSDW8txGmuthhgQ=; b=X4a25gzKbu1fNnQRCYr8IxDqSlXPr/o+2qekw03FA7lNKyTFmBO7hPomTU4Eez7S4s LhThofrPJ7+H4XH7zWSZ4eIGaoz2H3EZzr60afpb8x1b0F16v+B0xiCMNnXl2O7fob3u aNPEQR9nEF9WU8DHIKkrmnt13hSJFYr0JYOM5dsDr9ws1U0rN7bWQK6Bhhzl2hYWbEAT +SKn3v0Zp+7kmfAN0XNZu0121xaP+GYbVKlRQreu4ldumFnWWD7bSpEMvMOHC7W8iSNg lkNnuS2g3xU7R7O1YPj6MnRJ/ciP46g7tz/GkX/F7EcJ7gpoJKHGKLbmHo36tlBNTFZH 4IQw== X-Gm-Message-State: AAQBX9dOXQlZ/9f52DJkNpbgtU3hOOfBoIAr8u6OfXus3X3anRIyxkq5 q9F9rabNJ+NdDPXkshF8OH7WThqmOQNDcDLUxYrXPQLXyrj3MQIr X-Google-Smtp-Source: AKy350biSRxQiOeJPbqKyTV4zS7GM0C12ViSY448DHpIPg6u7R3CjFSLFGpy3QFZLerxoKGMedvzqox76p+cPCCbQac= X-Received: by 2002:ac2:4c8b:0:b0:4eb:d8d:6c17 with SMTP id d11-20020ac24c8b000000b004eb0d8d6c17mr451879lfl.10.1681368784382; Wed, 12 Apr 2023 23:53:04 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Dhamodaran Pandiyan Date: Thu, 13 Apr 2023 12:22:52 +0530 Message-ID: Subject: Re: MAX_MBUF_SIZE causes queue configuration failure. To: "Xing, Beilei" Cc: David Marchand , Jeff Guo , "users@dpdk.org" , "Zhang, Helin" Content-Type: multipart/alternative; boundary="000000000000212f6f05f9322d7d" X-Mailman-Approved-At: Mon, 17 Apr 2023 10:15:39 +0200 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org --000000000000212f6f05f9322d7d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Beilei, We're using, 0000:5e:00.0 'Ethernet Controller X710 for 10GbE SFP+ 1572' drv=3Dvfio-pci unused=3Di40e 0000:5e:00.1 'Ethernet Controller X710 for 10GbE SFP+ 1572' drv=3Dvfio-pci unused=3Di40e DPDK_VERSION=3D20.11 Please let me know if you need any other information. Thanks, Dhamodaran P On Wed, 12 Apr 2023 at 18:24, Xing, Beilei wrote: > Hi, > > Which DPDK version did you use? > As i40evf PMD has been deprecated for long time. > > BR, > Beilei > > > -----Original Message----- > > From: David Marchand > > Sent: Wednesday, April 12, 2023 3:28 PM > > To: Dhamodaran Pandiyan ; Xing, Beilei > > ; Jeff Guo > > Cc: users@dpdk.org > > Subject: Re: MAX_MBUF_SIZE causes queue configuration failure. > > > > Hello, > > > > On Wed, Apr 12, 2023 at 8:59=E2=80=AFAM Dhamodaran Pandiyan > > 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/d= rivers/ > > net/ethernet/intel/i40e/i40e_virtchnl_pf.c#n4088 > > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/d= rivers/ > > net/ethernet/intel/i40e/i40e_virtchnl_pf.c#n2371 > > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/d= rivers/ > > net/ethernet/intel/i40e/i40e_virtchnl_pf.c#n714 > > > > /* max pkt. length validation */ > > if (info->max_pkt_size >=3D (16 * 1024) || info->max_pkt_size < 64) { > > ret =3D -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 issu= e. > > > 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 > > --000000000000212f6f05f9322d7d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Beilei,

We're usi= ng,
0000:5e:00.0 'Ethernet Controller X710 for 10GbE SFP+ 157= 2' drv=3Dvfio-pci unused=3Di40e
0000:5e:00.1 'Ethernet Controlle= r X710 for 10GbE SFP+ 1572' drv=3Dvfio-pci unused=3Di40e
=
DPDK_VERSION=3D20.11

Please let me = know if you need any other information.

Thank= s,
Dhamodaran P

On Wed, 12 Apr 2023 at 18:24, Xing, Beil= ei <beilei.xing@intel.com&g= t; 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>
> Sent: Wednesday, April 12, 2023 3:28 PM
> To: Dhamodaran Pandiyan <dhamodaran.it15@gmail.com>; Xing, Beilei
> <beilei.= xing@intel.com>; Jeff Guo <jia.guo@intel.com>
> Cc: users@dpdk.org=
> Subject: Re: MAX_MBUF_SIZE causes queue configuration failure.
>
> Hello,
>
> On Wed, Apr 12, 2023 at 8:59=E2=80=AFAM Dhamodaran Pandiyan
> <dha= modaran.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 162= 57,
> 17000, or 18000, I get the attached log error which shows an issue in<= br> > 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 parame= ters.
> Assuming you are using the PF i40e driver, I tracked this message hand= ling to
> find that buffer size is limited (the exact limit is not clear to me) = probably due
> to some hw limitations.
>
> See:
> https://git.ker= nel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/
> net/ethernet/intel/i40e/i40e_virtchnl_pf.c#n4088
> https://git.ker= nel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/
> net/ethernet/intel/i40e/i40e_virtchnl_pf.c#n2371
> https://git.ker= nel.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 >=3D (16 * 1024) || info->max_pkt_size= < 64) {
>=C2=A0 =C2=A0 =C2=A0ret =3D -EINVAL;
>=C2=A0 =C2=A0 =C2=A0goto error_param;
> }
>
> I'll let net/i40e reply with better details/explanations.
>
>
> > MTU size for port id:=C2=A0 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 iss= ue.
> > 2. Got to know MTU size also plays a role in deciding the mbuf_si= ze, so tried
> running app with MTU of less value, but still issue persists.
> >
> > Please someone enlighten me on what is happening here.
>
>
>
> --
> David Marchand

--000000000000212f6f05f9322d7d--