DPDK usage discussions
 help / color / mirror / Atom feed
From: Cody Doucette <doucette@bu.edu>
To: users@dpdk.org
Subject: Re: [dpdk-users] rte_eth_link_get() issue for bonded interface
Date: Wed, 9 Nov 2016 15:54:49 -0500	[thread overview]
Message-ID: <CAJjX64ajhuCzvYF_2nyVT9Y8pNMzyRxTTOJEPK5Jb0gDBxfavg@mail.gmail.com> (raw)
In-Reply-To: <CAJjX64aR=aRwSWx7sKNT70Sfr9KQmE8+eKAP8_BWh_sxy5m6cQ@mail.gmail.com>

I've resolved this, so in case anyone sees this problem in the future: it
is expected behavior to an extent. It can take a couple of seconds for
slaves to be activated, so when checking whether a bonded link is up, try
wrapping it in a loop to repeatedly check until the slaves have been
activated. They are polled every 10 milliseconds, but in my experience it
takes a couple of seconds for the bonded link to be recognized as up.

On Mon, Nov 7, 2016 at 12:38 PM, Cody Doucette <doucette@bu.edu> wrote:

> Hello,
>
> I've been experimenting with the bonding features of DPDK. If you take the
> bond sample application and add a call to rte_eth_link_get() after you
> start the bonded interface, it indicates the link is down, even though
> there were no errors in creating the bonded interface, adding slaves, and
> starting it.
>
> Looking at the bonding driver, it seems that bond_ethdev_link_update() is
> setting the link status to down because the number of active slaves is 0.
> This could be because the active slave count only seems to be incremented
> if a slave is added *after* the bonded device is started.
>
> So is there a bug in the bond sample application or in the bonding driver?
> Or is this expected behavior?
>
> Thanks for any info!
> Cody
>

      reply	other threads:[~2016-11-09 20:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-07 17:38 Cody Doucette
2016-11-09 20:54 ` Cody Doucette [this message]

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=CAJjX64ajhuCzvYF_2nyVT9Y8pNMzyRxTTOJEPK5Jb0gDBxfavg@mail.gmail.com \
    --to=doucette@bu.edu \
    --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).