From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtprelay07.ispgateway.de (smtprelay07.ispgateway.de [134.119.228.99]) by dpdk.org (Postfix) with ESMTP id 9DB742BDB for ; Tue, 22 Jan 2019 16:07:33 +0100 (CET) Received: from [146.52.43.153] (helo=nb-martin.allegro) by smtprelay07.ispgateway.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) (envelope-from ) id 1glxeH-0000La-2R; Tue, 22 Jan 2019 16:07:33 +0100 From: Martin Weiser Openpgp: preference=signencrypt Autocrypt: addr=martin.weiser@allegro-packets.com; prefer-encrypt=mutual; keydata= mQINBFQEOvgBEADV9gmB6O20GO+WviGWqcfR5GofDWazzHVQSxbwJGO2ECNDgzh7JHNyc7bl r6er7asKUfrm9yr3l+C1AtChxxYjOldRW+T/UFlJ+qU8yu1EnNJPZYNcUCE1yZtxQtP5FRax Y1KCshurdsbbRzb4rwWLsoP27snqbJnxKuxRUBe5OUImaKxKmJFWV6n3oJ15KwTEObolDEh0 siWtWXWnfGWMY0xUBqPxIxqWLNH39LBiuq1EQMtX//rpKKTg5LWZVFZEpyZKNptNKpVYl0vI jAozbkuml3JRVP6vzkNgdnfxLLdV1WHmLltkVW1IVLpFE1iy6OmY//IuY4Rnr36q2qGl5GTQ Zk72LV0We6O5fhB//AC0Dj8f/Y5XD0cVi37W5t3k9V43Spx7e17HGytiKWo8KaWSXBbxPE05 PKnwC5a4yhReCrMBDfVtIO64/MiSMbDY47MvUxvAnE5x8CRPWxvE70PqedzPfPLEMFdD/vtf CDM0ZOJdtl0IVsr32JoSGJscL4kMkbBp5M24Qw2a4nJJz47/EnvPetNJjH74J18jnj5FVgYh wHoFc1XjTaTu+zB3h/STUR4AdsR+wFIl7gRfDD1Jv4A5N3pqrFRa2RRsZTSHvLJanWsLKJdF GMflDteFNCd53BlOTyRUaVXGaXlNmTsmtCBI6q4/HzJiBenE8wARAQABtDFNYXJ0aW4gV2Vp c2Vy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/9CZdYLmCBQSzqkDKssGBqJR18T JipVPp667WgZeQcL4EI6tSM3zOzgaAoUzK6MZS+XoWMpuasCdfcYR/bGKUEeD2iXlzyk/yH9 qLoa2pPaDMNXwc+29/OX//M6Xd/y To: Beilei Xing , Qi Zhang , "dev@dpdk.org" Message-ID: Date: Tue, 22 Jan 2019 16:07:32 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-Df-Sender: bWFydGluLndlaXNlckBhbGxlZ3JvLXBhY2tldHMuY29t Subject: [dpdk-dev] i40e rte_eth_link_get_nowait() on X722 returns wrong link_speed value 20000 instead of 10000 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jan 2019 15:07:33 -0000 Hi, We are using a Xeon D with an integrated X722 NIC that provides two ports of 8086:37d2 and two ports of 8086:37d0. All four ports show the same behavior: they return a link speed value of 20000 for a 10Gbps link.= This only seems to happen when internally the update_link_reg() function in i40e_ethdev.c is used. This requires the application to use the rte_eth_link_get_nowait() function and not use link status change interrupts. If you use e.g. testpmd with the option --no-lsc-interrupt you can reproduce the behavior since it will suddenly show a link speed of 20000 Mbps instead of 10000 Mbps. Here are two examples of the register values read by update_link_reg(): A 10Gbps link which produces the wrong link speed value: I40E_PRTMAC_LINKSTA: 0x60000080 I40E_PRTMAC_MACC:=C2=A0=C2=A0=C2=A0 0x3d00 A 1Gbps link which produces the correct link speed value: I40E_PRTMAC_LINKSTA: 0x48000081 I40E_PRTMAC_MACC:=C2=A0=C2=A0=C2=A0 0x3d00 Best regards, Martin