[dpdk-users] How to set fixed link speed on i40e port?
mcconnma at gmail.com
Tue Mar 27 21:43:10 CEST 2018
I am trying to set the speed on an i40e port to 1G that only supports 1G to
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 = 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
# ethtool -s nic2_0 autoneg off advertise 0x020
It’s not clear how to do this with the DPDK API.
Any thoughts, guidance appreciated.
More information about the users