DPDK patches and discussions
 help / color / mirror / Atom feed
From: Ferruh Yigit <ferruh.yigit@intel.com>
To: chuhong yao <ych@panath.cn>, shijith.thotton@cavium.com
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH v2] net/liquidio fixes unable to update linfo var
Date: Tue, 22 May 2018 22:12:13 +0100	[thread overview]
Message-ID: <55b76479-703a-fc2b-4e05-c4f3fd24e217@intel.com> (raw)
In-Reply-To: <d7cca586-a028-27e0-b60a-0ae1273e9f67@intel.com>

On 5/22/2018 10:07 PM, Ferruh Yigit wrote:
> On 5/22/2018 3:33 PM, chuhong yao wrote:
>> When I was using VPP +dpdk-18.02+liqudio CN23xx,
>> I encountered such a bug.
>> When VPP called dpdk_device_start to initialize DPDK liqudio drive,
>> I found that initialization failed.
>> The reason for the failure is that VF MTU > PF MTU,
>> but PF MTU has been modified to 9600 (> VF MTU).
>> Finally, I am location that DPDK liqudio drive
>> cannot get the correct PF driver to liqudio network card.
>> It is due to the fact that when VPP calls dpdk_device_start to
>> initialize DPDK liqudio drive,this time,
>> lio_dev->linfo.Link var already exists in the old value, not empty.
>> Cause lio_dev->linfo.Link. Link_status64 != 0
>> statement is set up,
>> and the link info is stopped directly to liqudio card,
>> resulting in no get accurate pf mtu.
>> I did a test model to reproduce the bug,
>> which is to add rte_eth_dev_set_mtu(portid, vf_mtu)
>> to the rte_eth_dev_start function when using
>> dpdk-18.02+liqudio CN23xx+l2fwd.
>> You need to make sure that 1500 < vf_mtu < pf_mtu will be available.
>> At this time, you will have
>> net_liovf[04:00.3]ERROR: lio_dev_mtu_set()
>> VF MTU should be >= 68 and <= 1500. Such a mistake.
>>
>> Signed-off-by: chuhong yao <ych@panath.cn>
> 
> Will use commit log suggested by maintainer [1]. Thanks Shijith!
> 
> 
> [1]
>     net/liquidio: fix link state fetching during device start
> 
>     Clear link state information during device start for fetching new state
>     before function completion.
> 
>     Fixes: 605164c8e79d ("net/liquidio: add API to validate VF MTU")
>     Cc: stable@dpdk.org
> 
>     Signed-off-by: Chuhong Yao <ych@panath.cn>
>     Acked-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>

Applied to dpdk-next-net/master, thanks.

  reply	other threads:[~2018-05-22 21:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-22 14:33 chuhong yao
2018-05-22 21:07 ` Ferruh Yigit
2018-05-22 21:12   ` Ferruh Yigit [this message]
2018-05-23  0:16     ` [dpdk-dev] [PATCH v2] net/liquidio fixes unable to update linfovar Yao chuhong
2018-05-23  9:01       ` Ferruh Yigit

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=55b76479-703a-fc2b-4e05-c4f3fd24e217@intel.com \
    --to=ferruh.yigit@intel.com \
    --cc=dev@dpdk.org \
    --cc=shijith.thotton@cavium.com \
    --cc=ych@panath.cn \
    /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).