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 AEACCA0032 for ; Thu, 17 Feb 2022 10:08:50 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 38E6C40150; Thu, 17 Feb 2022 10:08:50 +0100 (CET) Received: from mail-vs1-f42.google.com (mail-vs1-f42.google.com [209.85.217.42]) by mails.dpdk.org (Postfix) with ESMTP id 7B1F44067E for ; Mon, 14 Feb 2022 05:51:35 +0100 (CET) Received: by mail-vs1-f42.google.com with SMTP id j20so3522217vsg.5 for ; Sun, 13 Feb 2022 20:51:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=vrWQ4H30Q9+yu8DlWIR0QNsLwOpznVM9QCti9hE7ux0=; b=cyVoCW/FO0Dl19HMHSDhYvYXTQ49TDHrFnCTYPg97n4ZMwxxctsRZII7R7OMPaZPdg 60gtG+ZI1WxxYdSCEHRg2szweHCiHMFrKOGGhtBXYvZKy4bPslm/LgjLAB8VaER7vLoV IOYVIVT74rhXENhSreQK77j7B1lEJfyecOf/rVWlMOkfITJLe9MPDEy1K3dPYurYfpzS pP4em3jwN2Hili7wBIexqsiAsoJDXm9+2peaTCSHWoMkaFxolYF2dzoXUd6gXwvfLOM1 tfZtWcRQeQRvCsBBwuzpCwV/d8C5WDM1oM0mKmjYqPu/xlUGv5+6RPhnH/SvmgtGSTM+ LLeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=vrWQ4H30Q9+yu8DlWIR0QNsLwOpznVM9QCti9hE7ux0=; b=YDvBmOigs82egyUoWjZFeA8ptq222GIFCKprF2ODFSjpZxzsRC1/6bZVGPrBa3fI1r NK9xgL4y86vinmu02t9ljXg0uaCZ8Gyp2BflgotuhTT3xIPb6drRNmPMEBltmX1JEqLU bSarqOadzcX0nWmAdQA4JFId0BrBTcqYalo/7LXZSRXy+DXL1a2d7/X9/sK84Y4rpbBE BriwfmTB+0UxcfJwMAM+9yhvfjzRD7rdYqRxma4nrh+zHn8GKSPu8SrFNoVexJg4UXGU cuqF787Mm3mIKgLmtTI9RQbie9eTtY+0ncINEHXsO3F9NLNiO5CrHrHod0hxdQgAmZlP uuOw== X-Gm-Message-State: AOAM532x4r8N1S319Jsg297+pBmVo3nt1SMk7xPkP4nD1qbaH2aOxZ9r EI2T0SBcsG1nnezkQotqvy0ZgGHFU4myyJpyFIwm9/AEtVc= X-Google-Smtp-Source: ABdhPJwrz0VffMOMRCKCJtL8gTzymzWZpcZu9plJRVtvxCQfHXWULprcz2EwWbivxbtVO0DnT7oiAqwNKMseofTEPnI= X-Received: by 2002:a67:ed58:: with SMTP id m24mr3195086vsp.56.1644814294610; Sun, 13 Feb 2022 20:51:34 -0800 (PST) MIME-Version: 1.0 From: Pushpadant Date: Mon, 14 Feb 2022 10:17:47 +0530 Message-ID: Subject: ixgbe driver - Intel nic 15e4 (x553) reporting link "up" even though the link is down (No traffic going through the interface) To: users@dpdk.org Content-Type: multipart/alternative; boundary="000000000000c0799805d7f32b79" X-Mailman-Approved-At: Thu, 17 Feb 2022 10:08:49 +0100 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 --000000000000c0799805d7f32b79 Content-Type: text/plain; charset="UTF-8" Hi Guys, Dpdk verion : 18.11 Could you please help me figure out why get link status still reports interface as UP even though the link is Down. Intel card: 06:00.0 Ethernet controller: Intel Corporation Device 15e4 (rev 11) - X553 06:00.1 Ethernet controller: Intel Corporation Device 15e4 (rev 11) - X553 07:00.0 Ethernet controller: Intel Corporation Device 15e5 (rev 11) - X553 Problem: Even after bringing DOWN the port, get link status still reports interface UP. My investigation: 1. in ixgbe/base/ixgbe_type.h i see these being defined. Not sure why its defined under this following comment /* Placeholder value, pending official value. */ #define IXGBE_DEV_ID_X550EM_A_1G_T 0x15E4 #define IXGBE_DEV_ID_X550EM_A_1G_T_L 0x15E5 >From this detail i can conclude we have support for above nics. 2. https://doc.dpdk.org/guides-18.11/nics/ixgbe.html#supported-chipsets-and-nics - This link has supported nics and these above nics are not listed under this. 3. After putting some debug statement in ixgbe driver the problem seem to be in base/ixgbe_common.c(ixgbe_check_mac_link_generic() function) links_orig = IXGBE_READ_REG(hw, IXGBE_LINKS); links_reg = IXGBE_READ_REG(hw, IXGBE_LINKS); if (links_orig != links_reg) { 4. I suspect on the resister value used to identify the link status is messing up. Could you please provide your input. Thank you so much for your time. Pushpadant --000000000000c0799805d7f32b79 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hi Guys,

Dpdk verion : 18.11

Could you please help me figure out why=C2=A0 get link status still repo= rts interface as UP even though the link is Down.

Intel card:

06:00.0 Ethernet controller: Intel Corporation Device 15e4 (rev 11) - X5= 53
06:00.1 Ethernet controller: Intel Corporation Device 15e4 (rev 11) -= X553
07:00.0 Ethernet controller: Intel Corporation Device 15e5 (rev 11= ) - X553

Problem: Even after bringing DOWN the port, get link status still report= s interface UP.

My investigation:

1. in ixgbe/base/ixgbe_type.h=C2=A0 i see these being defined. Not sure why i= ts defined under=C2=A0 this following comment /* Placeholder value, pending= =20 official value. */=C2=A0

#define IXGBE_DEV_ID_X550EM_A_1G_T=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0x15E4
#define IXGBE_DEV_ID_X= 550EM_A_1G_T_L=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 0x15E5

From this detail i can conclude we have support for above nics.

2.=C2=A0https://doc.dpdk.org/guides-18.= 11/nics/ixgbe.html#supported-chipsets-and-nics=C2=A0=C2=A0=C2=A0=C2=A0 = - This link has supported nics and these above nics are not listed under th= is.


3. After putting some debug statement in ixgbe driver=C2=A0 the problem = seem to be in=C2=A0 base/ixgbe_common.c(ixgbe_check_mac_link_generic() func= tion)

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 links_orig =3D IXGBE_READ_REG= (hw, IXGBE_LINKS);
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 links_reg =3D IX= GBE_READ_REG(hw, IXGBE_LINKS);
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if (= links_orig !=3D links_reg) {

4. I suspect on the resister value used to identify the link status is m= essing up.

Could you please provide your input.

Thank you so much for your time.

Pushpadant

--000000000000c0799805d7f32b79--