DPDK usage discussions
 help / color / mirror / Atom feed
From: Mark McConnaughay <mcconnma@gmail.com>
To: users@dpdk.org
Subject: [dpdk-users] How to set fixed link speed on i40e port?
Date: Tue, 27 Mar 2018 15:43:10 -0400	[thread overview]
Message-ID: <CAH68JwUWaT+OPvL+VPZVAKBWe+jZYu8ror5e-6BkRPBBLeogfA@mail.gmail.com> (raw)

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,

                 reply	other threads:[~2018-03-27 19:43 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=CAH68JwUWaT+OPvL+VPZVAKBWe+jZYu8ror5e-6BkRPBBLeogfA@mail.gmail.com \
    --to=mcconnma@gmail.com \
    --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).