From patchwork Fri Apr 8 02:42:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianbo Liu X-Patchwork-Id: 11983 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 6A3862C08; Fri, 8 Apr 2016 04:42:09 +0200 (CEST) Received: from mail-yw0-f180.google.com (mail-yw0-f180.google.com [209.85.161.180]) by dpdk.org (Postfix) with ESMTP id 9D9552BFA for ; Fri, 8 Apr 2016 04:42:07 +0200 (CEST) Received: by mail-yw0-f180.google.com with SMTP id d68so120136844ywe.1 for ; Thu, 07 Apr 2016 19:42:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=Su3ioP05cDGWqmQl90EjLDkgzGfOSqtATPhGiYCiGHY=; b=jTK/PKLB8sDtlen9iPZLtf8UmmEb60cO3TfxQDchxh0/tGkg9asSl5u6y6Xfe+yLzJ 0ijuuApZEfekZE2DhPvwijT6R7LuGQLl7awD5Hk063wufVuGjwG2XUJL5eypP6V4Z+zw kSNPr7MB1kOjeu4yBj4IbBsBQcts9NEbD7Jns= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=Su3ioP05cDGWqmQl90EjLDkgzGfOSqtATPhGiYCiGHY=; b=FEgh96VTzUa04TJPX6v77hlrWLdJUl68FwS/dXYsbtYzhvwtXXiFzlUW9LPnnD/ycw mraZDPK3AEofYP7nOomBriepytoMu01rbFshWfFhtKWJsG/df0cFWLAWuab4Tzl0ihud tlVZBitm5ED/TuAWO+lh2q1sLP3ttylovmteDzBNljiXc6/YZITZijtAo+Ga3I/RG6f2 wQPMimMTqsmXeE1P+WvVfMsAjXJZBuov/rtq3dtV1LpLd55h6k1TlD3j3DZLoY93G+U7 nXGBHThLMB3YN6lWE7C18lAtPnmC7eu18WoN2OI4cMBtQKajU2V30zE0cOq8lRSaPOcd inqg== X-Gm-Message-State: AD7BkJKlCYsuei7EoQPOJAtTnvUuKwgLEn3kop4zclr7lNWcoS9aajTaG2hLiWLD00aGCwSa9oFb4GPAzlhr0agi MIME-Version: 1.0 X-Received: by 10.129.130.196 with SMTP id s187mr3728345ywf.315.1460083327032; Thu, 07 Apr 2016 19:42:07 -0700 (PDT) Received: by 10.37.202.67 with HTTP; Thu, 7 Apr 2016 19:42:06 -0700 (PDT) In-Reply-To: <6A0DE07E22DDAD4C9103DF62FEBC0909034503AE@shsmsx102.ccr.corp.intel.com> References: <488FF59D9020184C9DCF4B4A0DA478142554AD92@NDA-HCLT-MBS03.hclt.corp.hcl.in> <488FF59D9020184C9DCF4B4A0DA478142554AE09@NDA-HCLT-MBS03.hclt.corp.hcl.in> <6A0DE07E22DDAD4C9103DF62FEBC0909034503AE@shsmsx102.ccr.corp.intel.com> Date: Fri, 8 Apr 2016 10:42:06 +0800 Message-ID: From: Jianbo Liu To: "Lu, Wenzhuo" Cc: Vivek Gupta , Marc Sune , "dev@dpdk.org" Subject: Re: [dpdk-dev] Port 0 Link Down - L2fwd sample application 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 8 April 2016 at 09:21, Lu, Wenzhuo wrote: > Hi Vivek, > > >> -----Original Message----- >> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Vivek Gupta >> Sent: Thursday, April 7, 2016 9:19 PM >> To: Marc Sune >> Cc: dev@dpdk.org >> Subject: Re: [dpdk-dev] Port 0 Link Down - L2fwd sample application >> >> >> ./build/l2fwd -c f -n 4 -- -q 8 -p 0x11 but each time I get error >> ***************************** >> Checking link status.............. >> Port 0 Link Down >> Port 1 Link Down >> ******************************************** >> >> I tried with test-pmd example but same result.Could you please help to up the >> link? >> >> Port status is as below- >> Network devices using DPDK-compatible driver >> ============================================ >> 0000:01:00.0 'Ethernet Controller 10-Gigabit X540-AT2' drv=uio_pci_generic >> unused=igb_uio >> 0000:01:00.1 'Ethernet Controller 10-Gigabit X540-AT2' drv=uio_pci_generic >> unused=igb_uio >> 0000:06:00.0 'Ethernet Controller 10-Gigabit X540-AT2' drv=uio_pci_generic >> unused=igb_uio >> 0000:06:00.1 'Ethernet Controller 10-Gigabit X540-AT2' drv=uio_pci_generic >> unused=igb_uio >> >> Network devices using kernel driver >> =================================== >> 0000:81:00.0 'Ethernet Controller 10-Gigabit X540-AT2' if=eth4 drv=ixgbe >> unused=igb_uio,uio_pci_generic >> 0000:81:00.1 'Ethernet Controller 10-Gigabit X540-AT2' if=eth5 drv=ixgbe >> unused=igb_uio,uio_pci_generic >> >> Other network devices >> ===================== >> >> I met the same problem with the same NICs. Please try this patch: Thanks! Jianbo diff --git a/drivers/net/ixgbe/base/ixgbe_x540.c b/drivers/net/ixgbe/base/ixgbe_x540.c index 4891702..cd09e38 100644 --- a/drivers/net/ixgbe/base/ixgbe_x540.c +++ b/drivers/net/ixgbe/base/ixgbe_x540.c @@ -220,7 +220,7 @@ s32 ixgbe_reset_hw_X540(struct ixgbe_hw *hw) ixgbe_clear_tx_pending(hw); mac_reset_top: - ctrl = IXGBE_CTRL_RST; + ctrl = IXGBE_CTRL_RST_MASK; ctrl |= IXGBE_READ_REG(hw, IXGBE_CTRL); IXGBE_WRITE_REG(hw, IXGBE_CTRL, ctrl); IXGBE_WRITE_FLUSH(hw);