From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ig0-f181.google.com (mail-ig0-f181.google.com [209.85.213.181]) by dpdk.org (Postfix) with ESMTP id DBBD38D9A for ; Tue, 13 Oct 2015 17:32:34 +0200 (CEST) Received: by igbif5 with SMTP id if5so2042136igb.1 for ; Tue, 13 Oct 2015 08:32:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=+6wFVwdO6xy6IRAgT40gcK46OUP9COVILA3WkYJNI3g=; b=OR7wda3g3B/hP5PS3p6q2IRMJxdDGLiAdavWdf+18lq+B0auQBT69Itm9Dkhsxlcf7 ErOwp5oLPJ6zm0/2FFZIVfJW/pMBJ0VmX+7RzFDfv9n3zYuPWMWPjh/7h3nF0bzpNa3M OM2Y52Bz129cTTxmmbceA+1XbWNUNbHTYzuRhki2xbTpv7amleQ8r1FiMRbt2zW6hPo5 0y3Tt95cP4iS1R8zHfS7/HvZZY451uhpAcibem9JyXuU9mKmVTZGGkM/cEEETPeZ3szo rNbbs93lHvTETVL6OMT+VU7rO54iPs3eXWnrgAxD27yXybFpwqqwFAUc+1x2y7VULGXc gXtw== MIME-Version: 1.0 X-Received: by 10.50.164.225 with SMTP id yt1mr20198298igb.76.1444750354283; Tue, 13 Oct 2015 08:32:34 -0700 (PDT) Received: by 10.107.4.149 with HTTP; Tue, 13 Oct 2015 08:32:34 -0700 (PDT) In-Reply-To: References: <1444236843-3000-1-git-send-email-bie.jiuling@gmail.com> Date: Tue, 13 Oct 2015 11:32:34 -0400 Message-ID: From: Jiuling Bie To: "De Lara Guarch, Pablo" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [testpmd] enable lsc to avoid TX stall, TX stall happened in following sequence start show port info 0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Oct 2015 15:32:35 -0000 Hi Pablo, The issue is related to certain NIC(s). I observed this on Intel 82577LM(em). Basically show port info will read PHY registers to get link status when lsc interrupt was disabled, which caused TX to stop. I don't have other NICs so not sure it is a common issue or not. Regards, Jiuling On Tue, Oct 13, 2015 at 5:07 AM, De Lara Guarch, Pablo < pablo.de.lara.guarch@intel.com> wrote: > Hi Jiuling, > > > -----Original Message----- > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Jiuling Bie > > Sent: Wednesday, October 07, 2015 5:54 PM > > To: dev@dpdk.org > > Subject: [dpdk-dev] [testpmd] enable lsc to avoid TX stall, TX stall > happened > > in following sequence start show port info 0 > > > > --- > > app/test-pmd/testpmd.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c > > index 386bf84..45adefa 100644 > > --- a/app/test-pmd/testpmd.c > > +++ b/app/test-pmd/testpmd.c > > @@ -1779,6 +1779,7 @@ init_port_config(void) > > port = &ports[pid]; > > port->dev_conf.rxmode = rx_mode; > > port->dev_conf.fdir_conf = fdir_conf; > > + port->dev_conf.intr_conf.lsc = 1; > > if (nb_rxq > 1) { > > port->dev_conf.rx_adv_conf.rss_conf.rss_key = > > NULL; > > port->dev_conf.rx_adv_conf.rss_conf.rss_hf = > > rss_hf; > > -- > > 1.9.1 > > Several things about your patch: > - It looks like this is your first patch (plus the other one you sent a > few minutes later): take a look at http://dpdk.org/dev > - You forgot to sign off your patches (use --signoff with git commit) > - The title of this patch is too long, shorten it and include more > information in the body of the commit message. > - I don't know what this patch is trying to solve exactly. It looks like > you are saying that there is a bug > that makes TX stop when you run the following commands: > testpmd> start > testpmd> show port info 0 > > I don't see such bug, could you explain better the steps to reproduce the > issue? > > Thanks, > Pablo > >