DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] How to set fixed link speed on i40e port?
@ 2018-03-27 19:43 Mark McConnaughay
  0 siblings, 0 replies; only message in thread
From: Mark McConnaughay @ 2018-03-27 19:43 UTC (permalink / raw)
  To: users

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 = 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’s not clear how to do this with the DPDK API.

Any thoughts, guidance appreciated.



Thanks,

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-03-27 19:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-27 19:43 [dpdk-users] How to set fixed link speed on i40e port? Mark McConnaughay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).