From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk0-f47.google.com (mail-vk0-f47.google.com [209.85.213.47]) by dpdk.org (Postfix) with ESMTP id A3CDC2C12 for ; Tue, 27 Mar 2018 21:43:12 +0200 (CEST) Received: by mail-vk0-f47.google.com with SMTP id b16so49344vka.5 for ; Tue, 27 Mar 2018 12:43:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=QEBQpCEmxBl6RngWo5+NkHf705wcyCTpd4N6g8US9Gg=; b=h5YJ9U3WbU69PK5SvIjwpnBZdLFw1mP4IWeA7ZE2HeQwSqeRjcvKceoYLzcoTa9WW/ 8V0zAqllKJSqLPscjUfX4UIGonUGJbU3GahoeZAwB5cPOriMPDnq8ltTDrOeaB0EmGoo cKeFgL+u7PjhqjQS+RJ3zE2RxjUIueLlkpJMHWLPJ2IE+xGymUIdZVpX2cKw0RLh+oe/ DvPqLvphRhwfsIKhQ+1G4rX+uvlKf2TsfZpgTUIkhryVfnh3MMOrnRn4zTGdR2QktrXN ZDHg9QV0awEQ41iSafD9IxCSDX5SIcd6NkAXNQgbFNZIeiCII2rzfq9zX7zoXWq1b3DX tTiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=QEBQpCEmxBl6RngWo5+NkHf705wcyCTpd4N6g8US9Gg=; b=sh7qu23TAseCY4pOd6HKWbdMVQQzi+NNK10oH/bAyXH60Zj51zb6AjCY9GZosiUEMp g73FKhLr68MBDPDptOPEEsPMr9nRDmegbVxgW5PR0HIpqOgiGUYUPK9tkeMMCfbVNMIe yqG3xR8klIvhHGRgmtyz1kocyX+Oa1alpLDa01KR0gpL1wDq0r/+H9MVcIcQpoaNLOGW 3OfENMnMyHXHbCjUFKEJ2xKOFZ+Hq3rl+QNNAboiOvkb0muF396p7MWixdsb8uZOgy3i yDie/VLzN2M1oawjpt6bCPZMe3UDhstID6n8mDxHusjHTmOmDNmEPeQ3ZMp4wnDM89UR Mqzw== X-Gm-Message-State: AElRT7E57mM85+wbQ70Kk1oTZjhwZRgZzUzqjOtF8ahBGFuB2lsAsAaC BioDJVAJAJ4pL40R/ZJfqUGUDO358Yq9sa4t8L6BgFAa X-Google-Smtp-Source: AIpwx4/MRh39d+sus3w/hF+Ab3/+ucWcOxuVwKTgPuZUi4hOL2MjU+IkTCVrU64eom/nSm1BRMT0Y7pGJsAoyeSq7U4= X-Received: by 10.31.170.139 with SMTP id t133mr516318vke.110.1522179791376; Tue, 27 Mar 2018 12:43:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.5.234 with HTTP; Tue, 27 Mar 2018 12:43:10 -0700 (PDT) From: Mark McConnaughay Date: Tue, 27 Mar 2018 15:43:10 -0400 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] How to set fixed link speed on i40e port? 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: , X-List-Received-Date: Tue, 27 Mar 2018 19:43:13 -0000 Hi, I am trying to set the speed on an i40e port to 1G that only supports 1G to 10G. However, after stopping, configuring and starting the port, it always auto-negotiates with the upstream switch to the higher rate (10G). I tried this to disable auto-negotiation and set a fixed speed: rte_eth_config.link_speeds =3D ETH_LINK_SPEED_FIXED | ETH_LINK_SPEED_1G; However, I received the following error: i40e_dev_start(): Invalid link_speeds for port 0; autonegotiation disabled I was able to set it to 1G via the kernel driver by disable auto-neg as such: # ethtool -s nic2_0 autoneg off advertise 0x020 It=E2=80=99s not clear how to do this with the DPDK API. Any thoughts, guidance appreciated. Thanks,