]> git.droids-corp.org - dpdk.git/commitdiff
pcapng: use new ethdev namespace
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 29 Oct 2021 21:50:12 +0000 (14:50 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 31 Oct 2021 22:25:02 +0000 (23:25 +0100)
RTE_ prefix was added by
commit 295968d17407 ("ethdev: add namespace")

Fixes: 8d23ce8f5ee9 ("pcapng: add new library for writing pcapng files")
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
lib/pcapng/rte_pcapng.c

index a3d5760e6835d47a0b39494dea31eb5cb0af43a6..03edabe73e966b1f605b9047da88429feaaa9ba9 100644 (file)
@@ -178,7 +178,7 @@ pcapng_add_interface(rte_pcapng_t *self, uint16_t port)
 
        /* DPDK reports in units of Mbps */
        rte_eth_link_get(port, &link);
-       if (link.link_status == ETH_LINK_UP)
+       if (link.link_status == RTE_ETH_LINK_UP)
                speed = link.link_speed * PCAPNG_MBPS_SPEED;
 
        if (rte_eth_macaddr_get(port, &macaddr) < 0)