From: Tom B <tbi28430@gmail.com>
To: users@dpdk.org
Subject: [dpdk-users] Port Link state for secondary process
Date: Mon, 29 Jan 2018 08:58:14 -0500 [thread overview]
Message-ID: <CA+JPaUPqu6=TkABV==aw39iY2C2VhXEOv-jRXugxt6Nbi7nobA@mail.gmail.com> (raw)
Hello,
I could not get the port link state using rte_eth_link_get from a secondary
process:
struct rte_eth_link link;
rte_eth_link_get((uint8_t) port_id, &link);
if (link.link_status) {
printf("Link Up\n");
}
else {
printf("Link Down\n");
}
This code caused either segmentation fault for dpdk-16.11 or EAL fatal
error in dpdk-17.11.
Please suggest me a work around to get the link state (up/down) in
secondary process.
Thanks,
TB
reply other threads:[~2018-01-29 13:58 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='CA+JPaUPqu6=TkABV==aw39iY2C2VhXEOv-jRXugxt6Nbi7nobA@mail.gmail.com' \
--to=tbi28430@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).