From: Lukas Sismis Date: Sun, 11 Feb 2024 16:16:23 +0000 (+0100) Subject: dpdk: add missing SCEnter macros to functions with SCReturns X-Git-Tag: suricata-8.0.0-beta1~1727 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b35c42b0568a0de07075b406ef796cdd6993f75;p=thirdparty%2Fsuricata.git dpdk: add missing SCEnter macros to functions with SCReturns --- diff --git a/src/runmode-dpdk.c b/src/runmode-dpdk.c index 5bb071f7f1..d448659da1 100644 --- a/src/runmode-dpdk.c +++ b/src/runmode-dpdk.c @@ -1070,6 +1070,7 @@ static void DumpRXOffloadCapabilities(const uint64_t rx_offld_capa) static int DeviceValidateMTU(const DPDKIfaceConfig *iconf, const struct rte_eth_dev_info *dev_info) { + SCEnter(); if (iconf->mtu > dev_info->max_mtu || iconf->mtu < dev_info->min_mtu) { SCLogError("%s: MTU out of bounds. " "Min MTU: %" PRIu16 " Max MTU: %" PRIu16, @@ -1369,6 +1370,7 @@ static int DeviceConfigureIPS(DPDKIfaceConfig *iconf) static int32_t DeviceVerifyPostConfigure( const DPDKIfaceConfig *iconf, const struct rte_eth_dev_info *dev_info) { + SCEnter(); struct rte_eth_dev_info post_conf_dev_info = { 0 }; int32_t ret = rte_eth_dev_info_get(iconf->port_id, &post_conf_dev_info); if (ret < 0) {