* [dpdk-users] Setting fixed link speed on i40e
@ 2019-08-01 7:44 Hankyu Kim
0 siblings, 0 replies; only message in thread
From: Hankyu Kim @ 2019-08-01 7:44 UTC (permalink / raw)
To: 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-link-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 disabled",
// dev->data->port_id);
// return -EINVAL;
// }
and force i40e_phy_conf_link to run by setting the link down after configuring link_speeds in the application:
port_conf.link_speeds = 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 missing, that caused this to be blocked?
Regards,
Hankyu Kim
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-08-01 7:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-01 7:44 [dpdk-users] Setting fixed link speed on i40e Hankyu Kim
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).