DPDK usage discussions
 help / color / Atom feed
* [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:

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;

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?

Hankyu Kim

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

only message in thread, back to index

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

DPDK usage discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/users/0 users/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 users users/ http://inbox.dpdk.org/users \
	public-inbox-index users

Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/ public-inbox