DPDK usage discussions
 help / color / mirror / Atom feed
From: John Sucaet <john.sucaet@oneaccess-net.com>
To: users@dpdk.org
Subject: [dpdk-users] rte_eth_dev_set_link_up: is it ever required to be used after rte_eth_dev_start
Date: Wed, 24 Feb 2021 15:08:39 +0100	[thread overview]
Message-ID: <bdb1e4df-1da6-30a6-a454-3aaa54f8ee2d@oneaccess-net.com> (raw)

Hello all,

Looking at the api help for rte_eth_dev_set_link_up, it seems it is not 
required to call this function after rte_eth_dev_start. I see this 
confirmed in the fact that even not all pmds implement this function 
(e.g. virtio) and that some pmds call the link_up function in their 
start function.

However I am a bit confused by this example code:

https://doc.dpdk.org/api/examples_2ip_pipeline_2link_8c-example.html#a20

in which there is a call to rte_eth_dev_set_link_up after the start.

In what cases is it needed to call rte_eth_dev_set_link_up right after 
rte_eth_dev_set_link_up?

Thanks

John


                 reply	other threads:[~2021-02-24 14:08 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=bdb1e4df-1da6-30a6-a454-3aaa54f8ee2d@oneaccess-net.com \
    --to=john.sucaet@oneaccess-net.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).