DPDK patches and discussions
 help / color / mirror / Atom feed
From: Bruce Richardson <bruce.richardson@intel.com>
To: Keren Hochman <keren.hochman@lightcyber.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] Using rte_eth_link_get_nowait
Date: Mon, 26 Sep 2016 11:08:28 +0100	[thread overview]
Message-ID: <20160926100828.GB15828@bricha3-MOBL3> (raw)
In-Reply-To: <CAJq3SQ4tKxEY3cqQX6-63A_eSvU_YVKPiZVtmywZySoqBRsT2w@mail.gmail.com>

On Mon, Sep 26, 2016 at 01:02:00PM +0300, Keren Hochman wrote:
> Hi,
> My application needs to know if port is up, but without wasting 9 seconds
> (using rte_eth_link_get).
> I tried to register to callback: lsi_event_callback as suggested in the
> DPDK examples but I did not receive the event RTE_ETH_EVENT_INTR_LSC.
> Thanks, Keren.

There is also the ethdev function rte_eth_link_get_nowait(), which should do
what you want, I think.

Regards,
/Bruce

      reply	other threads:[~2016-09-26 10:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-26 10:02 Keren Hochman
2016-09-26 10:08 ` Bruce Richardson [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=20160926100828.GB15828@bricha3-MOBL3 \
    --to=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=keren.hochman@lightcyber.com \
    /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).