DPDK usage discussions
 help / color / mirror / Atom feed
From: Hankyu Kim <hankyu.kim@vastech.co.za>
To: "users@dpdk.org" <users@dpdk.org>
Subject: [dpdk-users] Setting fixed link speed on i40e
Date: Thu, 1 Aug 2019 07:44:29 +0000	[thread overview]
Message-ID: <55de01f6cb624a1f97c363bfba2c9b79@EXCHANGE1.vastech.co.za> (raw)

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

                 reply	other threads:[~2019-08-01  7:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55de01f6cb624a1f97c363bfba2c9b79@EXCHANGE1.vastech.co.za \
    --to=hankyu.kim@vastech.co.za \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).