From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0A9EEA10DA for ; Thu, 1 Aug 2019 09:44:51 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D83811C1CA; Thu, 1 Aug 2019 09:44:50 +0200 (CEST) Received: from mail.vastech.co.za (mail.vastech.co.za [41.193.221.138]) by dpdk.org (Postfix) with ESMTP id AF4CB1BE00 for ; Thu, 1 Aug 2019 09:44:49 +0200 (CEST) dkim-signature: v=1; a=rsa-sha256; d=vastech.co.za; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From:Subject:Date:Message-ID:To:MIME-Version:Content-Type; bh=cSXzPMtU0m0/SGDTHrd8qUYu3UAwE9FyuTrzGdZqlU0=; b=bd21rWyXxxzfxVYDthitJrXHuiWt1+I2mf/tX93iIDNTELwuKmTMvjWo1Mmlvew2QBD+Zeb7ovGZ5VO69p4YDfgGXGDT9W/SDIZ9FdFyby4ifxYOkke4I5GE9J5YJnw2bLdsYdIF6ejNi3UfIg+J6RcPAGgTC3ug9J2dY4a7Dd8= Received: from EXCHANGE1.vastech.co.za (Unknown [172.16.81.13]) by mail.vastech.co.za with ESMTPSA ; Thu, 1 Aug 2019 09:44:48 +0200 Received: from EXCHANGE1.vastech.co.za (172.16.81.13) by EXCHANGE1.vastech.co.za (172.16.81.13) with Microsoft SMTP Server (TLS) id 15.0.847.32; Thu, 1 Aug 2019 09:44:48 +0200 Received: from EXCHANGE1.vastech.co.za ([fe80::d871:63b9:9765:a9ae]) by EXCHANGE1.vastech.co.za ([fe80::d871:63b9:9765:a9ae%12]) with mapi id 15.00.0847.040; Thu, 1 Aug 2019 09:44:29 +0200 From: Hankyu Kim To: "users@dpdk.org" Thread-Topic: Setting fixed link speed on i40e Thread-Index: AdVIPGWpBC3igQh9QcOSXBVe7/I0iA== Date: Thu, 1 Aug 2019 07:44:29 +0000 Message-ID: <55de01f6cb624a1f97c363bfba2c9b79@EXCHANGE1.vastech.co.za> Accept-Language: en-ZA, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.16.62.163] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Setting fixed link speed on i40e X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" I've noticed not being able to set link speed is a known issue that's been = around for a while: https://doc.dpdk.org/guides-19.05/rel_notes/known_issues.html#cannot-set-li= nk-speed-on-intel-40g-ethernet-controller http://mails.dpdk.org/archives/users/2018-March/002982.html However, when I remove the following check in i40e_ethdev.c: // if (dev->data->dev_conf.link_speeds & ETH_LINK_SPEED_FIXED) { // PMD_INIT_LOG(ERR, // "Invalid link_speeds for port %u, autonegotiation dis= abled", // dev->data->port_id); // return -EINVAL; // } and force i40e_phy_conf_link to run by setting the link down after configur= ing link_speeds in the application: port_conf.link_speeds =3D ETH_LINK_SPEED_1G | ETH_LINK_SPEED_FIXED= ; rte_eth_dev_set_link_down(port); ... rte_eth_dev_start(port); The link appears to have changed from the default value of 10Gb to 1Gb, for= Intel XXV710 NIC. Is this a correct way to change the link speed? Or is there a problem I'm m= issing, that caused this to be blocked? Regards, Hankyu Kim