DPDK usage discussions
 help / color / mirror / Atom feed
From: Alex Kiselev <kiselev99@gmail.com>
To: users <users@dpdk.org>
Subject: Re: [dpdk-users] bringing up kni interfaces using netlink
Date: Sat, 1 Oct 2016 22:54:23 +0300	[thread overview]
Message-ID: <CAMKNYbxZcXMRX=WuJ+wBRhgC0uCBZm-MavhYVE0Go6oEK+Re0g@mail.gmail.com> (raw)
In-Reply-To: <CAMKNYbyxkCmKiBphUGMFKMgqcjk8z9zDUX1rWy4XqGYCW68bjg@mail.gmail.com>

Hi!

One part of my problem is solved. I've figured out the cause of renaming
kni interfaces. It was due to linux udev rules.

But the dpdk related part of the problem is still there: I am having troubles
with bringing them up. They are created just fine, I can get their
linux interfaces index, I can add ip addresses to them using the netlink,
but have to wait some time after their creation in order to bring them
up using netlink api.

So, do kni interfaces really need some time to complete some kind of
initialization and only
then can receive "up" netlink commands?


2016-09-19 19:20 GMT+03:00 Alex Kiselev <kiselev99@gmail.com>:
> Hi!
>
> I am trying to use the linux netlink interface with kni interfaces in
> order to bring them up and add ip addresses to them and I am
> experiencing some strange behaviors. Could anyone help me to
> understand what I am doing wrong?
>
> The problem is that I can’t bring kni interfaces up using the netlink
> interface immediately after their creation. What I can is to bring
> them up using the “ip” linux tool or I can bring them up using netlink
> after some time has passed. But when I try to up them immediately
> after the creation they just stay in the “DOWN” state. Also the “ip
> link ls” linux command freezes for about 5-7 seconds after netlink
> commands have sent to up the kni interfaces, and one of kni interfaces
> changes it’s name to the name of one of the pure linux interfaces
> (eth3).
>
> P.S. I am using the DPDP 2.2.0.
>
>
> --
> --
> Alex Kiselev

-- 
--
Alexander Kiselev

      reply	other threads:[~2016-10-01 19:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-19 16:20 Alex Kiselev
2016-10-01 19:54 ` Alex Kiselev [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='CAMKNYbxZcXMRX=WuJ+wBRhgC0uCBZm-MavhYVE0Go6oEK+Re0g@mail.gmail.com' \
    --to=kiselev99@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).