DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Port Link state for secondary process
@ 2018-01-29 13:58 Tom B
  0 siblings, 0 replies; only message in thread
From: Tom B @ 2018-01-29 13:58 UTC (permalink / raw)
  To: users

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-01-29 13:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-29 13:58 [dpdk-users] Port Link state for secondary process Tom B

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).