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 7D7B5A0352 for ; Tue, 15 Feb 2022 03:16:41 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EE77040E78; Tue, 15 Feb 2022 03:16:40 +0100 (CET) Received: from mail-vs1-f48.google.com (mail-vs1-f48.google.com [209.85.217.48]) by mails.dpdk.org (Postfix) with ESMTP id CEF6F40DDA for ; Tue, 15 Feb 2022 03:16:39 +0100 (CET) Received: by mail-vs1-f48.google.com with SMTP id j20so7163493vsg.5 for ; Mon, 14 Feb 2022 18:16:39 -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=nvDWv6o3GeIba3rNMsbUn99P9dHmdc4/zNXqLxp1Bow=; b=WjR1ahoQrDzn7H7vTsUP/htn66mTA2+xrgOGuRAuLc/233fCZW79QbiqQqyqJkkoZ1 P7PaBtxdAS1s7rjLR2wgnyxeqXwC4k+5q5brtPNp+6YVde51trH0DBskmMBXVRV4OVfV NlWSHNZ1lU4k7pQO3dJjO9QAqHQQURxlLu5PqorVfNiff42s8omwEeH0ZoDgjcR1Ti3s U5hgpz9Qf4+78AlvYYkYC06xAUgnd2jcjvN5nabqD6iQP7oQRQesfHl3IppqCJyvOSn2 J8ghslXmeeNLVXw13MJifEjur4Qdt5S493ug//DDzOEx2HEYwAGoLj5SHPCaWjlSlbE7 86eQ== 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=nvDWv6o3GeIba3rNMsbUn99P9dHmdc4/zNXqLxp1Bow=; b=ZJx3DyoResUu66sOjpdiGsdHhEnwSs1zyi56ypIrutxpDEeuAYwUdNNGQpb8iG1h0J Tt3dcn7ume6oAcakWjr86pjKwqf3f2StE+dCvcHYWoc8sd/0Nk2FG6c06Fv5C89z9qck dAcMqQY2NaIdlyJVkEalbP43UO7dx2yZ2Nw3uFgV4K7i/GKBdklwT5fZ7MN9gPs/9lYb ZlifbnnVD/kVlShx9XX/mRqYiLHmKrSIRWySKrod1Zbe784bWWcLoZpp3G63xI/RcPk7 iWeyVHSMlfL2WWoM+k1cmR0aJKHv7VSpURtDVGdb7rL9g4tkauZmcfLzqrXQU5p0gw34 GCvA== X-Gm-Message-State: AOAM53218iaw52RnWqEqF5eMP+gn2gI2cQbf/DyI7QENzu1Ln6q20ZAz DMToS5WzLXMZY27pe0HI043lYV8WUQCfUF1I/zI28HdzKKw= X-Google-Smtp-Source: ABdhPJywa7KXzvUz2PhoBJ1BT7/zEjEkHCKVn8XaJ18nHHjPAVcnHW5NQy24gU754Zt8grK08LpX33u8ez0lpE0KgqA= X-Received: by 2002:a67:ed58:: with SMTP id m24mr706647vsp.56.1644891398953; Mon, 14 Feb 2022 18:16:38 -0800 (PST) MIME-Version: 1.0 From: Pushpadant Date: Tue, 15 Feb 2022 07:42:50 +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="00000000000087621505d8051f89" 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 --00000000000087621505d8051f89 Content-Type: text/plain; charset="UTF-8" Hi Guys, Using 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. --00000000000087621505d8051f89 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hi Guys,

Using Dpdk verion : 18.11

Coul= d you please help me figure out why=C2=A0 get link status still reports int= erface as UP even though the link is Down.

Intel card:

= 06:00.0 Ethernet controller: Intel Corporation Device 15e4 (rev 11) - X553<= br>06:00.1 Ethernet controller: Intel Corporation Device 15e4 (rev 11) - X5= 53
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=C2=A0 i see these being defined. Not sure why its defined= under=C2=A0 this following comment /* Placeholder value, pending 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_X550EM_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 the= se above nics are not listed under this.


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() function)

=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 links_orig =3D IXGBE_READ_REG(hw, I= XGBE_LINKS);
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 links_reg =3D IXGBE_RE= AD_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 ide= ntify the link status is messing up.

Could you please provide you= r input.

Thank you so much for your time.

--00000000000087621505d8051f89--