From 6f2d5a404693585913fb0c693f5d36014bf18601 Mon Sep 17 00:00:00 2001 From: Alessandro Thea Date: Sat, 24 Feb 2024 00:32:13 +0100 Subject: [PATCH 1/2] Disabled link status check at init --- src/EALSetup.cpp | 4 +++- src/IfaceWrapper.cpp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/EALSetup.cpp b/src/EALSetup.cpp index f9e07d9..862ef83 100644 --- a/src/EALSetup.cpp +++ b/src/EALSetup.cpp @@ -194,10 +194,12 @@ iface_init(uint16_t iface, uint16_t rx_rings, uint16_t tx_rings, throw FailedToConfigureInterface(ERS_HERE, iface, "MAC address retrival", retval); } - if ((retval = rte_eth_link_get(iface, &link)) < 0) { + if ((retval = rte_eth_link_get(iface, &link)) != 0) { throw FailedToRetrieveLinkStatus(ERS_HERE, iface, retval); } + TLOG() << "Link: speed=" << link.link_speed << " duplex=" << link.link_duplex << " autoneg=" << link.link_autoneg << " status=" << link.link_status; + if ( check_link_status && link.link_status == 0 ) { throw LinkOffline(ERS_HERE, iface); } diff --git a/src/IfaceWrapper.cpp b/src/IfaceWrapper.cpp index 6dea391..2a11cd0 100644 --- a/src/IfaceWrapper.cpp +++ b/src/IfaceWrapper.cpp @@ -93,7 +93,7 @@ IfaceWrapper::setup_interface() { TLOG() << "Initialize interface " << m_iface_id; bool with_reset = true, with_mq_mode = true; // go to config - bool check_link_status = true; + bool check_link_status = false; int retval = ealutils::iface_init(m_iface_id, m_rx_qs.size(), m_tx_qs.size(), m_rx_ring_size, m_tx_ring_size, m_mbuf_pools, with_reset, with_mq_mode, check_link_status); if (retval != 0 ) { From 04eaa619fc1e12c7e715e6e6fa1afc2debcde48b Mon Sep 17 00:00:00 2001 From: Kurt Biery Date: Tue, 27 Feb 2024 08:57:55 -0600 Subject: [PATCH 2/2] Updated version to v1.2.3 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6a9810b..22e83c0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.12) -project(dpdklibs VERSION 1.2.2) +project(dpdklibs VERSION 1.2.3) find_package(daq-cmake REQUIRED)