dpdklibs
Unit Tests
| Test | Status |
|---|---|
| Conversions_test | ✅ Passed |
| Utils_test | ✅ Passed |
Clang Formatting
| File | Status |
|---|---|
| include/dpdklibs/CyclicDataGenerator.hpp | ❌ Needs formatting |
| include/dpdklibs/DPDKDefinitions.hpp | ✅ Already formatted |
| include/dpdklibs/EALSetup.hpp | ❌ Needs formatting |
| include/dpdklibs/FlowControl.hpp | ❌ Needs formatting |
| include/dpdklibs/Issues.hpp | ❌ Needs formatting |
| include/dpdklibs/RTEIfaceSetup.hpp | ❌ Needs formatting |
| include/dpdklibs/XstatsHelper.hpp | ❌ Needs formatting |
| include/dpdklibs/arp/ARP.hpp | ❌ Needs formatting |
| include/dpdklibs/ipv4_addr.hpp | ❌ Needs formatting |
| include/dpdklibs/nicreader/Nljs.hpp | ❌ Needs formatting |
| include/dpdklibs/nicreader/Structs.hpp | ❌ Needs formatting |
| include/dpdklibs/nicsender/Nljs.hpp | ❌ Needs formatting |
| include/dpdklibs/nicsender/Structs.hpp | ❌ Needs formatting |
| include/dpdklibs/udp/IPV4UDPPacket.hpp | ❌ Needs formatting |
| include/dpdklibs/udp/PacketCtor.hpp | ❌ Needs formatting |
| include/dpdklibs/udp/Utils.hpp | ❌ Needs formatting |
| plugins/DPDKReaderModule.cpp | ❌ Needs formatting |
| plugins/DPDKReaderModule.hpp | ❌ Needs formatting |
| plugins/NICSender.cpp | ❌ Needs formatting |
| plugins/NICSender.hpp | ❌ Needs formatting |
| src/CreateSource.hpp | ❌ Needs formatting |
| src/CyclicDataGenerator.cpp | ❌ Needs formatting |
| src/EALSetup.cpp | ❌ Needs formatting |
| src/FlowControl.cpp | ❌ Needs formatting |
| src/IfaceWrapper.cpp | ❌ Needs formatting |
| src/IfaceWrapper.hpp | ❌ Needs formatting |
| src/SourceConcept.hpp | ❌ Needs formatting |
| src/SourceModel.hpp | ❌ Needs formatting |
| src/arp/ARP.cpp | ❌ Needs formatting |
| src/detail/IfaceWrapper.hxx | ❌ Needs formatting |
| src/udp/PacketCtor.cpp | ❌ Needs formatting |
| src/udp/Utils.cpp | ❌ Needs formatting |
| test/apps/test_arp_response.cxx | ❌ Needs formatting |
| test/apps/test_dpdk_stats.cxx | ❌ Needs formatting |
| test/apps/test_eal_app.cxx | ❌ Needs formatting |
| test/apps/test_frame_receiver.cxx | ❌ Needs formatting |
| test/apps/test_frame_transmitter.cxx | ❌ Needs formatting |
| test/apps/test_frames.hpp | ❌ Needs formatting |
| test/apps/test_garp.cxx | ❌ Needs formatting |
| test/apps/test_multi_proc.cxx | ❌ Needs formatting |
| test/apps/test_transmit_and_receive.cxx | ❌ Needs formatting |
| unittest/Conversions_test.cxx | ❌ Needs formatting |
| unittest/Utils_test.cxx | ❌ Needs formatting |
include/dpdklibs/CyclicDataGenerator.hpp
Errors
- Line 0: The standard copyright message wasn't found.
- Line 1: #ifndef header guard has wrong style, please use: DPDKLIBS_INCLUDE_DPDKLIBS_CYCLICDATAGENERATOR_HPP_
- Line 33: #endif line should be "#endif // DPDKLIBS_INCLUDE_DPDKLIBS_CYCLICDATAGENERATOR_HPP_"
- Line 14: Constructors callable with one argument should be marked explicit.
- Line 15: Constructors callable with one argument should be marked explicit.
include/dpdklibs/DPDKDefinitions.hpp
Errors
- Line 9: #ifndef header guard has wrong style, please use: DPDKLIBS_INCLUDE_DPDKLIBS_DPDKDEFINITIONS_HPP_
- Line 25: #endif line should be "#endif // DPDKLIBS_INCLUDE_DPDKLIBS_DPDKDEFINITIONS_HPP_"
- Line 15: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 16: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 18: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 19: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 20: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
include/dpdklibs/EALSetup.hpp
Errors
- Line 23: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 24: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 26: An unsigned integer appears to be used here.
- Line 26: static storage declaration outside of class or function not allowed (if this isn't a header, please contact John Freeman)
- Line 34: An unsigned integer appears to be used here.
- Line 36: An unsigned integer appears to be used here.
- Line 37: An unsigned integer appears to be used here.
- Line 49: Add #include
for string - Line 38: Add #include
- Line 41: Add #include
for unique_ptr<> - Line 49: Add #include
for vector<>
include/dpdklibs/FlowControl.hpp
Errors
- Line 18: An unsigned integer appears to be used here.
- Line 18: static storage declaration outside of class or function not allowed (if this isn't a header, please contact John Freeman)
- Line 19: An unsigned integer appears to be used here.
- Line 19: static storage declaration outside of class or function not allowed (if this isn't a header, please contact John Freeman)
- Line 22: An unsigned integer appears to be used here.
- Line 23: An unsigned integer appears to be used here.
- Line 24: An unsigned integer appears to be used here.
- Line 28: An unsigned integer appears to be used here.
- Line 31: An unsigned integer appears to be used here.
include/dpdklibs/Issues.hpp
Errors
- Line 86: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 8: #ifndef header guard has wrong style, please use: DPDKLIBS_INCLUDE_DPDKLIBS_ISSUES_HPP_
- Line 86: #endif line should be "#endif // DPDKLIBS_INCLUDE_DPDKLIBS_ISSUES_HPP_"
- Line 12: Found other header after system header. Should be: Issues.hh, other non-system headers, system headers.
- Line 20: Using C-style cast. Use static_cast
(...) instead - Line 26: Using C-style cast. Use static_cast
(...) instead - Line 32: Using C-style cast. Use static_cast
(...) instead - Line 38: Using C-style cast. Use static_cast
(...) instead - Line 44: Using C-style cast. Use static_cast
(...) instead - Line 50: Using C-style cast. Use static_cast
(...) instead - Line 56: Using C-style cast. Use static_cast
(...) instead - Line 62: Using C-style cast. Use static_cast
(...) instead - Line 68: Using C-style cast. Use static_cast
(...) instead - Line 74: Using C-style cast. Use static_cast
(...) instead - Line 80: Using C-style cast. Use static_cast
(...) instead - Line 83: Namespace should be terminated with '// namespace dunedaq '
include/dpdklibs/RTEIfaceSetup.hpp
Errors
- Line 31: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 23: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 24: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 26: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 27: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 29: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 31: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 34: An unsigned integer appears to be used here.
- Line 34: static storage declaration outside of class or function not allowed (if this isn't a header, please contact John Freeman)
- Line 36: static storage declaration outside of class or function not allowed (if this isn't a header, please contact John Freeman)
- Line 75: An unsigned integer appears to be used here.
- Line 95: An unsigned integer appears to be used here.
- Line 107: An unsigned integer appears to be used here.
- Line 117: Using C-style cast. Use static_cast
(...) instead - Line 118: Using C-style cast. Use static_cast
(...) instead - Line 119: Using C-style cast. Use static_cast
(...) instead - Line 120: Using C-style cast. Use static_cast
(...) instead - Line 121: Using C-style cast. Use static_cast
(...) instead - Line 122: Using C-style cast. Use static_cast
(...) instead - Line 130: An unsigned integer appears to be used here.
- Line 151: An unsigned integer appears to be used here.
include/dpdklibs/XstatsHelper.hpp
Errors
- Line 0: The standard copyright message wasn't found.
- Line 68: You don't need a ; after a }
- Line 34: Use of NULL #define found; prefer using the nullptr keyword
- Line 36: "printf" should not be used for output in DUNE DAQ software.
- Line 40: Using C-style cast. Use one of the C++ cast operators instead
- Line 42: "printf" should not be used for output in DUNE DAQ software.
- Line 47: "printf" should not be used for output in DUNE DAQ software.
- Line 51: Using C-style cast. Use one of the C++ cast operators instead
- Line 51: An unsigned integer appears to be used here.
- Line 53: "printf" should not be used for output in DUNE DAQ software.
- Line 58: "printf" should not be used for output in DUNE DAQ software.
- Line 100: An unsigned integer appears to be used here.
- Line 101: An unsigned integer appears to be used here.
- Line 106: Namespace should be terminated with '// namespace dunedaq::dpdklibs '
include/dpdklibs/arp/ARP.hpp
Errors
- Line 66: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 13: Found other header after system header. Should be: ARP.hh, other non-system headers, system headers.
- Line 36: An unsigned integer appears to be used here.
- Line 37: Using C-style cast. Use one of the C++ cast operators instead
- Line 37: An unsigned integer appears to be used here.
- Line 38: Using C-style cast. Use one of the C++ cast operators instead
- Line 38: An unsigned integer appears to be used here.
- Line 39: An unsigned integer appears to be used here.
- Line 48: Using C-style cast. Use one of the C++ cast operators instead
- Line 48: An unsigned integer appears to be used here.
- Line 49: Using C-style cast. Use one of the C++ cast operators instead
- Line 49: An unsigned integer appears to be used here.
- Line 50: Increment/decrement operator should appear alone on its line unless in a while/for loop head
- Line 50: An unsigned integer appears to be used here.
- Line 51: Increment/decrement operator should appear alone on its line unless in a while/for loop head
- Line 51: An unsigned integer appears to be used here.
- Line 52: An unsigned integer appears to be used here.
- Line 58: Using C-style cast. Use one of the C++ cast operators instead
- Line 58: An unsigned integer appears to be used here.
- Line 59: Using C-style cast. Use one of the C++ cast operators instead
- Line 59: An unsigned integer appears to be used here.
- Line 60: An unsigned integer appears to be used here.
- Line 69: Using C-style cast. Use one of the C++ cast operators instead
- Line 69: An unsigned integer appears to be used here.
- Line 70: Using C-style cast. Use one of the C++ cast operators instead
- Line 70: An unsigned integer appears to be used here.
- Line 76: An unsigned integer appears to be used here.
- Line 79: An unsigned integer appears to be used here.
include/dpdklibs/ipv4_addr.hpp
Errors
- Line 0: The standard copyright message wasn't found.
- Line 34: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 1: #ifndef header guard has wrong style, please use: DPDKLIBS_INCLUDE_DPDKLIBS_IPV4_ADDR_HPP_
- Line 34: #endif line should be "#endif // DPDKLIBS_INCLUDE_DPDKLIBS_IPV4_ADDR_HPP_"
- Line 12: An unsigned integer appears to be used here.
- Line 15: Single-parameter constructors should be marked explicit.
- Line 16: An unsigned integer appears to be used here.
- Line 29: An unsigned integer appears to be used here.
- Line 32: Namespace should be terminated with '// namespace dunedaq::dpdklibs '
include/dpdklibs/udp/IPV4UDPPacket.hpp
Errors
- Line 8: #ifndef header guard has wrong style, please use: DPDKLIBS_INCLUDE_DPDKLIBS_UDP_IPV4UDPPACKET_HPP_
- Line 68: #endif line should be "#endif // DPDKLIBS_INCLUDE_DPDKLIBS_UDP_IPV4UDPPACKET_HPP_"
- Line 20: An unsigned integer appears to be used here.
include/dpdklibs/udp/PacketCtor.hpp
Errors
- Line 31: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 41: #endif line should be "#endif // DPDKLIBS_INCLUDE_DPDKLIBS_UDP_PACKETCTOR_HPP_"
- Line 13: Found other header after system header. Should be: PacketCtor.hh, other non-system headers, system headers.
- Line 15: Found other header after system header. Should be: PacketCtor.hh, other non-system headers, system headers.
include/dpdklibs/udp/Utils.hpp
Errors
- Line 8: #ifndef header guard has wrong style, please use: DPDKLIBS_INCLUDE_DPDKLIBS_UDP_UTILS_HPP_
- Line 98: #endif line should be "#endif // DPDKLIBS_INCLUDE_DPDKLIBS_UDP_UTILS_HPP_"
- Line 17: Include the directory when naming .hh files
- Line 18: Include the directory when naming .hh files
- Line 38: An unsigned integer appears to be used here.
- Line 40: An unsigned integer appears to be used here.
- Line 44: An unsigned integer appears to be used here.
- Line 75: An unsigned integer appears to be used here.
- Line 76: An unsigned integer appears to be used here.
- Line 77: An unsigned integer appears to be used here.
- Line 78: An unsigned integer appears to be used here.
- Line 82: Single-parameter constructors should be marked explicit.
- Line 86: You don't need a ; after a }
plugins/DPDKReaderModule.cpp
Errors
- Line 11: "appfwk/ConfigurationManager.hpp" already included at sourcecode/dpdklibs/plugins/DPDKReaderModule.cpp:10
- Line 104: Missing date in TODO comment; it should appear on same line as the TODO, preferably in a form like "Apr-14-2020"
- Line 104: Missing author name in TODO comment; it should appear on the same line as the TODO, as Firstname Lastname
- Line 104: Missing email address in TODO comment; it should appear on the same line as the TODO
- Line 127: An unsigned integer appears to be used here.
- Line 166: An unsigned integer appears to be used here.
- Line 192: Missing date in TODO comment; it should appear on same line as the TODO, preferably in a form like "Apr-14-2020"
- Line 192: Missing author name in TODO comment; it should appear on the same line as the TODO, as Firstname Lastname
- Line 192: Missing email address in TODO comment; it should appear on the same line as the TODO
- Line 248: Small and focused functions are preferred: DPDKReaderModule::do_configure() has 101 non-comment lines (error triggered by exceeding 80 lines) (disable this by putting "// NOLINT" after the function's closing brace.)
- Line 127: Add #include
for deque<>
Warnings
- Line 6: declaration uses identifier '_RTE_ATOMIC_H_', which is a reserved identifier
- Line 119: function-like macro 'rte_compiler_barrier' used; consider a 'constexpr' template function
- Line 30: macro 'RTE_BIG_ENDIAN' used to declare a constant; consider using a 'constexpr' constant
- Line 93: consider replacing 'unsigned long' with 'uint64'
- Line 19: macro 'MS_PER_S' used to declare a constant; consider using a 'constexpr' constant
- Line 132: function-like macro 'RTE_WAIT_UNTIL_MASKED' used; consider a 'constexpr' template function
- Line 135: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_POWER_INTRINSIC_H_', which is a reserved identifier
- Line 22: macro 'RTE_POWER_MONITOR_OPAQUE_SZ' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_RWLOCK_H_', which is a reserved identifier
- Line 52: macro 'RTE_RWLOCK_WAIT' used to declare a constant; consider using a 'constexpr' constant
- Line 90: converting integer literal to bool, use bool literal instead
- Line 123: variable 'x' is not initialized
- Line 170: variable 'x' is not initialized
- Line 175: converting integer literal to bool, use bool literal instead
- Line 190: variable 'x' is not initialized
- Line 192: converting integer literal to bool, use bool literal instead
- Line 198: converting integer literal to bool, use bool literal instead
- Line 6: declaration uses identifier '_RTE_SPINLOCK_H_', which is a reserved identifier
- Line 223: increment of object of volatile-qualified type 'volatile int' is deprecated
- Line 6: declaration uses identifier '_RTE_ATOMIC_X86_H_', which is a reserved identifier
- Line 21: macro 'MPLOCKED' used to declare a constant; consider using a 'constexpr' constant
- Line 133: do not use C-style cast to convert between unrelated types
- Line 174: variable 'ret' is not initialized
- Line 190: variable 'res' is not initialized
- Line 219: do not use C-style cast to convert between unrelated types
- Line 260: variable 'ret' is not initialized
- Line 17: declaration uses identifier '_RTE_ATOMIC_X86_64_H_', which is a reserved identifier
- Line 29: variable 'res' is not initialized
- Line 145: variable 'ret' is not initialized
- Line 160: variable 'ret' is not initialized
- Line 174: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_BITOPS_H_', which is a reserved identifier
- Line 30: function-like macro 'RTE_BIT64' used; consider a 'constexpr' template function
- Line 28: function-like macro 'likely' used; consider a 'constexpr' template function
- Line 51: function-like macro 'rte_bswap16' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_COMMON_H_', which is a reserved identifier
- Line 50: macro 'RTE_CC_IS_GNU' used to declare a constant; consider using a 'constexpr' constant
- Line 88: declaration uses identifier '__rte_may_alias', which is a reserved identifier
- Line 91: declaration uses identifier '__rte_deprecated', which is a reserved identifier
- Line 92: declaration uses identifier '__rte_deprecated_msg', which is a reserved identifier
- Line 92: function-like macro '__rte_deprecated_msg' used; consider a 'constexpr' template function
- Line 108: declaration uses identifier '__rte_weak', which is a reserved identifier
- Line 113: declaration uses identifier '__rte_used', which is a reserved identifier
- Line 120: declaration uses identifier '__rte_unused', which is a reserved identifier
- Line 126: declaration uses identifier '__rte_restrict', which is a reserved identifier
- Line 135: function-like macro 'RTE_SET_USED' used; consider a 'constexpr' template function
- Line 148: function-like macro '__rte_format_printf' used; consider a 'constexpr' template function
- Line 158: declaration uses identifier '__rte_alloc_size', which is a reserved identifier
- Line 158: variadic macro '__rte_alloc_size' used; consider using a 'constexpr' variadic template function
- Line 164: macro 'RTE_PRIORITY_LOG' used to declare a constant; consider using a 'constexpr' constant
- Line 250: declaration uses identifier '__rte_warn_unused_result', which is a reserved identifier
- Line 260: declaration uses identifier '__rte_noinline', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_hot', which is a reserved identifier
- Line 270: declaration uses identifier '__rte_cold', which is a reserved identifier
- Line 282: declaration uses identifier '__rte_no_asan', which is a reserved identifier
- Line 290: function-like macro 'RTE_PTR_ADD' used; consider a 'constexpr' template function
- Line 443: declaration uses identifier '__rte_cache_min_aligned', which is a reserved identifier
- Line 464: do not declare C-style arrays, use std::array<> instead
- Line 824: macro argument should be enclosed in parentheses
- Line 837: function-like macro 'RTE_SIZEOF_FIELD' used; consider a 'constexpr' template function
- Line 841: function-like macro 'RTE_STR' used; consider a 'constexpr' template function
- Line 15: declaration uses identifier '__rte_experimental', which is a reserved identifier
- Line 33: declaration uses identifier '__rte_internal', which is a reserved identifier
- Line 13: declaration uses identifier '_RTE_CONFIG_H_', which is a reserved identifier
- Line 19: macro 'RTE_EXEC_ENV_LINUXAPP' used to declare a constant; consider using a 'constexpr' constant
- Line 7: declaration uses identifier '_RTE_CYCLES_X86_64_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_DEBUG_H_', which is a reserved identifier
- Line 43: variadic macro 'rte_panic' used; consider using a 'constexpr' variadic template function
- Line 46: function-like macro 'RTE_FUNC_PTR_OR_ERR_RET' used; consider a 'constexpr' template function
- Line 384: macro argument should be enclosed in parentheses
- Line 385: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_DEV_INFO_H_', which is a reserved identifier
- Line 44: macro 'RTE_ETH_MODULE_SFF_8079' used to declare a constant; consider using a 'constexpr' constant
- Line 35: macro 'RTE_DEVARGS_KEY_BUS' used to declare a constant; consider using a 'constexpr' constant
- Line 265: macro argument should be enclosed in parentheses
- Line 266: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_EAL_H_', which is a reserved identifier
- Line 28: macro 'RTE_MAGIC' used to declare a constant; consider using a 'constexpr' constant
- Line 28: macro 'RTE_ECPRI_REV_UP_TO_20' used to declare a constant; consider using a 'constexpr' constant
- Line 21: macro 'RTE_INTR_EVENT_ADD' used to declare a constant; consider using a 'constexpr' constant
- Line 12: declaration uses identifier '_RTE_ERRNO_H_', which is a reserved identifier
- Line 49: declaration uses identifier '__ELASTERROR', which is a reserved identifier
- Line 49: macro '__ELASTERROR' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_ESP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETH_CTRL_H_', which is a reserved identifier
- Line 30: macro 'RTE_NTUPLE_FLAGS_DST_IP' used to declare a constant; consider using a 'constexpr' constant
- Line 246: function-like macro 'RTE_ETH_FOREACH_MATCHING_DEV' used; consider a 'constexpr' template function
- Line 249: macro argument should be enclosed in parentheses
- Line 250: macro argument should be enclosed in parentheses
- Line 290: macro 'RTE_ETH_LINK_SPEED_AUTONEG' used to declare a constant; consider using a 'constexpr' constant
- Line 795: macro 'RTE_ETH_RSS_RETA_SIZE_64' used to declare a constant; consider using a 'constexpr' constant
- Line 2070: macro argument should be enclosed in parentheses
- Line 2071: macro argument should be enclosed in parentheses
- Line 2071: macro argument should be enclosed in parentheses
- Line 2086: function-like macro 'RTE_ETH_FOREACH_DEV' used; consider a 'constexpr' template function
- Line 2114: macro argument should be enclosed in parentheses
- Line 2115: macro argument should be enclosed in parentheses
- Line 2115: macro argument should be enclosed in parentheses
- Line 2141: function-like macro 'RTE_ETH_FOREACH_DEV_SIBLING' used; consider a 'constexpr' template function
- Line 2143: macro argument should be enclosed in parentheses
- Line 2144: macro argument should be enclosed in parentheses
- Line 2144: macro argument should be enclosed in parentheses
- Line 3603: flexible array members are a C99 feature
- Line 5864: variable 'p' is not initialized
- Line 5865: variable 'qd' is not initialized
- Line 5878: do not use array subscript when the index is not an integer constant expression
- Line 5903: redundant cast to the same type
- Line 5911: do not use C-style cast to convert between unrelated types
- Line 5936: variable 'qd' is not initialized
- Line 5949: do not use array subscript when the index is not an integer constant expression
- Line 5966: macro 'RTE_ETH_RX_DESC_AVAIL' used to declare a constant; consider using a 'constexpr' constant
- Line 6009: variable 'qd' is not initialized
- Line 6022: do not use array subscript when the index is not an integer constant expression
- Line 6038: macro 'RTE_ETH_TX_DESC_FULL' used to declare a constant; consider using a 'constexpr' constant
- Line 6080: variable 'qd' is not initialized
- Line 6093: do not use array subscript when the index is not an integer constant expression
- Line 6203: variable 'p' is not initialized
- Line 6204: variable 'qd' is not initialized
- Line 6217: do not use array subscript when the index is not an integer constant expression
- Line 6240: redundant cast to the same type
- Line 6250: do not use C-style cast to convert between unrelated types
- Line 6315: variable 'qd' is not initialized
- Line 6329: do not use array subscript when the index is not an integer constant expression
- Line 6: declaration uses identifier '_RTE_ETHDEV_CORE_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETHDEV_TRACE_FP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETHER_H_', which is a reserved identifier
- Line 25: macro 'RTE_ETHER_ADDR_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 84: do not use C-style cast to convert between unrelated types
- Line 85: do not use C-style cast to convert between unrelated types
- Line 102: do not use C-style cast to convert between unrelated types
- Line 149: do not use C-style cast to convert between unrelated types
- Line 333: do not use C-style cast to convert between unrelated types
- Line 358: variable 'nh' is not initialized
- Line 359: variable 'vh' is not initialized
- Line 369: do not use pointer arithmetic
- Line 378: do not use C-style cast to convert between unrelated types
- Line 9: declaration uses identifier '_RTE_GTP_H_', which is a reserved identifier
- Line 147: macro 'RTE_GTP_TYPE_IPV4' used to declare a constant; consider using a 'constexpr' constant
- Line 9: declaration uses identifier '_RTE_ICMP_H_', which is a reserved identifier
- Line 37: macro 'RTE_IP_ICMP_ECHO_REPLY' used to declare a constant; consider using a 'constexpr' constant
- Line 38: macro 'RTE_MAX_RXTX_INTR_VEC_ID' used to declare a constant; consider using a 'constexpr' constant
- Line 68: function-like macro 'RTE_IPV4' used; consider a 'constexpr' template function
- Line 164: variable 'end' is not initialized
- Line 166: do not use C-style cast to convert between unrelated types
- Line 195: declaration uses identifier '__rte_raw_cksum_reduce', which is a reserved identifier
- Line 215: variable 'sum' is not initialized
- Line 239: variable 'seg' is not initialized
- Line 240: variable 'buf' is not initialized
- Line 241: multiple declarations in a single statement reduces readability
- Line 241: variable 'tmp' is not initialized
- Line 242: multiple declarations in a single statement reduces readability
- Line 242: variable 'done' is not initialized
- Line 246: do not use pointer arithmetic
- Line 263: use nullptr
- Line 266: do not use pointer arithmetic
- Line 342: variable 'l3_len' is not initialized
- Line 362: declaration uses identifier '__rte_ipv4_udptcp_cksum', which is a reserved identifier
- Line 364: variable 'cksum' is not initialized
- Line 365: multiple declarations in a single statement reduces readability
- Line 365: variable 'l4_len' is not initialized
- Line 366: variable 'ip_hdr_len' is not initialized
- Line 417: declaration uses identifier '__rte_ipv4_udptcp_cksum_mbuf', which is a reserved identifier
- Line 421: variable 'raw_cksum' is not initialized
- Line 422: variable 'cksum' is not initialized
- Line 543: macro 'RTE_IPV6_HDR_FL_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 596: declaration uses identifier '__rte_ipv6_udptcp_cksum', which is a reserved identifier
- Line 598: variable 'cksum' is not initialized
- Line 599: variable 'l4_len' is not initialized
- Line 646: declaration uses identifier '__rte_ipv6_udptcp_cksum_mbuf', which is a reserved identifier
- Line 650: variable 'raw_cksum' is not initialized
- Line 651: variable 'cksum' is not initialized
- Line 765: macro 'RTE_IPV6_EHDR_MF_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 813: do not use pointer arithmetic
- Line 84: macro 'RTE_L2TPV2_MSG_TYPE_CONTROL' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_LCORE_H_', which is a reserved identifier
- Line 218: function-like macro 'RTE_LCORE_FOREACH' used; consider a 'constexpr' template function
- Line 220: macro argument should be enclosed in parentheses
- Line 221: macro argument should be enclosed in parentheses
- Line 226: function-like macro 'RTE_LCORE_FOREACH_WORKER' used; consider a 'constexpr' template function
- Line 228: macro argument should be enclosed in parentheses
- Line 229: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_LOG_H_', which is a reserved identifier
- Line 29: macro 'RTE_LOGTYPE_EAL' used to declare a constant; consider using a 'constexpr' constant
- Line 370: macro argument should be enclosed in parentheses
- Line 371: macro argument should be enclosed in parentheses
- Line 387: function-like macro 'RTE_LOG_REGISTER' used; consider a 'constexpr' template function
- Line 218: do not use C-style cast to convert between unrelated types
- Line 318: do not use C-style cast to convert between unrelated types
- Line 348: declaration uses identifier '__rte_mbuf_sanity_check', which is a reserved identifier
- Line 348: function-like macro '__rte_mbuf_sanity_check' used; consider a 'constexpr' template function
- Line 382: declaration uses identifier '__rte_mbuf_refcnt_update', which is a reserved identifier
- Line 510: function-like macro 'RTE_MBUF_PREFETCH_TO_FREE' used; consider a 'constexpr' template function
- Line 575: function-like macro 'MBUF_RAW_ALLOC_CHECK' used; consider a 'constexpr' template function
- Line 600: do not use C-style cast to convert between unrelated types
- Line 825: variable 'mbp_priv' is not initialized
- Line 827: do not use C-style cast to convert between unrelated types
- Line 848: do not use C-style cast to convert between unrelated types
- Line 907: variable 'm' is not initialized
- Line 908: use nullptr
- Line 931: variable 'rc' is not initialized
- Line 933: do not use C-style cast to convert between unrelated types
- Line 1006: do not use C-style cast to convert between unrelated types
- Line 1009: do not use C-style cast to convert between unrelated types
- Line 1014: do not use C-style cast to convert between unrelated types
- Line 1184: use nullptr
- Line 1200: declaration uses identifier '__rte_pktmbuf_free_extbuf', which is a reserved identifier
- Line 1216: declaration uses identifier '__rte_pktmbuf_free_direct', which is a reserved identifier
- Line 1218: variable 'md' is not initialized
- Line 1225: use nullptr
- Line 1253: multiple declarations in a single statement reduces readability
- Line 1253: variable 'buf_len' is not initialized
- Line 1254: variable 'priv_size' is not initialized
- Line 1281: do not use C-style cast to convert between unrelated types
- Line 1304: variable 'shinfo' is not initialized
- Line 1353: use nullptr
- Line 1356: use nullptr
- Line 1357: use nullptr
- Line 1370: use nullptr
- Line 1373: use nullptr
- Line 1374: use nullptr
- Line 1381: use nullptr
- Line 1397: use nullptr
- Line 1412: variable 'm_next' is not initialized
- Line 1414: use nullptr
- Line 1417: use nullptr
- Line 1500: use nullptr
- Line 1543: use nullptr
- Line 1556: function-like macro 'rte_pktmbuf_pkt_len' used; consider a 'constexpr' template function
- Line 1598: do not use C-style cast to convert between unrelated types
- Line 1619: variable 'm_last' is not initialized
- Line 1625: use nullptr
- Line 1627: do not use C-style cast to convert between unrelated types
- Line 1660: do not use C-style cast to convert between unrelated types
- Line 1710: declaration uses identifier '__rte_pktmbuf_read', which is a reserved identifier
- Line 1737: do not use pointer arithmetic
- Line 1863: declaration uses identifier '__rte_pktmbuf_linearize', which is a reserved identifier
- Line 1996: compound literals are a C99-specific feature
- Line 81: macro 'RTE_MBUF_F_RX_IP_CKSUM_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 80: macro 'RTE_MBUF_DYN_NAMESIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 75: macro 'RTE_PTYPE_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 27: unknown warning group '-Wstringop-overflow', ignored
- Line 428: variable 'bits' is not initialized
- Line 441: do not use C-style cast to convert between unrelated types
- Line 38: macro replacement list should be enclosed in parentheses
- Line 609: macro 'RTE_MEM_EVENT_CALLBACK_NAME_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 57: macro 'RTE_MEMPOOL_HEADER_COOKIE1' used to declare a constant; consider using a 'constexpr' constant
- Line 773: variable 'ret' is not initialized
- Line 802: variable 'ops' is not initialized
- Line 827: variable 'ops' is not initialized
- Line 828: variable 'ret' is not initialized
- Line 970: macro argument should be enclosed in parentheses
- Line 1318: use nullptr
- Line 1321: use nullptr
- Line 1324: do not use pointer arithmetic
- Line 1342: use nullptr
- Line 1365: variable 'cache_objs' is not initialized
- Line 1368: use nullptr
- Line 1387: do not use array subscript when the index is not an integer constant expression
- Line 1494: variable 'ret' is not initialized
- Line 1496: multiple declarations in a single statement reduces readability
- Line 1496: variable 'len' is not initialized
- Line 1497: variable 'cache_objs' is not initialized
- Line 1500: use nullptr
- Line 1505: do not use array subscript when the index is not an integer constant expression
- Line 1567: use nullptr
- Line 1603: variable 'ret' is not initialized
- Line 1636: variable 'cache' is not initialized
- Line 1693: variable 'ret' is not initialized
- Line 1790: variable 'hdr' is not initialized
- Line 1791: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_MEMZONE_H_', which is a reserved identifier
- Line 33: macro 'RTE_MEMZONE_2MB' used to declare a constant; consider using a 'constexpr' constant
- Line 418: multiple declarations in a single statement reduces readability
- Line 418: variable 'n_periods' is not initialized
- Line 418: variable 'tc' is not initialized
- Line 418: variable 'te' is not initialized
- Line 460: multiple declarations in a single statement reduces readability
- Line 460: variable 'n_periods' is not initialized
- Line 460: variable 'tc' is not initialized
- Line 460: variable 'te' is not initialized
- Line 501: multiple declarations in a single statement reduces readability
- Line 501: variable 'time_diff_tp' is not initialized
- Line 501: variable 'n_periods_tc' is not initialized
- Line 501: variable 'n_periods_tp' is not initialized
- Line 501: variable 'tc' is not initialized
- Line 501: variable 'tp' is not initialized
- Line 544: multiple declarations in a single statement reduces readability
- Line 544: variable 'time_diff_tp' is not initialized
- Line 544: variable 'n_periods_tc' is not initialized
- Line 544: variable 'n_periods_tp' is not initialized
- Line 544: variable 'tc' is not initialized
- Line 544: variable 'tp' is not initialized
- Line 587: multiple declarations in a single statement reduces readability
- Line 587: variable 'time_diff_te' is not initialized
- Line 587: variable 'n_periods_tc' is not initialized
- Line 587: variable 'n_periods_te' is not initialized
- Line 587: variable 'tc' is not initialized
- Line 587: variable 'te' is not initialized
- Line 631: multiple declarations in a single statement reduces readability
- Line 631: variable 'time_diff_te' is not initialized
- Line 631: variable 'n_periods_tc' is not initialized
- Line 631: variable 'n_periods_te' is not initialized
- Line 631: variable 'tc' is not initialized
- Line 631: variable 'te' is not initialized
- Line 6: declaration uses identifier '_RTE_OS_H_', which is a reserved identifier
- Line 21: function-like macro 'RTE_TAILQ_HEAD' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_PCI_DEV_DEFS_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PER_LCORE_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_POWER_INTRINSIC_X86_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PPP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PREFETCH_X86_64_H_', which is a reserved identifier
- Line 18: do not use C-style cast to convert between unrelated types
- Line 11: declaration uses identifier '_RTE_RING_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_CORE_H_', which is a reserved identifier
- Line 40: macro 'RTE_TAILQ_RING_NAME' used to declare a constant; consider using a 'constexpr' constant
- Line 96: declaration uses identifier '__rte_ring_hts_pos', which is a reserved identifier
- Line 153: macro 'RING_F_SP_ENQ' used to declare a constant; consider using a 'constexpr' constant
- Line 214: use nullptr
- Line 240: use nullptr
- Line 264: use nullptr
- Line 290: use nullptr
- Line 396: use nullptr
- Line 424: use nullptr
- Line 448: use nullptr
- Line 475: use nullptr
- Line 582: use nullptr
- Line 692: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_ELEM_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_enqueue_elems_32', which is a reserved identifier
- Line 17: variable 'i' is not initialized
- Line 18: use auto when initializing with a cast to avoid duplicating the type name
- Line 18: do not use C-style cast to convert between unrelated types
- Line 19: do not use C-style cast to convert between unrelated types
- Line 60: variable 'i' is not initialized
- Line 63: use auto when initializing with a cast to avoid duplicating the type name
- Line 63: do not use C-style cast to convert between unrelated types
- Line 64: do not use C-style cast to convert between unrelated types
- Line 93: variable 'i' is not initialized
- Line 96: use auto when initializing with a cast to avoid duplicating the type name
- Line 96: do not use C-style cast to convert between unrelated types
- Line 97: do not use C-style cast to convert between unrelated types
- Line 134: multiple declarations in a single statement reduces readability
- Line 134: variable 'scale' is not initialized
- Line 134: variable 'nr_idx' is not initialized
- Line 134: variable 'nr_num' is not initialized
- Line 134: variable 'nr_size' is not initialized
- Line 148: declaration uses identifier '__rte_ring_dequeue_elems_32', which is a reserved identifier
- Line 151: variable 'i' is not initialized
- Line 152: use auto when initializing with a cast to avoid duplicating the type name
- Line 152: do not use C-style cast to convert between unrelated types
- Line 153: do not use C-style cast to convert between unrelated types
- Line 194: variable 'i' is not initialized
- Line 197: use auto when initializing with a cast to avoid duplicating the type name
- Line 197: do not use C-style cast to convert between unrelated types
- Line 198: do not use C-style cast to convert between unrelated types
- Line 227: variable 'i' is not initialized
- Line 230: use auto when initializing with a cast to avoid duplicating the type name
- Line 230: do not use C-style cast to convert between unrelated types
- Line 231: do not use C-style cast to convert between unrelated types
- Line 264: multiple declarations in a single statement reduces readability
- Line 264: variable 'scale' is not initialized
- Line 264: variable 'nr_idx' is not initialized
- Line 264: variable 'nr_num' is not initialized
- Line 264: variable 'nr_size' is not initialized
- Line 315: declaration uses identifier '__rte_ring_do_enqueue_elem', which is a reserved identifier
- Line 320: multiple declarations in a single statement reduces readability
- Line 320: variable 'prod_next' is not initialized
- Line 321: variable 'free_entries' is not initialized
- Line 332: use nullptr
- Line 362: declaration uses identifier '__rte_ring_do_dequeue_elem', which is a reserved identifier
- Line 367: multiple declarations in a single statement reduces readability
- Line 367: variable 'cons_next' is not initialized
- Line 368: variable 'entries' is not initialized
- Line 380: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_GENERIC_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_update_tail', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_move_prod_head', which is a reserved identifier
- Line 62: variable 'success' is not initialized
- Line 125: declaration uses identifier '__rte_ring_move_cons_head', which is a reserved identifier
- Line 131: variable 'success' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_HTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_HTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_hts_update_tail', which is a reserved identifier
- Line 28: variable 'tail' is not initialized
- Line 42: declaration uses identifier '__rte_ring_hts_head_wait', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_hts_move_prod_head', which is a reserved identifier
- Line 59: variable 'n' is not initialized
- Line 60: multiple declarations in a single statement reduces readability
- Line 113: declaration uses identifier '__rte_ring_hts_move_cons_head', which is a reserved identifier
- Line 117: variable 'n' is not initialized
- Line 118: multiple declarations in a single statement reduces readability
- Line 187: declaration uses identifier '__rte_ring_do_hts_enqueue_elem', which is a reserved identifier
- Line 191: multiple declarations in a single statement reduces readability
- Line 191: variable 'head' is not initialized
- Line 200: use nullptr
- Line 228: declaration uses identifier '__rte_ring_do_hts_dequeue_elem', which is a reserved identifier
- Line 232: multiple declarations in a single statement reduces readability
- Line 232: variable 'head' is not initialized
- Line 241: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_H_', which is a reserved identifier
- Line 170: variable 'tail' is not initialized
- Line 333: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ELEM_PVT_H_', which is a reserved identifier
- Line 31: declaration uses identifier '__rte_ring_st_get_tail', which is a reserved identifier
- Line 34: multiple declarations in a single statement reduces readability
- Line 34: variable 'n' is not initialized
- Line 34: variable 't' is not initialized
- Line 53: declaration uses identifier '__rte_ring_st_set_head_tail', which is a reserved identifier
- Line 56: variable 'pos' is not initialized
- Line 75: declaration uses identifier '__rte_ring_hts_get_tail', which is a reserved identifier
- Line 78: variable 'n' is not initialized
- Line 97: declaration uses identifier '__rte_ring_hts_set_head_tail', which is a reserved identifier
- Line 114: declaration uses identifier '__rte_ring_do_enqueue_start', which is a reserved identifier
- Line 117: multiple declarations in a single statement reduces readability
- Line 117: variable 'head' is not initialized
- Line 117: variable 'next' is not initialized
- Line 137: use nullptr
- Line 147: declaration uses identifier '__rte_ring_do_dequeue_start', which is a reserved identifier
- Line 151: multiple declarations in a single statement reduces readability
- Line 151: variable 'head' is not initialized
- Line 151: variable 'next' is not initialized
- Line 174: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ZC_H_', which is a reserved identifier
- Line 98: declaration uses identifier '__rte_ring_get_elem_addr', which is a reserved identifier
- Line 101: multiple declarations in a single statement reduces readability
- Line 101: variable 'scale' is not initialized
- Line 101: variable 'nr_idx' is not initialized
- Line 102: use auto when initializing with a cast to avoid duplicating the type name
- Line 102: do not use C-style cast to convert between unrelated types
- Line 124: declaration uses identifier '__rte_ring_do_enqueue_zc_elem_start', which is a reserved identifier
- Line 128: multiple declarations in a single statement reduces readability
- Line 128: variable 'head' is not initialized
- Line 128: variable 'next' is not initialized
- Line 151: use nullptr
- Line 291: variable 'tail' is not initialized
- Line 331: declaration uses identifier '__rte_ring_do_dequeue_zc_elem_start', which is a reserved identifier
- Line 335: multiple declarations in a single statement reduces readability
- Line 335: variable 'head' is not initialized
- Line 335: variable 'next' is not initialized
- Line 359: use nullptr
- Line 497: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_RTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_RTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_rts_update_tail', which is a reserved identifier
- Line 27: multiple declarations in a single statement reduces readability
- Line 53: declaration uses identifier '__rte_ring_rts_head_wait', which is a reserved identifier
- Line 56: variable 'max' is not initialized
- Line 70: declaration uses identifier '__rte_ring_rts_move_prod_head', which is a reserved identifier
- Line 74: variable 'n' is not initialized
- Line 75: multiple declarations in a single statement reduces readability
- Line 128: declaration uses identifier '__rte_ring_rts_move_cons_head', which is a reserved identifier
- Line 132: variable 'n' is not initialized
- Line 133: multiple declarations in a single statement reduces readability
- Line 202: declaration uses identifier '__rte_ring_do_rts_enqueue_elem', which is a reserved identifier
- Line 206: multiple declarations in a single statement reduces readability
- Line 206: variable 'head' is not initialized
- Line 215: use nullptr
- Line 243: declaration uses identifier '__rte_ring_do_rts_dequeue_elem', which is a reserved identifier
- Line 247: multiple declarations in a single statement reduces readability
- Line 247: variable 'head' is not initialized
- Line 256: use nullptr
- Line 6: declaration uses identifier '_RTE_RTM_H_', which is a reserved identifier
- Line 6: macro '_RTE_RTM_H_' used to declare a constant; consider using a 'constexpr' constant
- Line 26: function-like macro 'RTE_XABORT_CODE' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_RWLOCK_X86_64_H_', which is a reserved identifier
- Line 15: declaration uses identifier '_RTE_SCTP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_SPINLOCK_X86_64_H_', which is a reserved identifier
- Line 80: multiple declarations in a single statement reduces readability
- Line 80: variable 'retries' is not initialized
- Line 109: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type 'int' is implementation-defined
- Line 74: do not use pointer arithmetic
- Line 43: macro 'RTE_TCP_CWR_FLAG' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_TRACE_POINT_H_', which is a reserved identifier
- Line 78: variadic macro 'RTE_TRACE_POINT' used; consider using a 'constexpr' variadic template function
- Line 151: macro '__RTE_TRACE_EMIT_STRING_LEN_MAX' used to declare a constant; consider using a 'constexpr' constant
- Line 153: declaration uses identifier '__RTE_TRACE_EVENT_HEADER_SZ', which is a reserved identifier
- Line 211: declaration uses identifier '__rte_trace_point_fp_is_enabled', which is a reserved identifier
- Line 227: declaration uses identifier '__rte_trace_mem_per_thread_alloc', which is a reserved identifier
- Line 245: declaration uses identifier '__rte_trace_point_emit_field', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_trace_point_register', which is a reserved identifier
- Line 379: declaration uses identifier '__rte_trace_point_emit_header_generic', which is a reserved identifier
- Line 379: function-like macro '__rte_trace_point_emit_header_generic' used; consider a 'constexpr' template function
- Line 380: function-like macro '__rte_trace_point_emit_header_fp' used; consider a 'constexpr' template function
- Line 11: declaration uses identifier '_RTE_UUID_H_', which is a reserved identifier
- Line 24: do not declare C-style arrays, use std::array<> instead
- Line 6: declaration uses identifier '_RTE_VXLAN_H_', which is a reserved identifier
- Line 25: macro 'RTE_VXLAN_DEFAULT_PORT' used to declare a constant; consider using a 'constexpr' constant
- Line 18: nested namespaces can be concatenated
- Line 23: macro 'NUM_MBUFS' used to declare a constant; consider using a 'constexpr' constant
- Line 24: macro 'MBUF_CACHE_SIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 47: do not declare C-style arrays, use std::array<> instead
- Line 15: nested namespaces can be concatenated
- Line 19: nested namespaces can be concatenated
- Line 23: macro 'RX_RING_SIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 24: macro 'TX_RING_SIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 26: macro 'NUM_MBUFS' used to declare a constant; consider using a 'constexpr' constant
- Line 27: macro 'MBUF_CACHE_SIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 44: missing field 'mq_mode' initializer
- Line 48: missing field 'mq_mode' initializer
- Line 49: missing field 'link_speeds' initializer
- Line 56: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined
- Line 117: C-style casts are discouraged; use static_cast
- Line 118: C-style casts are discouraged; use static_cast
- Line 119: C-style casts are discouraged; use static_cast
- Line 120: C-style casts are discouraged; use static_cast
- Line 121: C-style casts are discouraged; use static_cast
- Line 122: C-style casts are discouraged; use static_cast
- Line 154: unused variable 'dev_info'
- Line 17: do not manage memory manually; use RAII
- Line 20: do not manage memory manually; use RAII
- Line 23: do not manage memory manually; use RAII
- Line 34: use nullptr
- Line 34: use nullptr
- Line 40: do not use C-style cast to convert between unrelated types
- Line 40: do not manage memory manually; consider a container or a smart pointer
- Line 51: do not use C-style cast to convert between unrelated types
- Line 51: Result of 'malloc' is converted to a pointer of type 'uint64_t', which is incompatible with sizeof operand type 'uint64_t *'
- Line 15: nested namespaces can be concatenated
- Line 37: use auto when initializing with a cast to avoid duplicating the type name
- Line 37: do not use C-style cast to convert between unrelated types
- Line 38: use auto when initializing with a cast to avoid duplicating the type name
- Line 38: do not use C-style cast to convert between unrelated types
- Line 39: variable 'v' is not initialized
- Line 48: use auto when initializing with a cast to avoid duplicating the type name
- Line 48: do not use C-style cast to convert between unrelated types
- Line 49: use auto when initializing with a cast to avoid duplicating the type name
- Line 49: do not use C-style cast to convert between unrelated types
- Line 50: do not use pointer arithmetic
- Line 50: do not use pointer arithmetic
- Line 51: do not use pointer arithmetic
- Line 51: do not use pointer arithmetic
- Line 58: use auto when initializing with a cast to avoid duplicating the type name
- Line 58: do not use C-style cast to convert between unrelated types
- Line 59: use auto when initializing with a cast to avoid duplicating the type name
- Line 59: do not use C-style cast to convert between unrelated types
- Line 60: variable 'v' is not initialized
- Line 69: use auto when initializing with a cast to avoid duplicating the type name
- Line 69: do not use C-style cast to convert between unrelated types
- Line 70: use auto when initializing with a cast to avoid duplicating the type name
- Line 70: do not use C-style cast to convert between unrelated types
- Line 2: declaration uses identifier '_IPV4_ADDR_H_', which is a reserved identifier
- Line 25: do not use array subscript when the index is not an integer constant expression
- Line 29: do not declare C-style arrays, use std::array<> instead
- Line 15: nested namespaces can be concatenated
- Line 20: do not declare C-style arrays, use std::array<> instead
- Line 19: nested namespaces can be concatenated
- Line 35: nested namespaces can be concatenated
- Line 63: nested namespaces can be concatenated
- Line 83: variable 'start' is not initialized
- Line 99: throw expression should throw anonymous temporary values instead
- Line 105: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'key_type' (aka 'int') is implementation-defined
- Line 121: use emplace_back instead of push_back
- Line 122: use emplace_back instead of push_back
- Line 137: throw expression should throw anonymous temporary values instead
- Line 158: use emplace_back instead of push_back
- Line 172: use emplace_back instead of push_back
- Line 188: comparison of integers of different signs: 'unsigned int' and 'int'
- Line 32: function 'createSourceModel' defined in a header file; function definitions in header files can lead to ODR violations
- Line 35: the variable 'datatype' is copy-constructed from a const reference but is only used as const reference; consider making it a const reference
- Line 26: nested namespaces can be concatenated
- Line 64: 'handle_daq_frame' overrides a member function but is not marked 'override'
- Line 77: do not use pointer arithmetic
plugins/DPDKReaderModule.hpp
Errors
- Line 8: #ifndef header guard has wrong style, please use: DPDKLIBS_PLUGINS_DPDKREADERMODULE_HPP_
- Line 91: #endif line should be "#endif // DPDKLIBS_PLUGINS_DPDKREADERMODULE_HPP_"
- Line 72: An unsigned integer appears to be used here.
- Line 73: An unsigned integer appears to be used here.
- Line 74: An unsigned integer appears to be used here.
plugins/NICSender.cpp
Errors
- Line 108: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 172: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 29: Found other header after system header. Should be: NICSender.hh, other non-system headers, system headers.
- Line 30: Found other header after system header. Should be: NICSender.hh, other non-system headers, system headers.
- Line 32: Found other header after system header. Should be: NICSender.hh, other non-system headers, system headers.
- Line 49: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 50: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 145: An unsigned integer appears to be used here.
- Line 147: An unsigned integer appears to be used here.
- Line 157: Missing date in TODO comment; it should appear on same line as the TODO, preferably in a form like "Apr-14-2020"
- Line 157: Missing author name in TODO comment; it should appear on the same line as the TODO, as Firstname Lastname
- Line 157: Missing email address in TODO comment; it should appear on the same line as the TODO
- Line 164: An unsigned integer appears to be used here.
- Line 197: Using C-style cast. Use one of the C++ cast operators instead
- Line 206: An unsigned integer appears to be used here.
- Line 220: Missing date in TODO comment; it should appear on same line as the TODO, preferably in a form like "Apr-14-2020"
- Line 220: Missing author name in TODO comment; it should appear on the same line as the TODO, as Firstname Lastname
- Line 220: Missing email address in TODO comment; it should appear on the same line as the TODO
- Line 228: An unsigned integer appears to be used here.
- Line 255: An unsigned integer appears to be used here.
- Line 276: An unsigned integer appears to be used here.
- Line 285: An unsigned integer appears to be used here.
- Line 296: Small and focused functions are preferred: lcore_main() has 90 non-comment lines (error triggered by exceeding 80 lines) (disable this by putting "// NOLINT" after the function's closing brace.)
- Line 334: An unsigned integer appears to be used here.
- Line 337: An unsigned integer appears to be used here.
- Line 358: Use of reinterpret_cast can be dangerous. If there's no way to avoid its use add " // NOLINT" to the end of this line so this script will ignore it next time
- Line 314: Add #include
Warnings
- Line 119: function-like macro 'rte_compiler_barrier' used; consider a 'constexpr' template function
- Line 30: macro 'RTE_BIG_ENDIAN' used to declare a constant; consider using a 'constexpr' constant
- Line 93: consider replacing 'unsigned long' with 'uint64'
- Line 19: macro 'MS_PER_S' used to declare a constant; consider using a 'constexpr' constant
- Line 132: function-like macro 'RTE_WAIT_UNTIL_MASKED' used; consider a 'constexpr' template function
- Line 135: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_POWER_INTRINSIC_H_', which is a reserved identifier
- Line 22: macro 'RTE_POWER_MONITOR_OPAQUE_SZ' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_RWLOCK_H_', which is a reserved identifier
- Line 52: macro 'RTE_RWLOCK_WAIT' used to declare a constant; consider using a 'constexpr' constant
- Line 90: converting integer literal to bool, use bool literal instead
- Line 123: variable 'x' is not initialized
- Line 170: variable 'x' is not initialized
- Line 175: converting integer literal to bool, use bool literal instead
- Line 190: variable 'x' is not initialized
- Line 192: converting integer literal to bool, use bool literal instead
- Line 198: converting integer literal to bool, use bool literal instead
- Line 6: declaration uses identifier '_RTE_SPINLOCK_H_', which is a reserved identifier
- Line 223: increment of object of volatile-qualified type 'volatile int' is deprecated
- Line 6: declaration uses identifier '_RTE_ATOMIC_X86_H_', which is a reserved identifier
- Line 21: macro 'MPLOCKED' used to declare a constant; consider using a 'constexpr' constant
- Line 133: do not use C-style cast to convert between unrelated types
- Line 174: variable 'ret' is not initialized
- Line 190: variable 'res' is not initialized
- Line 219: do not use C-style cast to convert between unrelated types
- Line 260: variable 'ret' is not initialized
- Line 17: declaration uses identifier '_RTE_ATOMIC_X86_64_H_', which is a reserved identifier
- Line 29: variable 'res' is not initialized
- Line 145: variable 'ret' is not initialized
- Line 160: variable 'ret' is not initialized
- Line 174: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_BITOPS_H_', which is a reserved identifier
- Line 30: function-like macro 'RTE_BIT64' used; consider a 'constexpr' template function
- Line 28: function-like macro 'likely' used; consider a 'constexpr' template function
- Line 51: function-like macro 'rte_bswap16' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_COMMON_H_', which is a reserved identifier
- Line 50: macro 'RTE_CC_IS_GNU' used to declare a constant; consider using a 'constexpr' constant
- Line 88: declaration uses identifier '__rte_may_alias', which is a reserved identifier
- Line 91: declaration uses identifier '__rte_deprecated', which is a reserved identifier
- Line 92: declaration uses identifier '__rte_deprecated_msg', which is a reserved identifier
- Line 92: function-like macro '__rte_deprecated_msg' used; consider a 'constexpr' template function
- Line 108: declaration uses identifier '__rte_weak', which is a reserved identifier
- Line 113: declaration uses identifier '__rte_used', which is a reserved identifier
- Line 120: declaration uses identifier '__rte_unused', which is a reserved identifier
- Line 126: declaration uses identifier '__rte_restrict', which is a reserved identifier
- Line 135: function-like macro 'RTE_SET_USED' used; consider a 'constexpr' template function
- Line 148: function-like macro '__rte_format_printf' used; consider a 'constexpr' template function
- Line 158: declaration uses identifier '__rte_alloc_size', which is a reserved identifier
- Line 158: variadic macro '__rte_alloc_size' used; consider using a 'constexpr' variadic template function
- Line 164: macro 'RTE_PRIORITY_LOG' used to declare a constant; consider using a 'constexpr' constant
- Line 250: declaration uses identifier '__rte_warn_unused_result', which is a reserved identifier
- Line 260: declaration uses identifier '__rte_noinline', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_hot', which is a reserved identifier
- Line 270: declaration uses identifier '__rte_cold', which is a reserved identifier
- Line 282: declaration uses identifier '__rte_no_asan', which is a reserved identifier
- Line 290: function-like macro 'RTE_PTR_ADD' used; consider a 'constexpr' template function
- Line 443: declaration uses identifier '__rte_cache_min_aligned', which is a reserved identifier
- Line 464: do not declare C-style arrays, use std::array<> instead
- Line 824: macro argument should be enclosed in parentheses
- Line 837: function-like macro 'RTE_SIZEOF_FIELD' used; consider a 'constexpr' template function
- Line 841: function-like macro 'RTE_STR' used; consider a 'constexpr' template function
- Line 15: declaration uses identifier '__rte_experimental', which is a reserved identifier
- Line 33: declaration uses identifier '__rte_internal', which is a reserved identifier
- Line 13: declaration uses identifier '_RTE_CONFIG_H_', which is a reserved identifier
- Line 19: macro 'RTE_EXEC_ENV_LINUXAPP' used to declare a constant; consider using a 'constexpr' constant
- Line 7: declaration uses identifier '_RTE_CYCLES_X86_64_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_DEBUG_H_', which is a reserved identifier
- Line 43: variadic macro 'rte_panic' used; consider using a 'constexpr' variadic template function
- Line 46: function-like macro 'RTE_FUNC_PTR_OR_ERR_RET' used; consider a 'constexpr' template function
- Line 384: macro argument should be enclosed in parentheses
- Line 385: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_DEV_INFO_H_', which is a reserved identifier
- Line 44: macro 'RTE_ETH_MODULE_SFF_8079' used to declare a constant; consider using a 'constexpr' constant
- Line 35: macro 'RTE_DEVARGS_KEY_BUS' used to declare a constant; consider using a 'constexpr' constant
- Line 265: macro argument should be enclosed in parentheses
- Line 266: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_EAL_H_', which is a reserved identifier
- Line 28: macro 'RTE_MAGIC' used to declare a constant; consider using a 'constexpr' constant
- Line 28: macro 'RTE_ECPRI_REV_UP_TO_20' used to declare a constant; consider using a 'constexpr' constant
- Line 21: macro 'RTE_INTR_EVENT_ADD' used to declare a constant; consider using a 'constexpr' constant
- Line 12: declaration uses identifier '_RTE_ERRNO_H_', which is a reserved identifier
- Line 49: declaration uses identifier '__ELASTERROR', which is a reserved identifier
- Line 49: macro '__ELASTERROR' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_ESP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETH_CTRL_H_', which is a reserved identifier
- Line 30: macro 'RTE_NTUPLE_FLAGS_DST_IP' used to declare a constant; consider using a 'constexpr' constant
- Line 246: function-like macro 'RTE_ETH_FOREACH_MATCHING_DEV' used; consider a 'constexpr' template function
- Line 249: macro argument should be enclosed in parentheses
- Line 250: macro argument should be enclosed in parentheses
- Line 290: macro 'RTE_ETH_LINK_SPEED_AUTONEG' used to declare a constant; consider using a 'constexpr' constant
- Line 795: macro 'RTE_ETH_RSS_RETA_SIZE_64' used to declare a constant; consider using a 'constexpr' constant
- Line 2070: macro argument should be enclosed in parentheses
- Line 2071: macro argument should be enclosed in parentheses
- Line 2071: macro argument should be enclosed in parentheses
- Line 2086: function-like macro 'RTE_ETH_FOREACH_DEV' used; consider a 'constexpr' template function
- Line 2114: macro argument should be enclosed in parentheses
- Line 2115: macro argument should be enclosed in parentheses
- Line 2115: macro argument should be enclosed in parentheses
- Line 2141: function-like macro 'RTE_ETH_FOREACH_DEV_SIBLING' used; consider a 'constexpr' template function
- Line 2143: macro argument should be enclosed in parentheses
- Line 2144: macro argument should be enclosed in parentheses
- Line 2144: macro argument should be enclosed in parentheses
- Line 3603: flexible array members are a C99 feature
- Line 5864: variable 'p' is not initialized
- Line 5865: variable 'qd' is not initialized
- Line 5878: do not use array subscript when the index is not an integer constant expression
- Line 5903: redundant cast to the same type
- Line 5911: do not use C-style cast to convert between unrelated types
- Line 5936: variable 'qd' is not initialized
- Line 5949: do not use array subscript when the index is not an integer constant expression
- Line 5966: macro 'RTE_ETH_RX_DESC_AVAIL' used to declare a constant; consider using a 'constexpr' constant
- Line 6009: variable 'qd' is not initialized
- Line 6022: do not use array subscript when the index is not an integer constant expression
- Line 6038: macro 'RTE_ETH_TX_DESC_FULL' used to declare a constant; consider using a 'constexpr' constant
- Line 6080: variable 'qd' is not initialized
- Line 6093: do not use array subscript when the index is not an integer constant expression
- Line 6203: variable 'p' is not initialized
- Line 6204: variable 'qd' is not initialized
- Line 6217: do not use array subscript when the index is not an integer constant expression
- Line 6240: redundant cast to the same type
- Line 6250: do not use C-style cast to convert between unrelated types
- Line 6315: variable 'qd' is not initialized
- Line 6329: do not use array subscript when the index is not an integer constant expression
- Line 6: declaration uses identifier '_RTE_ETHDEV_CORE_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETHDEV_TRACE_FP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETHER_H_', which is a reserved identifier
- Line 25: macro 'RTE_ETHER_ADDR_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 84: do not use C-style cast to convert between unrelated types
- Line 85: do not use C-style cast to convert between unrelated types
- Line 102: do not use C-style cast to convert between unrelated types
- Line 149: do not use C-style cast to convert between unrelated types
- Line 333: do not use C-style cast to convert between unrelated types
- Line 358: variable 'nh' is not initialized
- Line 359: variable 'vh' is not initialized
- Line 369: do not use pointer arithmetic
- Line 378: do not use C-style cast to convert between unrelated types
- Line 9: declaration uses identifier '_RTE_GTP_H_', which is a reserved identifier
- Line 147: macro 'RTE_GTP_TYPE_IPV4' used to declare a constant; consider using a 'constexpr' constant
- Line 9: declaration uses identifier '_RTE_ICMP_H_', which is a reserved identifier
- Line 37: macro 'RTE_IP_ICMP_ECHO_REPLY' used to declare a constant; consider using a 'constexpr' constant
- Line 38: macro 'RTE_MAX_RXTX_INTR_VEC_ID' used to declare a constant; consider using a 'constexpr' constant
- Line 68: function-like macro 'RTE_IPV4' used; consider a 'constexpr' template function
- Line 164: variable 'end' is not initialized
- Line 166: do not use C-style cast to convert between unrelated types
- Line 195: declaration uses identifier '__rte_raw_cksum_reduce', which is a reserved identifier
- Line 215: variable 'sum' is not initialized
- Line 239: variable 'seg' is not initialized
- Line 240: variable 'buf' is not initialized
- Line 241: multiple declarations in a single statement reduces readability
- Line 241: variable 'tmp' is not initialized
- Line 242: multiple declarations in a single statement reduces readability
- Line 242: variable 'done' is not initialized
- Line 246: do not use pointer arithmetic
- Line 263: use nullptr
- Line 266: do not use pointer arithmetic
- Line 342: variable 'l3_len' is not initialized
- Line 362: declaration uses identifier '__rte_ipv4_udptcp_cksum', which is a reserved identifier
- Line 364: variable 'cksum' is not initialized
- Line 365: multiple declarations in a single statement reduces readability
- Line 365: variable 'l4_len' is not initialized
- Line 366: variable 'ip_hdr_len' is not initialized
- Line 417: declaration uses identifier '__rte_ipv4_udptcp_cksum_mbuf', which is a reserved identifier
- Line 421: variable 'raw_cksum' is not initialized
- Line 422: variable 'cksum' is not initialized
- Line 543: macro 'RTE_IPV6_HDR_FL_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 596: declaration uses identifier '__rte_ipv6_udptcp_cksum', which is a reserved identifier
- Line 598: variable 'cksum' is not initialized
- Line 599: variable 'l4_len' is not initialized
- Line 646: declaration uses identifier '__rte_ipv6_udptcp_cksum_mbuf', which is a reserved identifier
- Line 650: variable 'raw_cksum' is not initialized
- Line 651: variable 'cksum' is not initialized
- Line 765: macro 'RTE_IPV6_EHDR_MF_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 813: do not use pointer arithmetic
- Line 84: macro 'RTE_L2TPV2_MSG_TYPE_CONTROL' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_LCORE_H_', which is a reserved identifier
- Line 218: function-like macro 'RTE_LCORE_FOREACH' used; consider a 'constexpr' template function
- Line 220: macro argument should be enclosed in parentheses
- Line 221: macro argument should be enclosed in parentheses
- Line 226: function-like macro 'RTE_LCORE_FOREACH_WORKER' used; consider a 'constexpr' template function
- Line 228: macro argument should be enclosed in parentheses
- Line 229: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_LOG_H_', which is a reserved identifier
- Line 29: macro 'RTE_LOGTYPE_EAL' used to declare a constant; consider using a 'constexpr' constant
- Line 370: macro argument should be enclosed in parentheses
- Line 371: macro argument should be enclosed in parentheses
- Line 387: function-like macro 'RTE_LOG_REGISTER' used; consider a 'constexpr' template function
- Line 218: do not use C-style cast to convert between unrelated types
- Line 318: do not use C-style cast to convert between unrelated types
- Line 348: declaration uses identifier '__rte_mbuf_sanity_check', which is a reserved identifier
- Line 348: function-like macro '__rte_mbuf_sanity_check' used; consider a 'constexpr' template function
- Line 382: declaration uses identifier '__rte_mbuf_refcnt_update', which is a reserved identifier
- Line 510: function-like macro 'RTE_MBUF_PREFETCH_TO_FREE' used; consider a 'constexpr' template function
- Line 575: function-like macro 'MBUF_RAW_ALLOC_CHECK' used; consider a 'constexpr' template function
- Line 600: do not use C-style cast to convert between unrelated types
- Line 825: variable 'mbp_priv' is not initialized
- Line 827: do not use C-style cast to convert between unrelated types
- Line 848: do not use C-style cast to convert between unrelated types
- Line 907: variable 'm' is not initialized
- Line 908: use nullptr
- Line 931: variable 'rc' is not initialized
- Line 933: do not use C-style cast to convert between unrelated types
- Line 1006: do not use C-style cast to convert between unrelated types
- Line 1009: do not use C-style cast to convert between unrelated types
- Line 1014: do not use C-style cast to convert between unrelated types
- Line 1184: use nullptr
- Line 1200: declaration uses identifier '__rte_pktmbuf_free_extbuf', which is a reserved identifier
- Line 1216: declaration uses identifier '__rte_pktmbuf_free_direct', which is a reserved identifier
- Line 1218: variable 'md' is not initialized
- Line 1225: use nullptr
- Line 1253: multiple declarations in a single statement reduces readability
- Line 1253: variable 'buf_len' is not initialized
- Line 1254: variable 'priv_size' is not initialized
- Line 1281: do not use C-style cast to convert between unrelated types
- Line 1304: variable 'shinfo' is not initialized
- Line 1353: use nullptr
- Line 1356: use nullptr
- Line 1357: use nullptr
- Line 1370: use nullptr
- Line 1373: use nullptr
- Line 1374: use nullptr
- Line 1381: use nullptr
- Line 1397: use nullptr
- Line 1412: variable 'm_next' is not initialized
- Line 1414: use nullptr
- Line 1417: use nullptr
- Line 1500: use nullptr
- Line 1543: use nullptr
- Line 1556: function-like macro 'rte_pktmbuf_pkt_len' used; consider a 'constexpr' template function
- Line 1598: do not use C-style cast to convert between unrelated types
- Line 1619: variable 'm_last' is not initialized
- Line 1625: use nullptr
- Line 1627: do not use C-style cast to convert between unrelated types
- Line 1660: do not use C-style cast to convert between unrelated types
- Line 1710: declaration uses identifier '__rte_pktmbuf_read', which is a reserved identifier
- Line 1737: do not use pointer arithmetic
- Line 1863: declaration uses identifier '__rte_pktmbuf_linearize', which is a reserved identifier
- Line 1996: compound literals are a C99-specific feature
- Line 81: macro 'RTE_MBUF_F_RX_IP_CKSUM_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 80: macro 'RTE_MBUF_DYN_NAMESIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 75: macro 'RTE_PTYPE_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 72: do not use C-style cast to convert between unrelated types
- Line 428: variable 'bits' is not initialized
- Line 441: do not use C-style cast to convert between unrelated types
- Line 38: macro replacement list should be enclosed in parentheses
- Line 609: macro 'RTE_MEM_EVENT_CALLBACK_NAME_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 57: macro 'RTE_MEMPOOL_HEADER_COOKIE1' used to declare a constant; consider using a 'constexpr' constant
- Line 773: variable 'ret' is not initialized
- Line 802: variable 'ops' is not initialized
- Line 827: variable 'ops' is not initialized
- Line 828: variable 'ret' is not initialized
- Line 970: macro argument should be enclosed in parentheses
- Line 1318: use nullptr
- Line 1321: use nullptr
- Line 1324: do not use pointer arithmetic
- Line 1342: use nullptr
- Line 1365: variable 'cache_objs' is not initialized
- Line 1368: use nullptr
- Line 1387: do not use array subscript when the index is not an integer constant expression
- Line 1494: variable 'ret' is not initialized
- Line 1496: multiple declarations in a single statement reduces readability
- Line 1496: variable 'len' is not initialized
- Line 1497: variable 'cache_objs' is not initialized
- Line 1500: use nullptr
- Line 1505: do not use array subscript when the index is not an integer constant expression
- Line 1567: use nullptr
- Line 1603: variable 'ret' is not initialized
- Line 1636: variable 'cache' is not initialized
- Line 1693: variable 'ret' is not initialized
- Line 1790: variable 'hdr' is not initialized
- Line 1791: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_MEMZONE_H_', which is a reserved identifier
- Line 33: macro 'RTE_MEMZONE_2MB' used to declare a constant; consider using a 'constexpr' constant
- Line 418: multiple declarations in a single statement reduces readability
- Line 418: variable 'n_periods' is not initialized
- Line 418: variable 'tc' is not initialized
- Line 418: variable 'te' is not initialized
- Line 460: multiple declarations in a single statement reduces readability
- Line 460: variable 'n_periods' is not initialized
- Line 460: variable 'tc' is not initialized
- Line 460: variable 'te' is not initialized
- Line 501: multiple declarations in a single statement reduces readability
- Line 501: variable 'time_diff_tp' is not initialized
- Line 501: variable 'n_periods_tc' is not initialized
- Line 501: variable 'n_periods_tp' is not initialized
- Line 501: variable 'tc' is not initialized
- Line 501: variable 'tp' is not initialized
- Line 544: multiple declarations in a single statement reduces readability
- Line 544: variable 'time_diff_tp' is not initialized
- Line 544: variable 'n_periods_tc' is not initialized
- Line 544: variable 'n_periods_tp' is not initialized
- Line 544: variable 'tc' is not initialized
- Line 544: variable 'tp' is not initialized
- Line 587: multiple declarations in a single statement reduces readability
- Line 587: variable 'time_diff_te' is not initialized
- Line 587: variable 'n_periods_tc' is not initialized
- Line 587: variable 'n_periods_te' is not initialized
- Line 587: variable 'tc' is not initialized
- Line 587: variable 'te' is not initialized
- Line 631: multiple declarations in a single statement reduces readability
- Line 631: variable 'time_diff_te' is not initialized
- Line 631: variable 'n_periods_tc' is not initialized
- Line 631: variable 'n_periods_te' is not initialized
- Line 631: variable 'tc' is not initialized
- Line 631: variable 'te' is not initialized
- Line 6: declaration uses identifier '_RTE_OS_H_', which is a reserved identifier
- Line 21: function-like macro 'RTE_TAILQ_HEAD' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_PCI_DEV_DEFS_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PER_LCORE_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_POWER_INTRINSIC_X86_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PPP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PREFETCH_X86_64_H_', which is a reserved identifier
- Line 18: do not use C-style cast to convert between unrelated types
- Line 11: declaration uses identifier '_RTE_RING_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_CORE_H_', which is a reserved identifier
- Line 40: macro 'RTE_TAILQ_RING_NAME' used to declare a constant; consider using a 'constexpr' constant
- Line 96: declaration uses identifier '__rte_ring_hts_pos', which is a reserved identifier
- Line 153: macro 'RING_F_SP_ENQ' used to declare a constant; consider using a 'constexpr' constant
- Line 214: use nullptr
- Line 240: use nullptr
- Line 264: use nullptr
- Line 290: use nullptr
- Line 396: use nullptr
- Line 424: use nullptr
- Line 448: use nullptr
- Line 475: use nullptr
- Line 582: use nullptr
- Line 692: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_ELEM_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_enqueue_elems_32', which is a reserved identifier
- Line 17: variable 'i' is not initialized
- Line 18: use auto when initializing with a cast to avoid duplicating the type name
- Line 18: do not use C-style cast to convert between unrelated types
- Line 19: do not use C-style cast to convert between unrelated types
- Line 60: variable 'i' is not initialized
- Line 63: use auto when initializing with a cast to avoid duplicating the type name
- Line 63: do not use C-style cast to convert between unrelated types
- Line 64: do not use C-style cast to convert between unrelated types
- Line 93: variable 'i' is not initialized
- Line 96: use auto when initializing with a cast to avoid duplicating the type name
- Line 96: do not use C-style cast to convert between unrelated types
- Line 97: do not use C-style cast to convert between unrelated types
- Line 134: multiple declarations in a single statement reduces readability
- Line 134: variable 'scale' is not initialized
- Line 134: variable 'nr_idx' is not initialized
- Line 134: variable 'nr_num' is not initialized
- Line 134: variable 'nr_size' is not initialized
- Line 148: declaration uses identifier '__rte_ring_dequeue_elems_32', which is a reserved identifier
- Line 151: variable 'i' is not initialized
- Line 152: use auto when initializing with a cast to avoid duplicating the type name
- Line 152: do not use C-style cast to convert between unrelated types
- Line 153: do not use C-style cast to convert between unrelated types
- Line 194: variable 'i' is not initialized
- Line 197: use auto when initializing with a cast to avoid duplicating the type name
- Line 197: do not use C-style cast to convert between unrelated types
- Line 198: do not use C-style cast to convert between unrelated types
- Line 227: variable 'i' is not initialized
- Line 230: use auto when initializing with a cast to avoid duplicating the type name
- Line 230: do not use C-style cast to convert between unrelated types
- Line 231: do not use C-style cast to convert between unrelated types
- Line 264: multiple declarations in a single statement reduces readability
- Line 264: variable 'scale' is not initialized
- Line 264: variable 'nr_idx' is not initialized
- Line 264: variable 'nr_num' is not initialized
- Line 264: variable 'nr_size' is not initialized
- Line 315: declaration uses identifier '__rte_ring_do_enqueue_elem', which is a reserved identifier
- Line 320: multiple declarations in a single statement reduces readability
- Line 320: variable 'prod_next' is not initialized
- Line 321: variable 'free_entries' is not initialized
- Line 332: use nullptr
- Line 362: declaration uses identifier '__rte_ring_do_dequeue_elem', which is a reserved identifier
- Line 367: multiple declarations in a single statement reduces readability
- Line 367: variable 'cons_next' is not initialized
- Line 368: variable 'entries' is not initialized
- Line 380: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_GENERIC_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_update_tail', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_move_prod_head', which is a reserved identifier
- Line 62: variable 'success' is not initialized
- Line 125: declaration uses identifier '__rte_ring_move_cons_head', which is a reserved identifier
- Line 131: variable 'success' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_HTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_HTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_hts_update_tail', which is a reserved identifier
- Line 28: variable 'tail' is not initialized
- Line 42: declaration uses identifier '__rte_ring_hts_head_wait', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_hts_move_prod_head', which is a reserved identifier
- Line 59: variable 'n' is not initialized
- Line 60: multiple declarations in a single statement reduces readability
- Line 113: declaration uses identifier '__rte_ring_hts_move_cons_head', which is a reserved identifier
- Line 117: variable 'n' is not initialized
- Line 118: multiple declarations in a single statement reduces readability
- Line 187: declaration uses identifier '__rte_ring_do_hts_enqueue_elem', which is a reserved identifier
- Line 191: multiple declarations in a single statement reduces readability
- Line 191: variable 'head' is not initialized
- Line 200: use nullptr
- Line 228: declaration uses identifier '__rte_ring_do_hts_dequeue_elem', which is a reserved identifier
- Line 232: multiple declarations in a single statement reduces readability
- Line 232: variable 'head' is not initialized
- Line 241: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_H_', which is a reserved identifier
- Line 170: variable 'tail' is not initialized
- Line 333: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ELEM_PVT_H_', which is a reserved identifier
- Line 31: declaration uses identifier '__rte_ring_st_get_tail', which is a reserved identifier
- Line 34: multiple declarations in a single statement reduces readability
- Line 34: variable 'n' is not initialized
- Line 34: variable 't' is not initialized
- Line 53: declaration uses identifier '__rte_ring_st_set_head_tail', which is a reserved identifier
- Line 56: variable 'pos' is not initialized
- Line 75: declaration uses identifier '__rte_ring_hts_get_tail', which is a reserved identifier
- Line 78: variable 'n' is not initialized
- Line 97: declaration uses identifier '__rte_ring_hts_set_head_tail', which is a reserved identifier
- Line 114: declaration uses identifier '__rte_ring_do_enqueue_start', which is a reserved identifier
- Line 117: multiple declarations in a single statement reduces readability
- Line 117: variable 'head' is not initialized
- Line 117: variable 'next' is not initialized
- Line 137: use nullptr
- Line 147: declaration uses identifier '__rte_ring_do_dequeue_start', which is a reserved identifier
- Line 151: multiple declarations in a single statement reduces readability
- Line 151: variable 'head' is not initialized
- Line 151: variable 'next' is not initialized
- Line 174: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ZC_H_', which is a reserved identifier
- Line 98: declaration uses identifier '__rte_ring_get_elem_addr', which is a reserved identifier
- Line 101: multiple declarations in a single statement reduces readability
- Line 101: variable 'scale' is not initialized
- Line 101: variable 'nr_idx' is not initialized
- Line 102: use auto when initializing with a cast to avoid duplicating the type name
- Line 102: do not use C-style cast to convert between unrelated types
- Line 124: declaration uses identifier '__rte_ring_do_enqueue_zc_elem_start', which is a reserved identifier
- Line 128: multiple declarations in a single statement reduces readability
- Line 128: variable 'head' is not initialized
- Line 128: variable 'next' is not initialized
- Line 151: use nullptr
- Line 291: variable 'tail' is not initialized
- Line 331: declaration uses identifier '__rte_ring_do_dequeue_zc_elem_start', which is a reserved identifier
- Line 335: multiple declarations in a single statement reduces readability
- Line 335: variable 'head' is not initialized
- Line 335: variable 'next' is not initialized
- Line 359: use nullptr
- Line 497: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_RTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_RTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_rts_update_tail', which is a reserved identifier
- Line 27: multiple declarations in a single statement reduces readability
- Line 53: declaration uses identifier '__rte_ring_rts_head_wait', which is a reserved identifier
- Line 56: variable 'max' is not initialized
- Line 70: declaration uses identifier '__rte_ring_rts_move_prod_head', which is a reserved identifier
- Line 74: variable 'n' is not initialized
- Line 75: multiple declarations in a single statement reduces readability
- Line 128: declaration uses identifier '__rte_ring_rts_move_cons_head', which is a reserved identifier
- Line 132: variable 'n' is not initialized
- Line 133: multiple declarations in a single statement reduces readability
- Line 202: declaration uses identifier '__rte_ring_do_rts_enqueue_elem', which is a reserved identifier
- Line 206: multiple declarations in a single statement reduces readability
- Line 206: variable 'head' is not initialized
- Line 215: use nullptr
- Line 243: declaration uses identifier '__rte_ring_do_rts_dequeue_elem', which is a reserved identifier
- Line 247: multiple declarations in a single statement reduces readability
- Line 247: variable 'head' is not initialized
- Line 256: use nullptr
- Line 6: declaration uses identifier '_RTE_RTM_H_', which is a reserved identifier
- Line 6: macro '_RTE_RTM_H_' used to declare a constant; consider using a 'constexpr' constant
- Line 26: function-like macro 'RTE_XABORT_CODE' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_RWLOCK_X86_64_H_', which is a reserved identifier
- Line 15: declaration uses identifier '_RTE_SCTP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_SPINLOCK_X86_64_H_', which is a reserved identifier
- Line 80: multiple declarations in a single statement reduces readability
- Line 80: variable 'retries' is not initialized
- Line 109: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type 'int' is implementation-defined
- Line 74: do not use pointer arithmetic
- Line 43: macro 'RTE_TCP_CWR_FLAG' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_TRACE_POINT_H_', which is a reserved identifier
- Line 78: variadic macro 'RTE_TRACE_POINT' used; consider using a 'constexpr' variadic template function
- Line 151: macro '__RTE_TRACE_EMIT_STRING_LEN_MAX' used to declare a constant; consider using a 'constexpr' constant
- Line 153: declaration uses identifier '__RTE_TRACE_EVENT_HEADER_SZ', which is a reserved identifier
- Line 211: declaration uses identifier '__rte_trace_point_fp_is_enabled', which is a reserved identifier
- Line 227: declaration uses identifier '__rte_trace_mem_per_thread_alloc', which is a reserved identifier
- Line 245: declaration uses identifier '__rte_trace_point_emit_field', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_trace_point_register', which is a reserved identifier
- Line 379: declaration uses identifier '__rte_trace_point_emit_header_generic', which is a reserved identifier
- Line 379: function-like macro '__rte_trace_point_emit_header_generic' used; consider a 'constexpr' template function
- Line 380: function-like macro '__rte_trace_point_emit_header_fp' used; consider a 'constexpr' template function
- Line 11: declaration uses identifier '_RTE_UUID_H_', which is a reserved identifier
- Line 24: do not declare C-style arrays, use std::array<> instead
- Line 6: declaration uses identifier '_RTE_VXLAN_H_', which is a reserved identifier
- Line 25: macro 'RTE_VXLAN_DEFAULT_PORT' used to declare a constant; consider using a 'constexpr' constant
- Line 18: nested namespaces can be concatenated
- Line 23: macro 'NUM_MBUFS' used to declare a constant; consider using a 'constexpr' constant
- Line 24: macro 'MBUF_CACHE_SIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 47: do not declare C-style arrays, use std::array<> instead
- Line 15: nested namespaces can be concatenated
- Line 20: do not declare C-style arrays, use std::array<> instead
- Line 19: nested namespaces can be concatenated
- Line 49: macro 'NUM_MBUFS' used to declare a constant; consider using a 'constexpr' constant
- Line 50: macro 'MBUF_CACHE_SIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 52: nested namespaces can be concatenated
- Line 144: use auto when initializing with a cast to avoid duplicating the type name
- Line 164: variable 'port' is not initialized
- Line 197: use auto when initializing with a cast to avoid duplicating the type name
- Line 197: do not use C-style cast to convert between unrelated types
- Line 197: C-style casts are discouraged; use static_cast
- Line 197: do not manage memory manually; consider a container or a smart pointer
- Line 203: narrowing conversion from 'result_type' (aka 'unsigned int') to signed type 'std::default_random_engine' (aka 'int') is implementation-defined
- Line 253: do not use pointer arithmetic
- Line 255: do not declare C-style arrays, use std::array<> instead
- Line 263: do not use pointer arithmetic
- Line 263: do not use C-style cast to convert between unrelated types
- Line 263: do not use pointer arithmetic
- Line 264: do not use pointer arithmetic
- Line 264: do not use C-style cast to convert between unrelated types
- Line 264: do not use pointer arithmetic
- Line 270: do not use pointer arithmetic
- Line 270: do not use pointer arithmetic
- Line 285: variable 'buf' is not initialized
- Line 286: loop variable has narrower type 'uint16_t' than iteration's upper bound 'int'
- Line 287: do not use pointer arithmetic
- Line 323: narrowing conversion from 'BigCount' (aka 'long') to signed type 'int' is implementation-defined
- Line 324: narrowing conversion from 'Count' (aka 'unsigned int') to signed type 'int' is implementation-defined
- Line 325: narrowing conversion from 'Count' (aka 'unsigned int') to signed type 'int' is implementation-defined
- Line 329: narrowing conversion from 'BigCount' (aka 'long') to signed type 'int' is implementation-defined
- Line 33: nested namespaces can be concatenated
plugins/NICSender.hpp
Errors
- Line 24: Found other header after system header. Should be: NICSender.hh, other non-system headers, system headers.
- Line 25: Found other header after system header. Should be: NICSender.hh, other non-system headers, system headers.
- Line 26: Found other header after system header. Should be: NICSender.hh, other non-system headers, system headers.
- Line 28: Found other header after system header. Should be: NICSender.hh, other non-system headers, system headers.
- Line 29: Found other header after system header. Should be: NICSender.hh, other non-system headers, system headers.
- Line 31: Found other header after system header. Should be: NICSender.hh, other non-system headers, system headers.
- Line 56: An unsigned integer appears to be used here.
- Line 56: Add #include
src/CyclicDataGenerator.cpp
Errors
- Line 0: The standard copyright message wasn't found.
- Line 3: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 28: Do not use variable-length arrays. Use an appropriately named ('k' followed by CamelCase) compile-time constant for the size.
- Line 50: Do not use variable-length arrays. Use an appropriately named ('k' followed by CamelCase) compile-time constant for the size.
Warnings
- Line 7: nested namespaces can be concatenated
- Line 3: macro 'DEFAULT_CYCLIC_PATTERN' used to declare a constant; consider using a 'constexpr' constant
- Line 24: do not use pointer arithmetic
- Line 28: do not declare C VLA arrays, use std::vector<> instead
- Line 28: variable length arrays in C++ are a Clang extension
- Line 34: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 46: do not use pointer arithmetic
- Line 50: do not declare C VLA arrays, use std::vector<> instead
- Line 50: variable length arrays in C++ are a Clang extension
- Line 56: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
src/EALSetup.cpp
Errors
- Line 30: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 25: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 26: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 28: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 30: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 74: An unsigned integer appears to be used here.
- Line 95: An unsigned integer appears to be used here.
- Line 96: An unsigned integer appears to be used here.
- Line 101: An unsigned integer appears to be used here.
- Line 102: An unsigned integer appears to be used here.
- Line 104: An unsigned integer appears to be used here.
- Line 156: An unsigned integer appears to be used here.
- Line 166: Use of NULL #define found; prefer using the nullptr keyword
- Line 180: Use of NULL #define found; prefer using the nullptr keyword
- Line 257: Small and focused functions are preferred: iface_init() has 110 non-comment lines (error triggered by exceeding 80 lines) (disable this by putting "// NOLINT" after the function's closing brace.)
- Line 273: Use of NULL #define found; prefer using the nullptr keyword
- Line 301: Using C-style cast. Use one of the C++ cast operators instead
- Line 309: Add #include
for string - Line 97: Add #include
- Line 277: Add #include
for unique_ptr<> - Line 311: Add #include
for vector<>
Warnings
- Line 6: declaration uses identifier '_RTE_ATOMIC_H_', which is a reserved identifier
- Line 119: function-like macro 'rte_compiler_barrier' used; consider a 'constexpr' template function
- Line 30: macro 'RTE_BIG_ENDIAN' used to declare a constant; consider using a 'constexpr' constant
- Line 93: consider replacing 'unsigned long' with 'uint64'
- Line 19: macro 'MS_PER_S' used to declare a constant; consider using a 'constexpr' constant
- Line 132: function-like macro 'RTE_WAIT_UNTIL_MASKED' used; consider a 'constexpr' template function
- Line 135: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_POWER_INTRINSIC_H_', which is a reserved identifier
- Line 22: macro 'RTE_POWER_MONITOR_OPAQUE_SZ' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_RWLOCK_H_', which is a reserved identifier
- Line 52: macro 'RTE_RWLOCK_WAIT' used to declare a constant; consider using a 'constexpr' constant
- Line 90: converting integer literal to bool, use bool literal instead
- Line 123: variable 'x' is not initialized
- Line 170: variable 'x' is not initialized
- Line 175: converting integer literal to bool, use bool literal instead
- Line 190: variable 'x' is not initialized
- Line 192: converting integer literal to bool, use bool literal instead
- Line 198: converting integer literal to bool, use bool literal instead
- Line 6: declaration uses identifier '_RTE_SPINLOCK_H_', which is a reserved identifier
- Line 223: increment of object of volatile-qualified type 'volatile int' is deprecated
- Line 6: declaration uses identifier '_RTE_ATOMIC_X86_H_', which is a reserved identifier
- Line 21: macro 'MPLOCKED' used to declare a constant; consider using a 'constexpr' constant
- Line 133: do not use C-style cast to convert between unrelated types
- Line 174: variable 'ret' is not initialized
- Line 190: variable 'res' is not initialized
- Line 219: do not use C-style cast to convert between unrelated types
- Line 260: variable 'ret' is not initialized
- Line 17: declaration uses identifier '_RTE_ATOMIC_X86_64_H_', which is a reserved identifier
- Line 29: variable 'res' is not initialized
- Line 145: variable 'ret' is not initialized
- Line 160: variable 'ret' is not initialized
- Line 174: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_BITOPS_H_', which is a reserved identifier
- Line 30: function-like macro 'RTE_BIT64' used; consider a 'constexpr' template function
- Line 28: function-like macro 'likely' used; consider a 'constexpr' template function
- Line 51: function-like macro 'rte_bswap16' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_COMMON_H_', which is a reserved identifier
- Line 50: macro 'RTE_CC_IS_GNU' used to declare a constant; consider using a 'constexpr' constant
- Line 88: declaration uses identifier '__rte_may_alias', which is a reserved identifier
- Line 91: declaration uses identifier '__rte_deprecated', which is a reserved identifier
- Line 92: declaration uses identifier '__rte_deprecated_msg', which is a reserved identifier
- Line 92: function-like macro '__rte_deprecated_msg' used; consider a 'constexpr' template function
- Line 108: declaration uses identifier '__rte_weak', which is a reserved identifier
- Line 113: declaration uses identifier '__rte_used', which is a reserved identifier
- Line 120: declaration uses identifier '__rte_unused', which is a reserved identifier
- Line 126: declaration uses identifier '__rte_restrict', which is a reserved identifier
- Line 135: function-like macro 'RTE_SET_USED' used; consider a 'constexpr' template function
- Line 148: function-like macro '__rte_format_printf' used; consider a 'constexpr' template function
- Line 158: declaration uses identifier '__rte_alloc_size', which is a reserved identifier
- Line 158: variadic macro '__rte_alloc_size' used; consider using a 'constexpr' variadic template function
- Line 164: macro 'RTE_PRIORITY_LOG' used to declare a constant; consider using a 'constexpr' constant
- Line 250: declaration uses identifier '__rte_warn_unused_result', which is a reserved identifier
- Line 260: declaration uses identifier '__rte_noinline', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_hot', which is a reserved identifier
- Line 270: declaration uses identifier '__rte_cold', which is a reserved identifier
- Line 282: declaration uses identifier '__rte_no_asan', which is a reserved identifier
- Line 290: function-like macro 'RTE_PTR_ADD' used; consider a 'constexpr' template function
- Line 443: declaration uses identifier '__rte_cache_min_aligned', which is a reserved identifier
- Line 464: do not declare C-style arrays, use std::array<> instead
- Line 824: macro argument should be enclosed in parentheses
- Line 837: function-like macro 'RTE_SIZEOF_FIELD' used; consider a 'constexpr' template function
- Line 841: function-like macro 'RTE_STR' used; consider a 'constexpr' template function
- Line 15: declaration uses identifier '__rte_experimental', which is a reserved identifier
- Line 33: declaration uses identifier '__rte_internal', which is a reserved identifier
- Line 13: declaration uses identifier '_RTE_CONFIG_H_', which is a reserved identifier
- Line 19: macro 'RTE_EXEC_ENV_LINUXAPP' used to declare a constant; consider using a 'constexpr' constant
- Line 7: declaration uses identifier '_RTE_CYCLES_X86_64_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_DEBUG_H_', which is a reserved identifier
- Line 43: variadic macro 'rte_panic' used; consider using a 'constexpr' variadic template function
- Line 46: function-like macro 'RTE_FUNC_PTR_OR_ERR_RET' used; consider a 'constexpr' template function
- Line 384: macro argument should be enclosed in parentheses
- Line 385: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_DEV_INFO_H_', which is a reserved identifier
- Line 44: macro 'RTE_ETH_MODULE_SFF_8079' used to declare a constant; consider using a 'constexpr' constant
- Line 35: macro 'RTE_DEVARGS_KEY_BUS' used to declare a constant; consider using a 'constexpr' constant
- Line 265: macro argument should be enclosed in parentheses
- Line 266: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_EAL_H_', which is a reserved identifier
- Line 28: macro 'RTE_MAGIC' used to declare a constant; consider using a 'constexpr' constant
- Line 28: macro 'RTE_ECPRI_REV_UP_TO_20' used to declare a constant; consider using a 'constexpr' constant
- Line 21: macro 'RTE_INTR_EVENT_ADD' used to declare a constant; consider using a 'constexpr' constant
- Line 12: declaration uses identifier '_RTE_ERRNO_H_', which is a reserved identifier
- Line 49: declaration uses identifier '__ELASTERROR', which is a reserved identifier
- Line 49: macro '__ELASTERROR' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_ESP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETH_CTRL_H_', which is a reserved identifier
- Line 30: macro 'RTE_NTUPLE_FLAGS_DST_IP' used to declare a constant; consider using a 'constexpr' constant
- Line 246: function-like macro 'RTE_ETH_FOREACH_MATCHING_DEV' used; consider a 'constexpr' template function
- Line 249: macro argument should be enclosed in parentheses
- Line 250: macro argument should be enclosed in parentheses
- Line 290: macro 'RTE_ETH_LINK_SPEED_AUTONEG' used to declare a constant; consider using a 'constexpr' constant
- Line 795: macro 'RTE_ETH_RSS_RETA_SIZE_64' used to declare a constant; consider using a 'constexpr' constant
- Line 2070: macro argument should be enclosed in parentheses
- Line 2071: macro argument should be enclosed in parentheses
- Line 2071: macro argument should be enclosed in parentheses
- Line 2086: function-like macro 'RTE_ETH_FOREACH_DEV' used; consider a 'constexpr' template function
- Line 2114: macro argument should be enclosed in parentheses
- Line 2115: macro argument should be enclosed in parentheses
- Line 2115: macro argument should be enclosed in parentheses
- Line 2141: function-like macro 'RTE_ETH_FOREACH_DEV_SIBLING' used; consider a 'constexpr' template function
- Line 2143: macro argument should be enclosed in parentheses
- Line 2144: macro argument should be enclosed in parentheses
- Line 2144: macro argument should be enclosed in parentheses
- Line 3603: flexible array members are a C99 feature
- Line 5864: variable 'p' is not initialized
- Line 5865: variable 'qd' is not initialized
- Line 5878: do not use array subscript when the index is not an integer constant expression
- Line 5903: redundant cast to the same type
- Line 5911: do not use C-style cast to convert between unrelated types
- Line 5936: variable 'qd' is not initialized
- Line 5949: do not use array subscript when the index is not an integer constant expression
- Line 5966: macro 'RTE_ETH_RX_DESC_AVAIL' used to declare a constant; consider using a 'constexpr' constant
- Line 6009: variable 'qd' is not initialized
- Line 6022: do not use array subscript when the index is not an integer constant expression
- Line 6038: macro 'RTE_ETH_TX_DESC_FULL' used to declare a constant; consider using a 'constexpr' constant
- Line 6080: variable 'qd' is not initialized
- Line 6093: do not use array subscript when the index is not an integer constant expression
- Line 6203: variable 'p' is not initialized
- Line 6204: variable 'qd' is not initialized
- Line 6217: do not use array subscript when the index is not an integer constant expression
- Line 6240: redundant cast to the same type
- Line 6250: do not use C-style cast to convert between unrelated types
- Line 6315: variable 'qd' is not initialized
- Line 6329: do not use array subscript when the index is not an integer constant expression
- Line 6: declaration uses identifier '_RTE_ETHDEV_CORE_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETHDEV_TRACE_FP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETHER_H_', which is a reserved identifier
- Line 25: macro 'RTE_ETHER_ADDR_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 84: do not use C-style cast to convert between unrelated types
- Line 85: do not use C-style cast to convert between unrelated types
- Line 102: do not use C-style cast to convert between unrelated types
- Line 149: do not use C-style cast to convert between unrelated types
- Line 333: do not use C-style cast to convert between unrelated types
- Line 358: variable 'nh' is not initialized
- Line 359: variable 'vh' is not initialized
- Line 369: do not use pointer arithmetic
- Line 378: do not use C-style cast to convert between unrelated types
- Line 9: declaration uses identifier '_RTE_GTP_H_', which is a reserved identifier
- Line 147: macro 'RTE_GTP_TYPE_IPV4' used to declare a constant; consider using a 'constexpr' constant
- Line 9: declaration uses identifier '_RTE_ICMP_H_', which is a reserved identifier
- Line 37: macro 'RTE_IP_ICMP_ECHO_REPLY' used to declare a constant; consider using a 'constexpr' constant
- Line 38: macro 'RTE_MAX_RXTX_INTR_VEC_ID' used to declare a constant; consider using a 'constexpr' constant
- Line 68: function-like macro 'RTE_IPV4' used; consider a 'constexpr' template function
- Line 164: variable 'end' is not initialized
- Line 166: do not use C-style cast to convert between unrelated types
- Line 195: declaration uses identifier '__rte_raw_cksum_reduce', which is a reserved identifier
- Line 215: variable 'sum' is not initialized
- Line 239: variable 'seg' is not initialized
- Line 240: variable 'buf' is not initialized
- Line 241: multiple declarations in a single statement reduces readability
- Line 241: variable 'tmp' is not initialized
- Line 242: multiple declarations in a single statement reduces readability
- Line 242: variable 'done' is not initialized
- Line 246: do not use pointer arithmetic
- Line 263: use nullptr
- Line 266: do not use pointer arithmetic
- Line 342: variable 'l3_len' is not initialized
- Line 362: declaration uses identifier '__rte_ipv4_udptcp_cksum', which is a reserved identifier
- Line 364: variable 'cksum' is not initialized
- Line 365: multiple declarations in a single statement reduces readability
- Line 365: variable 'l4_len' is not initialized
- Line 366: variable 'ip_hdr_len' is not initialized
- Line 417: declaration uses identifier '__rte_ipv4_udptcp_cksum_mbuf', which is a reserved identifier
- Line 421: variable 'raw_cksum' is not initialized
- Line 422: variable 'cksum' is not initialized
- Line 543: macro 'RTE_IPV6_HDR_FL_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 596: declaration uses identifier '__rte_ipv6_udptcp_cksum', which is a reserved identifier
- Line 598: variable 'cksum' is not initialized
- Line 599: variable 'l4_len' is not initialized
- Line 646: declaration uses identifier '__rte_ipv6_udptcp_cksum_mbuf', which is a reserved identifier
- Line 650: variable 'raw_cksum' is not initialized
- Line 651: variable 'cksum' is not initialized
- Line 765: macro 'RTE_IPV6_EHDR_MF_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 813: do not use pointer arithmetic
- Line 84: macro 'RTE_L2TPV2_MSG_TYPE_CONTROL' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_LCORE_H_', which is a reserved identifier
- Line 218: function-like macro 'RTE_LCORE_FOREACH' used; consider a 'constexpr' template function
- Line 220: macro argument should be enclosed in parentheses
- Line 221: macro argument should be enclosed in parentheses
- Line 226: function-like macro 'RTE_LCORE_FOREACH_WORKER' used; consider a 'constexpr' template function
- Line 228: macro argument should be enclosed in parentheses
- Line 229: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_LOG_H_', which is a reserved identifier
- Line 29: macro 'RTE_LOGTYPE_EAL' used to declare a constant; consider using a 'constexpr' constant
- Line 370: macro argument should be enclosed in parentheses
- Line 371: macro argument should be enclosed in parentheses
- Line 387: function-like macro 'RTE_LOG_REGISTER' used; consider a 'constexpr' template function
- Line 218: do not use C-style cast to convert between unrelated types
- Line 318: do not use C-style cast to convert between unrelated types
- Line 348: declaration uses identifier '__rte_mbuf_sanity_check', which is a reserved identifier
- Line 348: function-like macro '__rte_mbuf_sanity_check' used; consider a 'constexpr' template function
- Line 382: declaration uses identifier '__rte_mbuf_refcnt_update', which is a reserved identifier
- Line 510: function-like macro 'RTE_MBUF_PREFETCH_TO_FREE' used; consider a 'constexpr' template function
- Line 575: function-like macro 'MBUF_RAW_ALLOC_CHECK' used; consider a 'constexpr' template function
- Line 600: do not use C-style cast to convert between unrelated types
- Line 825: variable 'mbp_priv' is not initialized
- Line 827: do not use C-style cast to convert between unrelated types
- Line 848: do not use C-style cast to convert between unrelated types
- Line 907: variable 'm' is not initialized
- Line 908: use nullptr
- Line 931: variable 'rc' is not initialized
- Line 933: do not use C-style cast to convert between unrelated types
- Line 1006: do not use C-style cast to convert between unrelated types
- Line 1009: do not use C-style cast to convert between unrelated types
- Line 1014: do not use C-style cast to convert between unrelated types
- Line 1184: use nullptr
- Line 1200: declaration uses identifier '__rte_pktmbuf_free_extbuf', which is a reserved identifier
- Line 1216: declaration uses identifier '__rte_pktmbuf_free_direct', which is a reserved identifier
- Line 1218: variable 'md' is not initialized
- Line 1225: use nullptr
- Line 1253: multiple declarations in a single statement reduces readability
- Line 1253: variable 'buf_len' is not initialized
- Line 1254: variable 'priv_size' is not initialized
- Line 1281: do not use C-style cast to convert between unrelated types
- Line 1304: variable 'shinfo' is not initialized
- Line 1353: use nullptr
- Line 1356: use nullptr
- Line 1357: use nullptr
- Line 1370: use nullptr
- Line 1373: use nullptr
- Line 1374: use nullptr
- Line 1381: use nullptr
- Line 1397: use nullptr
- Line 1412: variable 'm_next' is not initialized
- Line 1414: use nullptr
- Line 1417: use nullptr
- Line 1500: use nullptr
- Line 1543: use nullptr
- Line 1556: function-like macro 'rte_pktmbuf_pkt_len' used; consider a 'constexpr' template function
- Line 1598: do not use C-style cast to convert between unrelated types
- Line 1619: variable 'm_last' is not initialized
- Line 1625: use nullptr
- Line 1627: do not use C-style cast to convert between unrelated types
- Line 1660: do not use C-style cast to convert between unrelated types
- Line 1710: declaration uses identifier '__rte_pktmbuf_read', which is a reserved identifier
- Line 1737: do not use pointer arithmetic
- Line 1863: declaration uses identifier '__rte_pktmbuf_linearize', which is a reserved identifier
- Line 1996: compound literals are a C99-specific feature
- Line 81: macro 'RTE_MBUF_F_RX_IP_CKSUM_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 80: macro 'RTE_MBUF_DYN_NAMESIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 75: macro 'RTE_PTYPE_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 72: do not use C-style cast to convert between unrelated types
- Line 428: variable 'bits' is not initialized
- Line 441: do not use C-style cast to convert between unrelated types
- Line 38: macro replacement list should be enclosed in parentheses
- Line 609: macro 'RTE_MEM_EVENT_CALLBACK_NAME_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 57: macro 'RTE_MEMPOOL_HEADER_COOKIE1' used to declare a constant; consider using a 'constexpr' constant
- Line 773: variable 'ret' is not initialized
- Line 802: variable 'ops' is not initialized
- Line 827: variable 'ops' is not initialized
- Line 828: variable 'ret' is not initialized
- Line 970: macro argument should be enclosed in parentheses
- Line 1318: use nullptr
- Line 1321: use nullptr
- Line 1324: do not use pointer arithmetic
- Line 1342: use nullptr
- Line 1365: variable 'cache_objs' is not initialized
- Line 1368: use nullptr
- Line 1387: do not use array subscript when the index is not an integer constant expression
- Line 1494: variable 'ret' is not initialized
- Line 1496: multiple declarations in a single statement reduces readability
- Line 1496: variable 'len' is not initialized
- Line 1497: variable 'cache_objs' is not initialized
- Line 1500: use nullptr
- Line 1505: do not use array subscript when the index is not an integer constant expression
- Line 1567: use nullptr
- Line 1603: variable 'ret' is not initialized
- Line 1636: variable 'cache' is not initialized
- Line 1693: variable 'ret' is not initialized
- Line 1790: variable 'hdr' is not initialized
- Line 1791: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_MEMZONE_H_', which is a reserved identifier
- Line 33: macro 'RTE_MEMZONE_2MB' used to declare a constant; consider using a 'constexpr' constant
- Line 418: multiple declarations in a single statement reduces readability
- Line 418: variable 'n_periods' is not initialized
- Line 418: variable 'tc' is not initialized
- Line 418: variable 'te' is not initialized
- Line 460: multiple declarations in a single statement reduces readability
- Line 460: variable 'n_periods' is not initialized
- Line 460: variable 'tc' is not initialized
- Line 460: variable 'te' is not initialized
- Line 501: multiple declarations in a single statement reduces readability
- Line 501: variable 'time_diff_tp' is not initialized
- Line 501: variable 'n_periods_tc' is not initialized
- Line 501: variable 'n_periods_tp' is not initialized
- Line 501: variable 'tc' is not initialized
- Line 501: variable 'tp' is not initialized
- Line 544: multiple declarations in a single statement reduces readability
- Line 544: variable 'time_diff_tp' is not initialized
- Line 544: variable 'n_periods_tc' is not initialized
- Line 544: variable 'n_periods_tp' is not initialized
- Line 544: variable 'tc' is not initialized
- Line 544: variable 'tp' is not initialized
- Line 587: multiple declarations in a single statement reduces readability
- Line 587: variable 'time_diff_te' is not initialized
- Line 587: variable 'n_periods_tc' is not initialized
- Line 587: variable 'n_periods_te' is not initialized
- Line 587: variable 'tc' is not initialized
- Line 587: variable 'te' is not initialized
- Line 631: multiple declarations in a single statement reduces readability
- Line 631: variable 'time_diff_te' is not initialized
- Line 631: variable 'n_periods_tc' is not initialized
- Line 631: variable 'n_periods_te' is not initialized
- Line 631: variable 'tc' is not initialized
- Line 631: variable 'te' is not initialized
- Line 6: declaration uses identifier '_RTE_OS_H_', which is a reserved identifier
- Line 21: function-like macro 'RTE_TAILQ_HEAD' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_PCI_DEV_DEFS_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PER_LCORE_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_POWER_INTRINSIC_X86_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PPP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PREFETCH_X86_64_H_', which is a reserved identifier
- Line 18: do not use C-style cast to convert between unrelated types
- Line 11: declaration uses identifier '_RTE_RING_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_CORE_H_', which is a reserved identifier
- Line 40: macro 'RTE_TAILQ_RING_NAME' used to declare a constant; consider using a 'constexpr' constant
- Line 96: declaration uses identifier '__rte_ring_hts_pos', which is a reserved identifier
- Line 153: macro 'RING_F_SP_ENQ' used to declare a constant; consider using a 'constexpr' constant
- Line 214: use nullptr
- Line 240: use nullptr
- Line 264: use nullptr
- Line 290: use nullptr
- Line 396: use nullptr
- Line 424: use nullptr
- Line 448: use nullptr
- Line 475: use nullptr
- Line 582: use nullptr
- Line 692: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_ELEM_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_enqueue_elems_32', which is a reserved identifier
- Line 17: variable 'i' is not initialized
- Line 18: use auto when initializing with a cast to avoid duplicating the type name
- Line 18: do not use C-style cast to convert between unrelated types
- Line 19: do not use C-style cast to convert between unrelated types
- Line 60: variable 'i' is not initialized
- Line 63: use auto when initializing with a cast to avoid duplicating the type name
- Line 63: do not use C-style cast to convert between unrelated types
- Line 64: do not use C-style cast to convert between unrelated types
- Line 93: variable 'i' is not initialized
- Line 96: use auto when initializing with a cast to avoid duplicating the type name
- Line 96: do not use C-style cast to convert between unrelated types
- Line 97: do not use C-style cast to convert between unrelated types
- Line 134: multiple declarations in a single statement reduces readability
- Line 134: variable 'scale' is not initialized
- Line 134: variable 'nr_idx' is not initialized
- Line 134: variable 'nr_num' is not initialized
- Line 134: variable 'nr_size' is not initialized
- Line 148: declaration uses identifier '__rte_ring_dequeue_elems_32', which is a reserved identifier
- Line 151: variable 'i' is not initialized
- Line 152: use auto when initializing with a cast to avoid duplicating the type name
- Line 152: do not use C-style cast to convert between unrelated types
- Line 153: do not use C-style cast to convert between unrelated types
- Line 194: variable 'i' is not initialized
- Line 197: use auto when initializing with a cast to avoid duplicating the type name
- Line 197: do not use C-style cast to convert between unrelated types
- Line 198: do not use C-style cast to convert between unrelated types
- Line 227: variable 'i' is not initialized
- Line 230: use auto when initializing with a cast to avoid duplicating the type name
- Line 230: do not use C-style cast to convert between unrelated types
- Line 231: do not use C-style cast to convert between unrelated types
- Line 264: multiple declarations in a single statement reduces readability
- Line 264: variable 'scale' is not initialized
- Line 264: variable 'nr_idx' is not initialized
- Line 264: variable 'nr_num' is not initialized
- Line 264: variable 'nr_size' is not initialized
- Line 315: declaration uses identifier '__rte_ring_do_enqueue_elem', which is a reserved identifier
- Line 320: multiple declarations in a single statement reduces readability
- Line 320: variable 'prod_next' is not initialized
- Line 321: variable 'free_entries' is not initialized
- Line 332: use nullptr
- Line 362: declaration uses identifier '__rte_ring_do_dequeue_elem', which is a reserved identifier
- Line 367: multiple declarations in a single statement reduces readability
- Line 367: variable 'cons_next' is not initialized
- Line 368: variable 'entries' is not initialized
- Line 380: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_GENERIC_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_update_tail', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_move_prod_head', which is a reserved identifier
- Line 62: variable 'success' is not initialized
- Line 125: declaration uses identifier '__rte_ring_move_cons_head', which is a reserved identifier
- Line 131: variable 'success' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_HTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_HTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_hts_update_tail', which is a reserved identifier
- Line 28: variable 'tail' is not initialized
- Line 42: declaration uses identifier '__rte_ring_hts_head_wait', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_hts_move_prod_head', which is a reserved identifier
- Line 59: variable 'n' is not initialized
- Line 60: multiple declarations in a single statement reduces readability
- Line 113: declaration uses identifier '__rte_ring_hts_move_cons_head', which is a reserved identifier
- Line 117: variable 'n' is not initialized
- Line 118: multiple declarations in a single statement reduces readability
- Line 187: declaration uses identifier '__rte_ring_do_hts_enqueue_elem', which is a reserved identifier
- Line 191: multiple declarations in a single statement reduces readability
- Line 191: variable 'head' is not initialized
- Line 200: use nullptr
- Line 228: declaration uses identifier '__rte_ring_do_hts_dequeue_elem', which is a reserved identifier
- Line 232: multiple declarations in a single statement reduces readability
- Line 232: variable 'head' is not initialized
- Line 241: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_H_', which is a reserved identifier
- Line 170: variable 'tail' is not initialized
- Line 333: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ELEM_PVT_H_', which is a reserved identifier
- Line 31: declaration uses identifier '__rte_ring_st_get_tail', which is a reserved identifier
- Line 34: multiple declarations in a single statement reduces readability
- Line 34: variable 'n' is not initialized
- Line 34: variable 't' is not initialized
- Line 53: declaration uses identifier '__rte_ring_st_set_head_tail', which is a reserved identifier
- Line 56: variable 'pos' is not initialized
- Line 75: declaration uses identifier '__rte_ring_hts_get_tail', which is a reserved identifier
- Line 78: variable 'n' is not initialized
- Line 97: declaration uses identifier '__rte_ring_hts_set_head_tail', which is a reserved identifier
- Line 114: declaration uses identifier '__rte_ring_do_enqueue_start', which is a reserved identifier
- Line 117: multiple declarations in a single statement reduces readability
- Line 117: variable 'head' is not initialized
- Line 117: variable 'next' is not initialized
- Line 137: use nullptr
- Line 147: declaration uses identifier '__rte_ring_do_dequeue_start', which is a reserved identifier
- Line 151: multiple declarations in a single statement reduces readability
- Line 151: variable 'head' is not initialized
- Line 151: variable 'next' is not initialized
- Line 174: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ZC_H_', which is a reserved identifier
- Line 98: declaration uses identifier '__rte_ring_get_elem_addr', which is a reserved identifier
- Line 101: multiple declarations in a single statement reduces readability
- Line 101: variable 'scale' is not initialized
- Line 101: variable 'nr_idx' is not initialized
- Line 102: use auto when initializing with a cast to avoid duplicating the type name
- Line 102: do not use C-style cast to convert between unrelated types
- Line 124: declaration uses identifier '__rte_ring_do_enqueue_zc_elem_start', which is a reserved identifier
- Line 128: multiple declarations in a single statement reduces readability
- Line 128: variable 'head' is not initialized
- Line 128: variable 'next' is not initialized
- Line 151: use nullptr
- Line 291: variable 'tail' is not initialized
- Line 331: declaration uses identifier '__rte_ring_do_dequeue_zc_elem_start', which is a reserved identifier
- Line 335: multiple declarations in a single statement reduces readability
- Line 335: variable 'head' is not initialized
- Line 335: variable 'next' is not initialized
- Line 359: use nullptr
- Line 497: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_RTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_RTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_rts_update_tail', which is a reserved identifier
- Line 27: multiple declarations in a single statement reduces readability
- Line 53: declaration uses identifier '__rte_ring_rts_head_wait', which is a reserved identifier
- Line 56: variable 'max' is not initialized
- Line 70: declaration uses identifier '__rte_ring_rts_move_prod_head', which is a reserved identifier
- Line 74: variable 'n' is not initialized
- Line 75: multiple declarations in a single statement reduces readability
- Line 128: declaration uses identifier '__rte_ring_rts_move_cons_head', which is a reserved identifier
- Line 132: variable 'n' is not initialized
- Line 133: multiple declarations in a single statement reduces readability
- Line 202: declaration uses identifier '__rte_ring_do_rts_enqueue_elem', which is a reserved identifier
- Line 206: multiple declarations in a single statement reduces readability
- Line 206: variable 'head' is not initialized
- Line 215: use nullptr
- Line 243: declaration uses identifier '__rte_ring_do_rts_dequeue_elem', which is a reserved identifier
- Line 247: multiple declarations in a single statement reduces readability
- Line 247: variable 'head' is not initialized
- Line 256: use nullptr
- Line 6: declaration uses identifier '_RTE_RTM_H_', which is a reserved identifier
- Line 6: macro '_RTE_RTM_H_' used to declare a constant; consider using a 'constexpr' constant
- Line 26: function-like macro 'RTE_XABORT_CODE' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_RWLOCK_X86_64_H_', which is a reserved identifier
- Line 15: declaration uses identifier '_RTE_SCTP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_SPINLOCK_X86_64_H_', which is a reserved identifier
- Line 80: multiple declarations in a single statement reduces readability
- Line 80: variable 'retries' is not initialized
- Line 109: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type 'int' is implementation-defined
- Line 74: do not use pointer arithmetic
- Line 43: macro 'RTE_TCP_CWR_FLAG' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_TRACE_POINT_H_', which is a reserved identifier
- Line 78: variadic macro 'RTE_TRACE_POINT' used; consider using a 'constexpr' variadic template function
- Line 151: macro '__RTE_TRACE_EMIT_STRING_LEN_MAX' used to declare a constant; consider using a 'constexpr' constant
- Line 153: declaration uses identifier '__RTE_TRACE_EVENT_HEADER_SZ', which is a reserved identifier
- Line 211: declaration uses identifier '__rte_trace_point_fp_is_enabled', which is a reserved identifier
- Line 227: declaration uses identifier '__rte_trace_mem_per_thread_alloc', which is a reserved identifier
- Line 245: declaration uses identifier '__rte_trace_point_emit_field', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_trace_point_register', which is a reserved identifier
- Line 379: declaration uses identifier '__rte_trace_point_emit_header_generic', which is a reserved identifier
- Line 379: function-like macro '__rte_trace_point_emit_header_generic' used; consider a 'constexpr' template function
- Line 380: function-like macro '__rte_trace_point_emit_header_fp' used; consider a 'constexpr' template function
- Line 11: declaration uses identifier '_RTE_UUID_H_', which is a reserved identifier
- Line 24: do not declare C-style arrays, use std::array<> instead
- Line 6: declaration uses identifier '_RTE_VXLAN_H_', which is a reserved identifier
- Line 25: macro 'RTE_VXLAN_DEFAULT_PORT' used to declare a constant; consider using a 'constexpr' constant
- Line 18: nested namespaces can be concatenated
- Line 23: macro 'NUM_MBUFS' used to declare a constant; consider using a 'constexpr' constant
- Line 24: macro 'MBUF_CACHE_SIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 47: do not declare C-style arrays, use std::array<> instead
- Line 21: nested namespaces can be concatenated
- Line 25: macro 'NUM_MBUFS' used to declare a constant; consider using a 'constexpr' constant
- Line 26: macro 'MBUF_CACHE_SIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 43: missing field 'mq_mode' initializer
- Line 47: missing field 'mq_mode' initializer
- Line 48: missing field 'link_speeds' initializer
- Line 104: variable 'q' is not initialized
- Line 156: variable 'mtu' is not initialized
- Line 166: use nullptr
- Line 180: use nullptr
- Line 242: variable 'count' is not initialized
- Line 268: variable 'mbuf_pool' is not initialized
- Line 273: use nullptr
- Line 283: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long')
- Line 292: do not declare C-style arrays, use std::array<> instead
- Line 295: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int'
- Line 296: do not use pointer arithmetic
- Line 301: do not use C-style cast to cast away constness
- Line 301: C-style casts are discouraged; use const_cast
- Line 320: variable 'nb_ifaces' is not initialized
- Line 323: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined
- Line 328: variable 'lcore_id' is not initialized
src/FlowControl.cpp
Errors
- Line 0: The standard copyright message wasn't found.
- Line 1: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 40: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 65: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 73: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 81: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 132: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 139: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 148: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 42: An unsigned integer appears to be used here.
- Line 43: An unsigned integer appears to be used here.
- Line 44: An unsigned integer appears to be used here.
- Line 51: Use of NULL #define found; prefer using the nullptr keyword
- Line 106: Use operator ! instead of not
- Line 115: An unsigned integer appears to be used here.
- Line 120: Use of NULL #define found; prefer using the nullptr keyword
- Line 130: Missing date in TODO comment; it should appear on same line as the TODO, preferably in a form like "Apr-14-2020"
- Line 130: Missing author name in TODO comment; it should appear on the same line as the TODO, as Firstname Lastname
- Line 130: Missing email address in TODO comment; it should appear on the same line as the TODO
- Line 159: Use operator ! instead of not
- Line 168: An unsigned integer appears to be used here.
- Line 173: Use of NULL #define found; prefer using the nullptr keyword
- Line 184: Missing date in TODO comment; it should appear on same line as the TODO, preferably in a form like "Apr-14-2020"
- Line 184: Missing author name in TODO comment; it should appear on the same line as the TODO, as Firstname Lastname
- Line 184: Missing email address in TODO comment; it should appear on the same line as the TODO
- Line 205: Use operator ! instead of not
Warnings
- Line 6: declaration uses identifier '_RTE_ATOMIC_H_', which is a reserved identifier
- Line 119: function-like macro 'rte_compiler_barrier' used; consider a 'constexpr' template function
- Line 30: macro 'RTE_BIG_ENDIAN' used to declare a constant; consider using a 'constexpr' constant
- Line 93: consider replacing 'unsigned long' with 'uint64'
- Line 19: macro 'MS_PER_S' used to declare a constant; consider using a 'constexpr' constant
- Line 132: function-like macro 'RTE_WAIT_UNTIL_MASKED' used; consider a 'constexpr' template function
- Line 135: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_PREFETCH_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_RWLOCK_H_', which is a reserved identifier
- Line 52: macro 'RTE_RWLOCK_WAIT' used to declare a constant; consider using a 'constexpr' constant
- Line 90: converting integer literal to bool, use bool literal instead
- Line 123: variable 'x' is not initialized
- Line 170: variable 'x' is not initialized
- Line 175: converting integer literal to bool, use bool literal instead
- Line 190: variable 'x' is not initialized
- Line 192: converting integer literal to bool, use bool literal instead
- Line 198: converting integer literal to bool, use bool literal instead
- Line 6: declaration uses identifier '_RTE_SPINLOCK_H_', which is a reserved identifier
- Line 223: increment of object of volatile-qualified type 'volatile int' is deprecated
- Line 6: declaration uses identifier '_RTE_ATOMIC_X86_H_', which is a reserved identifier
- Line 21: macro 'MPLOCKED' used to declare a constant; consider using a 'constexpr' constant
- Line 133: do not use C-style cast to convert between unrelated types
- Line 174: variable 'ret' is not initialized
- Line 190: variable 'res' is not initialized
- Line 219: do not use C-style cast to convert between unrelated types
- Line 260: variable 'ret' is not initialized
- Line 17: declaration uses identifier '_RTE_ATOMIC_X86_64_H_', which is a reserved identifier
- Line 29: variable 'res' is not initialized
- Line 145: variable 'ret' is not initialized
- Line 160: variable 'ret' is not initialized
- Line 174: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_BITOPS_H_', which is a reserved identifier
- Line 30: function-like macro 'RTE_BIT64' used; consider a 'constexpr' template function
- Line 28: function-like macro 'likely' used; consider a 'constexpr' template function
- Line 51: function-like macro 'rte_bswap16' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_COMMON_H_', which is a reserved identifier
- Line 50: macro 'RTE_CC_IS_GNU' used to declare a constant; consider using a 'constexpr' constant
- Line 88: declaration uses identifier '__rte_may_alias', which is a reserved identifier
- Line 91: declaration uses identifier '__rte_deprecated', which is a reserved identifier
- Line 92: declaration uses identifier '__rte_deprecated_msg', which is a reserved identifier
- Line 92: function-like macro '__rte_deprecated_msg' used; consider a 'constexpr' template function
- Line 108: declaration uses identifier '__rte_weak', which is a reserved identifier
- Line 113: declaration uses identifier '__rte_used', which is a reserved identifier
- Line 120: declaration uses identifier '__rte_unused', which is a reserved identifier
- Line 126: declaration uses identifier '__rte_restrict', which is a reserved identifier
- Line 135: function-like macro 'RTE_SET_USED' used; consider a 'constexpr' template function
- Line 148: function-like macro '__rte_format_printf' used; consider a 'constexpr' template function
- Line 158: declaration uses identifier '__rte_alloc_size', which is a reserved identifier
- Line 158: variadic macro '__rte_alloc_size' used; consider using a 'constexpr' variadic template function
- Line 164: macro 'RTE_PRIORITY_LOG' used to declare a constant; consider using a 'constexpr' constant
- Line 250: declaration uses identifier '__rte_warn_unused_result', which is a reserved identifier
- Line 260: declaration uses identifier '__rte_noinline', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_hot', which is a reserved identifier
- Line 270: declaration uses identifier '__rte_cold', which is a reserved identifier
- Line 282: declaration uses identifier '__rte_no_asan', which is a reserved identifier
- Line 290: function-like macro 'RTE_PTR_ADD' used; consider a 'constexpr' template function
- Line 443: declaration uses identifier '__rte_cache_min_aligned', which is a reserved identifier
- Line 464: do not declare C-style arrays, use std::array<> instead
- Line 824: macro argument should be enclosed in parentheses
- Line 837: function-like macro 'RTE_SIZEOF_FIELD' used; consider a 'constexpr' template function
- Line 841: function-like macro 'RTE_STR' used; consider a 'constexpr' template function
- Line 15: declaration uses identifier '__rte_experimental', which is a reserved identifier
- Line 33: declaration uses identifier '__rte_internal', which is a reserved identifier
- Line 13: declaration uses identifier '_RTE_CONFIG_H_', which is a reserved identifier
- Line 19: macro 'RTE_EXEC_ENV_LINUXAPP' used to declare a constant; consider using a 'constexpr' constant
- Line 7: declaration uses identifier '_RTE_CYCLES_X86_64_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_DEBUG_H_', which is a reserved identifier
- Line 43: variadic macro 'rte_panic' used; consider using a 'constexpr' variadic template function
- Line 28: macro 'RTE_MAGIC' used to declare a constant; consider using a 'constexpr' constant
- Line 28: macro 'RTE_ECPRI_REV_UP_TO_20' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_ETHER_H_', which is a reserved identifier
- Line 25: macro 'RTE_ETHER_ADDR_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 84: do not use C-style cast to convert between unrelated types
- Line 85: do not use C-style cast to convert between unrelated types
- Line 102: do not use C-style cast to convert between unrelated types
- Line 149: do not use C-style cast to convert between unrelated types
- Line 333: do not use C-style cast to convert between unrelated types
- Line 358: variable 'nh' is not initialized
- Line 359: variable 'vh' is not initialized
- Line 369: do not use pointer arithmetic
- Line 378: do not use C-style cast to convert between unrelated types
- Line 9: declaration uses identifier '_RTE_GTP_H_', which is a reserved identifier
- Line 147: macro 'RTE_GTP_TYPE_IPV4' used to declare a constant; consider using a 'constexpr' constant
- Line 9: declaration uses identifier '_RTE_ICMP_H_', which is a reserved identifier
- Line 37: macro 'RTE_IP_ICMP_ECHO_REPLY' used to declare a constant; consider using a 'constexpr' constant
- Line 68: function-like macro 'RTE_IPV4' used; consider a 'constexpr' template function
- Line 164: variable 'end' is not initialized
- Line 166: do not use C-style cast to convert between unrelated types
- Line 195: declaration uses identifier '__rte_raw_cksum_reduce', which is a reserved identifier
- Line 215: variable 'sum' is not initialized
- Line 239: variable 'seg' is not initialized
- Line 240: variable 'buf' is not initialized
- Line 241: multiple declarations in a single statement reduces readability
- Line 241: variable 'tmp' is not initialized
- Line 242: multiple declarations in a single statement reduces readability
- Line 242: variable 'done' is not initialized
- Line 246: do not use pointer arithmetic
- Line 263: use nullptr
- Line 266: do not use pointer arithmetic
- Line 342: variable 'l3_len' is not initialized
- Line 362: declaration uses identifier '__rte_ipv4_udptcp_cksum', which is a reserved identifier
- Line 364: variable 'cksum' is not initialized
- Line 365: multiple declarations in a single statement reduces readability
- Line 365: variable 'l4_len' is not initialized
- Line 366: variable 'ip_hdr_len' is not initialized
- Line 417: declaration uses identifier '__rte_ipv4_udptcp_cksum_mbuf', which is a reserved identifier
- Line 421: variable 'raw_cksum' is not initialized
- Line 422: variable 'cksum' is not initialized
- Line 543: macro 'RTE_IPV6_HDR_FL_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 596: declaration uses identifier '__rte_ipv6_udptcp_cksum', which is a reserved identifier
- Line 598: variable 'cksum' is not initialized
- Line 599: variable 'l4_len' is not initialized
- Line 646: declaration uses identifier '__rte_ipv6_udptcp_cksum_mbuf', which is a reserved identifier
- Line 650: variable 'raw_cksum' is not initialized
- Line 651: variable 'cksum' is not initialized
- Line 765: macro 'RTE_IPV6_EHDR_MF_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 813: do not use pointer arithmetic
- Line 84: macro 'RTE_L2TPV2_MSG_TYPE_CONTROL' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_LCORE_H_', which is a reserved identifier
- Line 218: function-like macro 'RTE_LCORE_FOREACH' used; consider a 'constexpr' template function
- Line 220: macro argument should be enclosed in parentheses
- Line 221: macro argument should be enclosed in parentheses
- Line 226: function-like macro 'RTE_LCORE_FOREACH_WORKER' used; consider a 'constexpr' template function
- Line 228: macro argument should be enclosed in parentheses
- Line 229: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_LOG_H_', which is a reserved identifier
- Line 29: macro 'RTE_LOGTYPE_EAL' used to declare a constant; consider using a 'constexpr' constant
- Line 370: macro argument should be enclosed in parentheses
- Line 371: macro argument should be enclosed in parentheses
- Line 387: function-like macro 'RTE_LOG_REGISTER' used; consider a 'constexpr' template function
- Line 218: do not use C-style cast to convert between unrelated types
- Line 318: do not use C-style cast to convert between unrelated types
- Line 348: declaration uses identifier '__rte_mbuf_sanity_check', which is a reserved identifier
- Line 348: function-like macro '__rte_mbuf_sanity_check' used; consider a 'constexpr' template function
- Line 382: declaration uses identifier '__rte_mbuf_refcnt_update', which is a reserved identifier
- Line 510: function-like macro 'RTE_MBUF_PREFETCH_TO_FREE' used; consider a 'constexpr' template function
- Line 575: function-like macro 'MBUF_RAW_ALLOC_CHECK' used; consider a 'constexpr' template function
- Line 600: do not use C-style cast to convert between unrelated types
- Line 825: variable 'mbp_priv' is not initialized
- Line 827: do not use C-style cast to convert between unrelated types
- Line 848: do not use C-style cast to convert between unrelated types
- Line 907: variable 'm' is not initialized
- Line 908: use nullptr
- Line 931: variable 'rc' is not initialized
- Line 933: do not use C-style cast to convert between unrelated types
- Line 1006: do not use C-style cast to convert between unrelated types
- Line 1009: do not use C-style cast to convert between unrelated types
- Line 1014: do not use C-style cast to convert between unrelated types
- Line 1184: use nullptr
- Line 1200: declaration uses identifier '__rte_pktmbuf_free_extbuf', which is a reserved identifier
- Line 1216: declaration uses identifier '__rte_pktmbuf_free_direct', which is a reserved identifier
- Line 1218: variable 'md' is not initialized
- Line 1225: use nullptr
- Line 1253: multiple declarations in a single statement reduces readability
- Line 1253: variable 'buf_len' is not initialized
- Line 1254: variable 'priv_size' is not initialized
- Line 1281: do not use C-style cast to convert between unrelated types
- Line 1304: variable 'shinfo' is not initialized
- Line 1353: use nullptr
- Line 1356: use nullptr
- Line 1357: use nullptr
- Line 1370: use nullptr
- Line 1373: use nullptr
- Line 1374: use nullptr
- Line 1381: use nullptr
- Line 1397: use nullptr
- Line 1412: variable 'm_next' is not initialized
- Line 1414: use nullptr
- Line 1417: use nullptr
- Line 1500: use nullptr
- Line 1543: use nullptr
- Line 1556: function-like macro 'rte_pktmbuf_pkt_len' used; consider a 'constexpr' template function
- Line 1598: do not use C-style cast to convert between unrelated types
- Line 1619: variable 'm_last' is not initialized
- Line 1625: use nullptr
- Line 1627: do not use C-style cast to convert between unrelated types
- Line 1660: do not use C-style cast to convert between unrelated types
- Line 1710: declaration uses identifier '__rte_pktmbuf_read', which is a reserved identifier
- Line 1737: do not use pointer arithmetic
- Line 1863: declaration uses identifier '__rte_pktmbuf_linearize', which is a reserved identifier
- Line 1996: compound literals are a C99-specific feature
- Line 81: macro 'RTE_MBUF_F_RX_IP_CKSUM_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 80: macro 'RTE_MBUF_DYN_NAMESIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 75: macro 'RTE_PTYPE_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 72: do not use C-style cast to convert between unrelated types
- Line 428: variable 'bits' is not initialized
- Line 441: do not use C-style cast to convert between unrelated types
- Line 38: macro replacement list should be enclosed in parentheses
- Line 609: macro 'RTE_MEM_EVENT_CALLBACK_NAME_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 57: macro 'RTE_MEMPOOL_HEADER_COOKIE1' used to declare a constant; consider using a 'constexpr' constant
- Line 773: variable 'ret' is not initialized
- Line 802: variable 'ops' is not initialized
- Line 827: variable 'ops' is not initialized
- Line 828: variable 'ret' is not initialized
- Line 970: macro argument should be enclosed in parentheses
- Line 1318: use nullptr
- Line 1321: use nullptr
- Line 1324: do not use pointer arithmetic
- Line 1342: use nullptr
- Line 1365: variable 'cache_objs' is not initialized
- Line 1368: use nullptr
- Line 1387: do not use array subscript when the index is not an integer constant expression
- Line 1494: variable 'ret' is not initialized
- Line 1496: multiple declarations in a single statement reduces readability
- Line 1496: variable 'len' is not initialized
- Line 1497: variable 'cache_objs' is not initialized
- Line 1500: use nullptr
- Line 1505: do not use array subscript when the index is not an integer constant expression
- Line 1567: use nullptr
- Line 1603: variable 'ret' is not initialized
- Line 1636: variable 'cache' is not initialized
- Line 1693: variable 'ret' is not initialized
- Line 1790: variable 'hdr' is not initialized
- Line 1791: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_MEMZONE_H_', which is a reserved identifier
- Line 33: macro 'RTE_MEMZONE_2MB' used to declare a constant; consider using a 'constexpr' constant
- Line 418: multiple declarations in a single statement reduces readability
- Line 418: variable 'n_periods' is not initialized
- Line 418: variable 'tc' is not initialized
- Line 418: variable 'te' is not initialized
- Line 460: multiple declarations in a single statement reduces readability
- Line 460: variable 'n_periods' is not initialized
- Line 460: variable 'tc' is not initialized
- Line 460: variable 'te' is not initialized
- Line 501: multiple declarations in a single statement reduces readability
- Line 501: variable 'time_diff_tp' is not initialized
- Line 501: variable 'n_periods_tc' is not initialized
- Line 501: variable 'n_periods_tp' is not initialized
- Line 501: variable 'tc' is not initialized
- Line 501: variable 'tp' is not initialized
- Line 544: multiple declarations in a single statement reduces readability
- Line 544: variable 'time_diff_tp' is not initialized
- Line 544: variable 'n_periods_tc' is not initialized
- Line 544: variable 'n_periods_tp' is not initialized
- Line 544: variable 'tc' is not initialized
- Line 544: variable 'tp' is not initialized
- Line 587: multiple declarations in a single statement reduces readability
- Line 587: variable 'time_diff_te' is not initialized
- Line 587: variable 'n_periods_tc' is not initialized
- Line 587: variable 'n_periods_te' is not initialized
- Line 587: variable 'tc' is not initialized
- Line 587: variable 'te' is not initialized
- Line 631: multiple declarations in a single statement reduces readability
- Line 631: variable 'time_diff_te' is not initialized
- Line 631: variable 'n_periods_tc' is not initialized
- Line 631: variable 'n_periods_te' is not initialized
- Line 631: variable 'tc' is not initialized
- Line 631: variable 'te' is not initialized
- Line 6: declaration uses identifier '_RTE_OS_H_', which is a reserved identifier
- Line 21: function-like macro 'RTE_TAILQ_HEAD' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_PCI_DEV_DEFS_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PER_LCORE_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PPP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PREFETCH_X86_64_H_', which is a reserved identifier
- Line 18: do not use C-style cast to convert between unrelated types
- Line 11: declaration uses identifier '_RTE_RING_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_CORE_H_', which is a reserved identifier
- Line 40: macro 'RTE_TAILQ_RING_NAME' used to declare a constant; consider using a 'constexpr' constant
- Line 96: declaration uses identifier '__rte_ring_hts_pos', which is a reserved identifier
- Line 153: macro 'RING_F_SP_ENQ' used to declare a constant; consider using a 'constexpr' constant
- Line 214: use nullptr
- Line 240: use nullptr
- Line 264: use nullptr
- Line 290: use nullptr
- Line 396: use nullptr
- Line 424: use nullptr
- Line 448: use nullptr
- Line 475: use nullptr
- Line 582: use nullptr
- Line 692: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_ELEM_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_enqueue_elems_32', which is a reserved identifier
- Line 17: variable 'i' is not initialized
- Line 18: use auto when initializing with a cast to avoid duplicating the type name
- Line 18: do not use C-style cast to convert between unrelated types
- Line 19: do not use C-style cast to convert between unrelated types
- Line 60: variable 'i' is not initialized
- Line 63: use auto when initializing with a cast to avoid duplicating the type name
- Line 63: do not use C-style cast to convert between unrelated types
- Line 64: do not use C-style cast to convert between unrelated types
- Line 93: variable 'i' is not initialized
- Line 96: use auto when initializing with a cast to avoid duplicating the type name
- Line 96: do not use C-style cast to convert between unrelated types
- Line 97: do not use C-style cast to convert between unrelated types
- Line 134: multiple declarations in a single statement reduces readability
- Line 134: variable 'scale' is not initialized
- Line 134: variable 'nr_idx' is not initialized
- Line 134: variable 'nr_num' is not initialized
- Line 134: variable 'nr_size' is not initialized
- Line 148: declaration uses identifier '__rte_ring_dequeue_elems_32', which is a reserved identifier
- Line 151: variable 'i' is not initialized
- Line 152: use auto when initializing with a cast to avoid duplicating the type name
- Line 152: do not use C-style cast to convert between unrelated types
- Line 153: do not use C-style cast to convert between unrelated types
- Line 194: variable 'i' is not initialized
- Line 197: use auto when initializing with a cast to avoid duplicating the type name
- Line 197: do not use C-style cast to convert between unrelated types
- Line 198: do not use C-style cast to convert between unrelated types
- Line 227: variable 'i' is not initialized
- Line 230: use auto when initializing with a cast to avoid duplicating the type name
- Line 230: do not use C-style cast to convert between unrelated types
- Line 231: do not use C-style cast to convert between unrelated types
- Line 264: multiple declarations in a single statement reduces readability
- Line 264: variable 'scale' is not initialized
- Line 264: variable 'nr_idx' is not initialized
- Line 264: variable 'nr_num' is not initialized
- Line 264: variable 'nr_size' is not initialized
- Line 315: declaration uses identifier '__rte_ring_do_enqueue_elem', which is a reserved identifier
- Line 320: multiple declarations in a single statement reduces readability
- Line 320: variable 'prod_next' is not initialized
- Line 321: variable 'free_entries' is not initialized
- Line 332: use nullptr
- Line 362: declaration uses identifier '__rte_ring_do_dequeue_elem', which is a reserved identifier
- Line 367: multiple declarations in a single statement reduces readability
- Line 367: variable 'cons_next' is not initialized
- Line 368: variable 'entries' is not initialized
- Line 380: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_GENERIC_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_update_tail', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_move_prod_head', which is a reserved identifier
- Line 62: variable 'success' is not initialized
- Line 125: declaration uses identifier '__rte_ring_move_cons_head', which is a reserved identifier
- Line 131: variable 'success' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_HTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_HTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_hts_update_tail', which is a reserved identifier
- Line 28: variable 'tail' is not initialized
- Line 42: declaration uses identifier '__rte_ring_hts_head_wait', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_hts_move_prod_head', which is a reserved identifier
- Line 59: variable 'n' is not initialized
- Line 60: multiple declarations in a single statement reduces readability
- Line 113: declaration uses identifier '__rte_ring_hts_move_cons_head', which is a reserved identifier
- Line 117: variable 'n' is not initialized
- Line 118: multiple declarations in a single statement reduces readability
- Line 187: declaration uses identifier '__rte_ring_do_hts_enqueue_elem', which is a reserved identifier
- Line 191: multiple declarations in a single statement reduces readability
- Line 191: variable 'head' is not initialized
- Line 200: use nullptr
- Line 228: declaration uses identifier '__rte_ring_do_hts_dequeue_elem', which is a reserved identifier
- Line 232: multiple declarations in a single statement reduces readability
- Line 232: variable 'head' is not initialized
- Line 241: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_H_', which is a reserved identifier
- Line 170: variable 'tail' is not initialized
- Line 333: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ELEM_PVT_H_', which is a reserved identifier
- Line 31: declaration uses identifier '__rte_ring_st_get_tail', which is a reserved identifier
- Line 34: multiple declarations in a single statement reduces readability
- Line 34: variable 'n' is not initialized
- Line 34: variable 't' is not initialized
- Line 53: declaration uses identifier '__rte_ring_st_set_head_tail', which is a reserved identifier
- Line 56: variable 'pos' is not initialized
- Line 75: declaration uses identifier '__rte_ring_hts_get_tail', which is a reserved identifier
- Line 78: variable 'n' is not initialized
- Line 97: declaration uses identifier '__rte_ring_hts_set_head_tail', which is a reserved identifier
- Line 114: declaration uses identifier '__rte_ring_do_enqueue_start', which is a reserved identifier
- Line 117: multiple declarations in a single statement reduces readability
- Line 117: variable 'head' is not initialized
- Line 117: variable 'next' is not initialized
- Line 137: use nullptr
- Line 147: declaration uses identifier '__rte_ring_do_dequeue_start', which is a reserved identifier
- Line 151: multiple declarations in a single statement reduces readability
- Line 151: variable 'head' is not initialized
- Line 151: variable 'next' is not initialized
- Line 174: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ZC_H_', which is a reserved identifier
- Line 98: declaration uses identifier '__rte_ring_get_elem_addr', which is a reserved identifier
- Line 101: multiple declarations in a single statement reduces readability
- Line 101: variable 'scale' is not initialized
- Line 101: variable 'nr_idx' is not initialized
- Line 102: use auto when initializing with a cast to avoid duplicating the type name
- Line 102: do not use C-style cast to convert between unrelated types
- Line 124: declaration uses identifier '__rte_ring_do_enqueue_zc_elem_start', which is a reserved identifier
- Line 128: multiple declarations in a single statement reduces readability
- Line 128: variable 'head' is not initialized
- Line 128: variable 'next' is not initialized
- Line 151: use nullptr
- Line 291: variable 'tail' is not initialized
- Line 331: declaration uses identifier '__rte_ring_do_dequeue_zc_elem_start', which is a reserved identifier
- Line 335: multiple declarations in a single statement reduces readability
- Line 335: variable 'head' is not initialized
- Line 335: variable 'next' is not initialized
- Line 359: use nullptr
- Line 497: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_RTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_RTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_rts_update_tail', which is a reserved identifier
- Line 27: multiple declarations in a single statement reduces readability
- Line 53: declaration uses identifier '__rte_ring_rts_head_wait', which is a reserved identifier
- Line 56: variable 'max' is not initialized
- Line 70: declaration uses identifier '__rte_ring_rts_move_prod_head', which is a reserved identifier
- Line 74: variable 'n' is not initialized
- Line 75: multiple declarations in a single statement reduces readability
- Line 128: declaration uses identifier '__rte_ring_rts_move_cons_head', which is a reserved identifier
- Line 132: variable 'n' is not initialized
- Line 133: multiple declarations in a single statement reduces readability
- Line 202: declaration uses identifier '__rte_ring_do_rts_enqueue_elem', which is a reserved identifier
- Line 206: multiple declarations in a single statement reduces readability
- Line 206: variable 'head' is not initialized
- Line 215: use nullptr
- Line 243: declaration uses identifier '__rte_ring_do_rts_dequeue_elem', which is a reserved identifier
- Line 247: multiple declarations in a single statement reduces readability
- Line 247: variable 'head' is not initialized
- Line 256: use nullptr
- Line 6: declaration uses identifier '_RTE_RTM_H_', which is a reserved identifier
- Line 6: macro '_RTE_RTM_H_' used to declare a constant; consider using a 'constexpr' constant
- Line 26: function-like macro 'RTE_XABORT_CODE' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_RWLOCK_X86_64_H_', which is a reserved identifier
- Line 15: declaration uses identifier '_RTE_SCTP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_SPINLOCK_X86_64_H_', which is a reserved identifier
- Line 80: multiple declarations in a single statement reduces readability
- Line 80: variable 'retries' is not initialized
- Line 109: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type 'int' is implementation-defined
- Line 74: do not use pointer arithmetic
- Line 43: macro 'RTE_TCP_CWR_FLAG' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_TRACE_POINT_H_', which is a reserved identifier
- Line 78: variadic macro 'RTE_TRACE_POINT' used; consider using a 'constexpr' variadic template function
- Line 151: macro '__RTE_TRACE_EMIT_STRING_LEN_MAX' used to declare a constant; consider using a 'constexpr' constant
- Line 153: declaration uses identifier '__RTE_TRACE_EVENT_HEADER_SZ', which is a reserved identifier
- Line 211: declaration uses identifier '__rte_trace_point_fp_is_enabled', which is a reserved identifier
- Line 227: declaration uses identifier '__rte_trace_mem_per_thread_alloc', which is a reserved identifier
- Line 245: declaration uses identifier '__rte_trace_point_emit_field', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_trace_point_register', which is a reserved identifier
- Line 379: declaration uses identifier '__rte_trace_point_emit_header_generic', which is a reserved identifier
- Line 379: function-like macro '__rte_trace_point_emit_header_generic' used; consider a 'constexpr' template function
- Line 380: function-like macro '__rte_trace_point_emit_header_fp' used; consider a 'constexpr' template function
- Line 11: declaration uses identifier '_RTE_UUID_H_', which is a reserved identifier
- Line 24: do not declare C-style arrays, use std::array<> instead
- Line 6: declaration uses identifier '_RTE_VXLAN_H_', which is a reserved identifier
- Line 25: macro 'RTE_VXLAN_DEFAULT_PORT' used to declare a constant; consider using a 'constexpr' constant
- Line 15: nested namespaces can be concatenated
- Line 14: nested namespaces can be concatenated
- Line 44: unused parameter 'dest_mask'
- Line 49: do not declare C-style arrays, use std::array<> instead
- Line 50: do not declare C-style arrays, use std::array<> instead
- Line 51: use nullptr
- Line 56: variable 'res' is not initialized
- Line 118: do not declare C-style arrays, use std::array<> instead
- Line 119: do not declare C-style arrays, use std::array<> instead
- Line 120: use nullptr
- Line 121: variable 'res' is not initialized
- Line 171: do not declare C-style arrays, use std::array<> instead
- Line 172: do not declare C-style arrays, use std::array<> instead
- Line 173: use nullptr
- Line 175: variable 'res' is not initialized
src/IfaceWrapper.cpp
Errors
- Line 434: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 61: Missing date in TODO comment; it should appear on same line as the TODO, preferably in a form like "Apr-14-2020"
- Line 61: Missing author name in TODO comment; it should appear on the same line as the TODO, as Firstname Lastname
- Line 61: Missing email address in TODO comment; it should appear on the same line as the TODO
- Line 97: Missing date in TODO comment; it should appear on same line as the TODO, preferably in a form like "Apr-14-2020"
- Line 97: Missing author name in TODO comment; it should appear on the same line as the TODO, as Firstname Lastname
- Line 97: Missing email address in TODO comment; it should appear on the same line as the TODO
- Line 151: An unsigned integer appears to be used here.
- Line 190: An unsigned integer appears to be used here.
- Line 198: An unsigned integer appears to be used here.
- Line 216: Increment/decrement operator should appear alone on its line unless in a while/for loop head
- Line 240: Small and focused functions are preferred: IfaceWrapper::IfaceWrapper() has 113 non-comment lines (error triggered by exceeding 80 lines) (disable this by putting "// NOLINT" after the function's closing brace.)
- Line 268: Using C-style cast. Use one of the C++ cast operators instead
- Line 278: Using C-style cast. Use one of the C++ cast operators instead
- Line 286: Using C-style cast. Use one of the C++ cast operators instead
- Line 323: Use operator ! instead of not
- Line 338: An unsigned integer appears to be used here.
- Line 347: Use operator ! instead of not
- Line 573: Use of reinterpret_cast can be dangerous. If there's no way to avoid its use add " // NOLINT" to the end of this line so this script will ignore it next time
- Line 607: Using C-style cast. Use one of the C++ cast operators instead
- Line 632: Use of reinterpret_cast can be dangerous. If there's no way to avoid its use add " // NOLINT" to the end of this line so this script will ignore it next time
- Line 338: Add #include
for vector<> - Line 89: Add #include
for set<> - Line 473: Add #include
- Line 533: Add #include
for move
Warnings
- Line 119: function-like macro 'rte_compiler_barrier' used; consider a 'constexpr' template function
- Line 30: macro 'RTE_BIG_ENDIAN' used to declare a constant; consider using a 'constexpr' constant
- Line 93: consider replacing 'unsigned long' with 'uint64'
- Line 19: macro 'MS_PER_S' used to declare a constant; consider using a 'constexpr' constant
- Line 132: function-like macro 'RTE_WAIT_UNTIL_MASKED' used; consider a 'constexpr' template function
- Line 135: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_POWER_INTRINSIC_H_', which is a reserved identifier
- Line 22: macro 'RTE_POWER_MONITOR_OPAQUE_SZ' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_RWLOCK_H_', which is a reserved identifier
- Line 52: macro 'RTE_RWLOCK_WAIT' used to declare a constant; consider using a 'constexpr' constant
- Line 90: converting integer literal to bool, use bool literal instead
- Line 123: variable 'x' is not initialized
- Line 170: variable 'x' is not initialized
- Line 175: converting integer literal to bool, use bool literal instead
- Line 190: variable 'x' is not initialized
- Line 192: converting integer literal to bool, use bool literal instead
- Line 198: converting integer literal to bool, use bool literal instead
- Line 6: declaration uses identifier '_RTE_SPINLOCK_H_', which is a reserved identifier
- Line 223: increment of object of volatile-qualified type 'volatile int' is deprecated
- Line 6: declaration uses identifier '_RTE_ARP_H_', which is a reserved identifier
- Line 36: macro 'RTE_ARP_HRD_ETHER' used to declare a constant; consider using a 'constexpr' constant
- Line 21: macro 'MPLOCKED' used to declare a constant; consider using a 'constexpr' constant
- Line 133: do not use C-style cast to convert between unrelated types
- Line 174: variable 'ret' is not initialized
- Line 190: variable 'res' is not initialized
- Line 219: do not use C-style cast to convert between unrelated types
- Line 260: variable 'ret' is not initialized
- Line 17: declaration uses identifier '_RTE_ATOMIC_X86_64_H_', which is a reserved identifier
- Line 29: variable 'res' is not initialized
- Line 145: variable 'ret' is not initialized
- Line 160: variable 'ret' is not initialized
- Line 174: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_BITOPS_H_', which is a reserved identifier
- Line 30: function-like macro 'RTE_BIT64' used; consider a 'constexpr' template function
- Line 28: function-like macro 'likely' used; consider a 'constexpr' template function
- Line 51: function-like macro 'rte_bswap16' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_COMMON_H_', which is a reserved identifier
- Line 50: macro 'RTE_CC_IS_GNU' used to declare a constant; consider using a 'constexpr' constant
- Line 88: declaration uses identifier '__rte_may_alias', which is a reserved identifier
- Line 91: declaration uses identifier '__rte_deprecated', which is a reserved identifier
- Line 92: declaration uses identifier '__rte_deprecated_msg', which is a reserved identifier
- Line 92: function-like macro '__rte_deprecated_msg' used; consider a 'constexpr' template function
- Line 108: declaration uses identifier '__rte_weak', which is a reserved identifier
- Line 113: declaration uses identifier '__rte_used', which is a reserved identifier
- Line 120: declaration uses identifier '__rte_unused', which is a reserved identifier
- Line 126: declaration uses identifier '__rte_restrict', which is a reserved identifier
- Line 135: function-like macro 'RTE_SET_USED' used; consider a 'constexpr' template function
- Line 148: function-like macro '__rte_format_printf' used; consider a 'constexpr' template function
- Line 158: declaration uses identifier '__rte_alloc_size', which is a reserved identifier
- Line 158: variadic macro '__rte_alloc_size' used; consider using a 'constexpr' variadic template function
- Line 164: macro 'RTE_PRIORITY_LOG' used to declare a constant; consider using a 'constexpr' constant
- Line 250: declaration uses identifier '__rte_warn_unused_result', which is a reserved identifier
- Line 260: declaration uses identifier '__rte_noinline', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_hot', which is a reserved identifier
- Line 270: declaration uses identifier '__rte_cold', which is a reserved identifier
- Line 282: declaration uses identifier '__rte_no_asan', which is a reserved identifier
- Line 290: function-like macro 'RTE_PTR_ADD' used; consider a 'constexpr' template function
- Line 443: declaration uses identifier '__rte_cache_min_aligned', which is a reserved identifier
- Line 464: do not declare C-style arrays, use std::array<> instead
- Line 824: macro argument should be enclosed in parentheses
- Line 837: function-like macro 'RTE_SIZEOF_FIELD' used; consider a 'constexpr' template function
- Line 841: function-like macro 'RTE_STR' used; consider a 'constexpr' template function
- Line 15: declaration uses identifier '__rte_experimental', which is a reserved identifier
- Line 33: declaration uses identifier '__rte_internal', which is a reserved identifier
- Line 13: declaration uses identifier '_RTE_CONFIG_H_', which is a reserved identifier
- Line 19: macro 'RTE_EXEC_ENV_LINUXAPP' used to declare a constant; consider using a 'constexpr' constant
- Line 7: declaration uses identifier '_RTE_CYCLES_X86_64_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_DEBUG_H_', which is a reserved identifier
- Line 43: variadic macro 'rte_panic' used; consider using a 'constexpr' variadic template function
- Line 46: function-like macro 'RTE_FUNC_PTR_OR_ERR_RET' used; consider a 'constexpr' template function
- Line 384: macro argument should be enclosed in parentheses
- Line 385: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_DEV_INFO_H_', which is a reserved identifier
- Line 44: macro 'RTE_ETH_MODULE_SFF_8079' used to declare a constant; consider using a 'constexpr' constant
- Line 35: macro 'RTE_DEVARGS_KEY_BUS' used to declare a constant; consider using a 'constexpr' constant
- Line 265: macro argument should be enclosed in parentheses
- Line 266: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_EAL_H_', which is a reserved identifier
- Line 28: macro 'RTE_MAGIC' used to declare a constant; consider using a 'constexpr' constant
- Line 28: macro 'RTE_ECPRI_REV_UP_TO_20' used to declare a constant; consider using a 'constexpr' constant
- Line 21: macro 'RTE_INTR_EVENT_ADD' used to declare a constant; consider using a 'constexpr' constant
- Line 12: declaration uses identifier '_RTE_ERRNO_H_', which is a reserved identifier
- Line 49: declaration uses identifier '__ELASTERROR', which is a reserved identifier
- Line 49: macro '__ELASTERROR' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_ESP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETH_CTRL_H_', which is a reserved identifier
- Line 30: macro 'RTE_NTUPLE_FLAGS_DST_IP' used to declare a constant; consider using a 'constexpr' constant
- Line 246: function-like macro 'RTE_ETH_FOREACH_MATCHING_DEV' used; consider a 'constexpr' template function
- Line 249: macro argument should be enclosed in parentheses
- Line 250: macro argument should be enclosed in parentheses
- Line 290: macro 'RTE_ETH_LINK_SPEED_AUTONEG' used to declare a constant; consider using a 'constexpr' constant
- Line 795: macro 'RTE_ETH_RSS_RETA_SIZE_64' used to declare a constant; consider using a 'constexpr' constant
- Line 2070: macro argument should be enclosed in parentheses
- Line 2071: macro argument should be enclosed in parentheses
- Line 2071: macro argument should be enclosed in parentheses
- Line 2086: function-like macro 'RTE_ETH_FOREACH_DEV' used; consider a 'constexpr' template function
- Line 2114: macro argument should be enclosed in parentheses
- Line 2115: macro argument should be enclosed in parentheses
- Line 2115: macro argument should be enclosed in parentheses
- Line 2141: function-like macro 'RTE_ETH_FOREACH_DEV_SIBLING' used; consider a 'constexpr' template function
- Line 2143: macro argument should be enclosed in parentheses
- Line 2144: macro argument should be enclosed in parentheses
- Line 2144: macro argument should be enclosed in parentheses
- Line 3603: flexible array members are a C99 feature
- Line 5864: variable 'p' is not initialized
- Line 5865: variable 'qd' is not initialized
- Line 5878: do not use array subscript when the index is not an integer constant expression
- Line 5903: redundant cast to the same type
- Line 5911: do not use C-style cast to convert between unrelated types
- Line 5936: variable 'qd' is not initialized
- Line 5949: do not use array subscript when the index is not an integer constant expression
- Line 5966: macro 'RTE_ETH_RX_DESC_AVAIL' used to declare a constant; consider using a 'constexpr' constant
- Line 6009: variable 'qd' is not initialized
- Line 6022: do not use array subscript when the index is not an integer constant expression
- Line 6038: macro 'RTE_ETH_TX_DESC_FULL' used to declare a constant; consider using a 'constexpr' constant
- Line 6080: variable 'qd' is not initialized
- Line 6093: do not use array subscript when the index is not an integer constant expression
- Line 6203: variable 'p' is not initialized
- Line 6204: variable 'qd' is not initialized
- Line 6217: do not use array subscript when the index is not an integer constant expression
- Line 6240: redundant cast to the same type
- Line 6250: do not use C-style cast to convert between unrelated types
- Line 6315: variable 'qd' is not initialized
- Line 6329: do not use array subscript when the index is not an integer constant expression
- Line 6: declaration uses identifier '_RTE_ETHDEV_CORE_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETHDEV_TRACE_FP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETHER_H_', which is a reserved identifier
- Line 25: macro 'RTE_ETHER_ADDR_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 84: do not use C-style cast to convert between unrelated types
- Line 85: do not use C-style cast to convert between unrelated types
- Line 102: do not use C-style cast to convert between unrelated types
- Line 149: do not use C-style cast to convert between unrelated types
- Line 333: do not use C-style cast to convert between unrelated types
- Line 358: variable 'nh' is not initialized
- Line 359: variable 'vh' is not initialized
- Line 369: do not use pointer arithmetic
- Line 378: do not use C-style cast to convert between unrelated types
- Line 9: declaration uses identifier '_RTE_GTP_H_', which is a reserved identifier
- Line 147: macro 'RTE_GTP_TYPE_IPV4' used to declare a constant; consider using a 'constexpr' constant
- Line 9: declaration uses identifier '_RTE_ICMP_H_', which is a reserved identifier
- Line 37: macro 'RTE_IP_ICMP_ECHO_REPLY' used to declare a constant; consider using a 'constexpr' constant
- Line 38: macro 'RTE_MAX_RXTX_INTR_VEC_ID' used to declare a constant; consider using a 'constexpr' constant
- Line 68: function-like macro 'RTE_IPV4' used; consider a 'constexpr' template function
- Line 164: variable 'end' is not initialized
- Line 166: do not use C-style cast to convert between unrelated types
- Line 195: declaration uses identifier '__rte_raw_cksum_reduce', which is a reserved identifier
- Line 215: variable 'sum' is not initialized
- Line 239: variable 'seg' is not initialized
- Line 240: variable 'buf' is not initialized
- Line 241: multiple declarations in a single statement reduces readability
- Line 241: variable 'tmp' is not initialized
- Line 242: multiple declarations in a single statement reduces readability
- Line 242: variable 'done' is not initialized
- Line 246: do not use pointer arithmetic
- Line 263: use nullptr
- Line 266: do not use pointer arithmetic
- Line 342: variable 'l3_len' is not initialized
- Line 362: declaration uses identifier '__rte_ipv4_udptcp_cksum', which is a reserved identifier
- Line 364: variable 'cksum' is not initialized
- Line 365: multiple declarations in a single statement reduces readability
- Line 365: variable 'l4_len' is not initialized
- Line 366: variable 'ip_hdr_len' is not initialized
- Line 417: declaration uses identifier '__rte_ipv4_udptcp_cksum_mbuf', which is a reserved identifier
- Line 421: variable 'raw_cksum' is not initialized
- Line 422: variable 'cksum' is not initialized
- Line 543: macro 'RTE_IPV6_HDR_FL_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 596: declaration uses identifier '__rte_ipv6_udptcp_cksum', which is a reserved identifier
- Line 598: variable 'cksum' is not initialized
- Line 599: variable 'l4_len' is not initialized
- Line 646: declaration uses identifier '__rte_ipv6_udptcp_cksum_mbuf', which is a reserved identifier
- Line 650: variable 'raw_cksum' is not initialized
- Line 651: variable 'cksum' is not initialized
- Line 765: macro 'RTE_IPV6_EHDR_MF_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 813: do not use pointer arithmetic
- Line 84: macro 'RTE_L2TPV2_MSG_TYPE_CONTROL' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_LCORE_H_', which is a reserved identifier
- Line 218: function-like macro 'RTE_LCORE_FOREACH' used; consider a 'constexpr' template function
- Line 220: macro argument should be enclosed in parentheses
- Line 221: macro argument should be enclosed in parentheses
- Line 226: function-like macro 'RTE_LCORE_FOREACH_WORKER' used; consider a 'constexpr' template function
- Line 228: macro argument should be enclosed in parentheses
- Line 229: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_LOG_H_', which is a reserved identifier
- Line 29: macro 'RTE_LOGTYPE_EAL' used to declare a constant; consider using a 'constexpr' constant
- Line 370: macro argument should be enclosed in parentheses
- Line 371: macro argument should be enclosed in parentheses
- Line 387: function-like macro 'RTE_LOG_REGISTER' used; consider a 'constexpr' template function
- Line 218: do not use C-style cast to convert between unrelated types
- Line 318: do not use C-style cast to convert between unrelated types
- Line 348: declaration uses identifier '__rte_mbuf_sanity_check', which is a reserved identifier
- Line 348: function-like macro '__rte_mbuf_sanity_check' used; consider a 'constexpr' template function
- Line 382: declaration uses identifier '__rte_mbuf_refcnt_update', which is a reserved identifier
- Line 510: function-like macro 'RTE_MBUF_PREFETCH_TO_FREE' used; consider a 'constexpr' template function
- Line 575: function-like macro 'MBUF_RAW_ALLOC_CHECK' used; consider a 'constexpr' template function
- Line 600: do not use C-style cast to convert between unrelated types
- Line 825: variable 'mbp_priv' is not initialized
- Line 827: do not use C-style cast to convert between unrelated types
- Line 848: do not use C-style cast to convert between unrelated types
- Line 907: variable 'm' is not initialized
- Line 908: use nullptr
- Line 931: variable 'rc' is not initialized
- Line 933: do not use C-style cast to convert between unrelated types
- Line 1006: do not use C-style cast to convert between unrelated types
- Line 1009: do not use C-style cast to convert between unrelated types
- Line 1014: do not use C-style cast to convert between unrelated types
- Line 1184: use nullptr
- Line 1200: declaration uses identifier '__rte_pktmbuf_free_extbuf', which is a reserved identifier
- Line 1216: declaration uses identifier '__rte_pktmbuf_free_direct', which is a reserved identifier
- Line 1218: variable 'md' is not initialized
- Line 1225: use nullptr
- Line 1253: multiple declarations in a single statement reduces readability
- Line 1253: variable 'buf_len' is not initialized
- Line 1254: variable 'priv_size' is not initialized
- Line 1281: do not use C-style cast to convert between unrelated types
- Line 1304: variable 'shinfo' is not initialized
- Line 1353: use nullptr
- Line 1356: use nullptr
- Line 1357: use nullptr
- Line 1370: use nullptr
- Line 1373: use nullptr
- Line 1374: use nullptr
- Line 1381: use nullptr
- Line 1397: use nullptr
- Line 1412: variable 'm_next' is not initialized
- Line 1414: use nullptr
- Line 1417: use nullptr
- Line 1500: use nullptr
- Line 1543: use nullptr
- Line 1556: function-like macro 'rte_pktmbuf_pkt_len' used; consider a 'constexpr' template function
- Line 1598: do not use C-style cast to convert between unrelated types
- Line 1619: variable 'm_last' is not initialized
- Line 1625: use nullptr
- Line 1627: do not use C-style cast to convert between unrelated types
- Line 1660: do not use C-style cast to convert between unrelated types
- Line 1710: declaration uses identifier '__rte_pktmbuf_read', which is a reserved identifier
- Line 1737: do not use pointer arithmetic
- Line 1863: declaration uses identifier '__rte_pktmbuf_linearize', which is a reserved identifier
- Line 1996: compound literals are a C99-specific feature
- Line 81: macro 'RTE_MBUF_F_RX_IP_CKSUM_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 80: macro 'RTE_MBUF_DYN_NAMESIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 75: macro 'RTE_PTYPE_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 72: do not use C-style cast to convert between unrelated types
- Line 428: variable 'bits' is not initialized
- Line 441: do not use C-style cast to convert between unrelated types
- Line 38: macro replacement list should be enclosed in parentheses
- Line 609: macro 'RTE_MEM_EVENT_CALLBACK_NAME_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 57: macro 'RTE_MEMPOOL_HEADER_COOKIE1' used to declare a constant; consider using a 'constexpr' constant
- Line 773: variable 'ret' is not initialized
- Line 802: variable 'ops' is not initialized
- Line 827: variable 'ops' is not initialized
- Line 828: variable 'ret' is not initialized
- Line 970: macro argument should be enclosed in parentheses
- Line 1318: use nullptr
- Line 1321: use nullptr
- Line 1324: do not use pointer arithmetic
- Line 1342: use nullptr
- Line 1365: variable 'cache_objs' is not initialized
- Line 1368: use nullptr
- Line 1387: do not use array subscript when the index is not an integer constant expression
- Line 1494: variable 'ret' is not initialized
- Line 1496: multiple declarations in a single statement reduces readability
- Line 1496: variable 'len' is not initialized
- Line 1497: variable 'cache_objs' is not initialized
- Line 1500: use nullptr
- Line 1505: do not use array subscript when the index is not an integer constant expression
- Line 1567: use nullptr
- Line 1603: variable 'ret' is not initialized
- Line 1636: variable 'cache' is not initialized
- Line 1693: variable 'ret' is not initialized
- Line 1790: variable 'hdr' is not initialized
- Line 1791: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_MEMZONE_H_', which is a reserved identifier
- Line 33: macro 'RTE_MEMZONE_2MB' used to declare a constant; consider using a 'constexpr' constant
- Line 418: multiple declarations in a single statement reduces readability
- Line 418: variable 'n_periods' is not initialized
- Line 418: variable 'tc' is not initialized
- Line 418: variable 'te' is not initialized
- Line 460: multiple declarations in a single statement reduces readability
- Line 460: variable 'n_periods' is not initialized
- Line 460: variable 'tc' is not initialized
- Line 460: variable 'te' is not initialized
- Line 501: multiple declarations in a single statement reduces readability
- Line 501: variable 'time_diff_tp' is not initialized
- Line 501: variable 'n_periods_tc' is not initialized
- Line 501: variable 'n_periods_tp' is not initialized
- Line 501: variable 'tc' is not initialized
- Line 501: variable 'tp' is not initialized
- Line 544: multiple declarations in a single statement reduces readability
- Line 544: variable 'time_diff_tp' is not initialized
- Line 544: variable 'n_periods_tc' is not initialized
- Line 544: variable 'n_periods_tp' is not initialized
- Line 544: variable 'tc' is not initialized
- Line 544: variable 'tp' is not initialized
- Line 587: multiple declarations in a single statement reduces readability
- Line 587: variable 'time_diff_te' is not initialized
- Line 587: variable 'n_periods_tc' is not initialized
- Line 587: variable 'n_periods_te' is not initialized
- Line 587: variable 'tc' is not initialized
- Line 587: variable 'te' is not initialized
- Line 631: multiple declarations in a single statement reduces readability
- Line 631: variable 'time_diff_te' is not initialized
- Line 631: variable 'n_periods_tc' is not initialized
- Line 631: variable 'n_periods_te' is not initialized
- Line 631: variable 'tc' is not initialized
- Line 631: variable 'te' is not initialized
- Line 6: declaration uses identifier '_RTE_OS_H_', which is a reserved identifier
- Line 21: function-like macro 'RTE_TAILQ_HEAD' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_PCI_DEV_DEFS_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PER_LCORE_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_POWER_INTRINSIC_X86_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PPP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PREFETCH_X86_64_H_', which is a reserved identifier
- Line 18: do not use C-style cast to convert between unrelated types
- Line 11: declaration uses identifier '_RTE_RING_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_CORE_H_', which is a reserved identifier
- Line 40: macro 'RTE_TAILQ_RING_NAME' used to declare a constant; consider using a 'constexpr' constant
- Line 96: declaration uses identifier '__rte_ring_hts_pos', which is a reserved identifier
- Line 153: macro 'RING_F_SP_ENQ' used to declare a constant; consider using a 'constexpr' constant
- Line 214: use nullptr
- Line 240: use nullptr
- Line 264: use nullptr
- Line 290: use nullptr
- Line 396: use nullptr
- Line 424: use nullptr
- Line 448: use nullptr
- Line 475: use nullptr
- Line 582: use nullptr
- Line 692: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_ELEM_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_enqueue_elems_32', which is a reserved identifier
- Line 17: variable 'i' is not initialized
- Line 18: use auto when initializing with a cast to avoid duplicating the type name
- Line 18: do not use C-style cast to convert between unrelated types
- Line 19: do not use C-style cast to convert between unrelated types
- Line 60: variable 'i' is not initialized
- Line 63: use auto when initializing with a cast to avoid duplicating the type name
- Line 63: do not use C-style cast to convert between unrelated types
- Line 64: do not use C-style cast to convert between unrelated types
- Line 93: variable 'i' is not initialized
- Line 96: use auto when initializing with a cast to avoid duplicating the type name
- Line 96: do not use C-style cast to convert between unrelated types
- Line 97: do not use C-style cast to convert between unrelated types
- Line 134: multiple declarations in a single statement reduces readability
- Line 134: variable 'scale' is not initialized
- Line 134: variable 'nr_idx' is not initialized
- Line 134: variable 'nr_num' is not initialized
- Line 134: variable 'nr_size' is not initialized
- Line 148: declaration uses identifier '__rte_ring_dequeue_elems_32', which is a reserved identifier
- Line 151: variable 'i' is not initialized
- Line 152: use auto when initializing with a cast to avoid duplicating the type name
- Line 152: do not use C-style cast to convert between unrelated types
- Line 153: do not use C-style cast to convert between unrelated types
- Line 194: variable 'i' is not initialized
- Line 197: use auto when initializing with a cast to avoid duplicating the type name
- Line 197: do not use C-style cast to convert between unrelated types
- Line 198: do not use C-style cast to convert between unrelated types
- Line 227: variable 'i' is not initialized
- Line 230: use auto when initializing with a cast to avoid duplicating the type name
- Line 230: do not use C-style cast to convert between unrelated types
- Line 231: do not use C-style cast to convert between unrelated types
- Line 264: multiple declarations in a single statement reduces readability
- Line 264: variable 'scale' is not initialized
- Line 264: variable 'nr_idx' is not initialized
- Line 264: variable 'nr_num' is not initialized
- Line 264: variable 'nr_size' is not initialized
- Line 315: declaration uses identifier '__rte_ring_do_enqueue_elem', which is a reserved identifier
- Line 320: multiple declarations in a single statement reduces readability
- Line 320: variable 'prod_next' is not initialized
- Line 321: variable 'free_entries' is not initialized
- Line 332: use nullptr
- Line 362: declaration uses identifier '__rte_ring_do_dequeue_elem', which is a reserved identifier
- Line 367: multiple declarations in a single statement reduces readability
- Line 367: variable 'cons_next' is not initialized
- Line 368: variable 'entries' is not initialized
- Line 380: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_GENERIC_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_update_tail', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_move_prod_head', which is a reserved identifier
- Line 62: variable 'success' is not initialized
- Line 125: declaration uses identifier '__rte_ring_move_cons_head', which is a reserved identifier
- Line 131: variable 'success' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_HTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_HTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_hts_update_tail', which is a reserved identifier
- Line 28: variable 'tail' is not initialized
- Line 42: declaration uses identifier '__rte_ring_hts_head_wait', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_hts_move_prod_head', which is a reserved identifier
- Line 59: variable 'n' is not initialized
- Line 60: multiple declarations in a single statement reduces readability
- Line 113: declaration uses identifier '__rte_ring_hts_move_cons_head', which is a reserved identifier
- Line 117: variable 'n' is not initialized
- Line 118: multiple declarations in a single statement reduces readability
- Line 187: declaration uses identifier '__rte_ring_do_hts_enqueue_elem', which is a reserved identifier
- Line 191: multiple declarations in a single statement reduces readability
- Line 191: variable 'head' is not initialized
- Line 200: use nullptr
- Line 228: declaration uses identifier '__rte_ring_do_hts_dequeue_elem', which is a reserved identifier
- Line 232: multiple declarations in a single statement reduces readability
- Line 232: variable 'head' is not initialized
- Line 241: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_H_', which is a reserved identifier
- Line 170: variable 'tail' is not initialized
- Line 333: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ELEM_PVT_H_', which is a reserved identifier
- Line 31: declaration uses identifier '__rte_ring_st_get_tail', which is a reserved identifier
- Line 34: multiple declarations in a single statement reduces readability
- Line 34: variable 'n' is not initialized
- Line 34: variable 't' is not initialized
- Line 53: declaration uses identifier '__rte_ring_st_set_head_tail', which is a reserved identifier
- Line 56: variable 'pos' is not initialized
- Line 75: declaration uses identifier '__rte_ring_hts_get_tail', which is a reserved identifier
- Line 78: variable 'n' is not initialized
- Line 97: declaration uses identifier '__rte_ring_hts_set_head_tail', which is a reserved identifier
- Line 114: declaration uses identifier '__rte_ring_do_enqueue_start', which is a reserved identifier
- Line 117: multiple declarations in a single statement reduces readability
- Line 117: variable 'head' is not initialized
- Line 117: variable 'next' is not initialized
- Line 137: use nullptr
- Line 147: declaration uses identifier '__rte_ring_do_dequeue_start', which is a reserved identifier
- Line 151: multiple declarations in a single statement reduces readability
- Line 151: variable 'head' is not initialized
- Line 151: variable 'next' is not initialized
- Line 174: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ZC_H_', which is a reserved identifier
- Line 98: declaration uses identifier '__rte_ring_get_elem_addr', which is a reserved identifier
- Line 101: multiple declarations in a single statement reduces readability
- Line 101: variable 'scale' is not initialized
- Line 101: variable 'nr_idx' is not initialized
- Line 102: use auto when initializing with a cast to avoid duplicating the type name
- Line 102: do not use C-style cast to convert between unrelated types
- Line 124: declaration uses identifier '__rte_ring_do_enqueue_zc_elem_start', which is a reserved identifier
- Line 128: multiple declarations in a single statement reduces readability
- Line 128: variable 'head' is not initialized
- Line 128: variable 'next' is not initialized
- Line 151: use nullptr
- Line 291: variable 'tail' is not initialized
- Line 331: declaration uses identifier '__rte_ring_do_dequeue_zc_elem_start', which is a reserved identifier
- Line 335: multiple declarations in a single statement reduces readability
- Line 335: variable 'head' is not initialized
- Line 335: variable 'next' is not initialized
- Line 359: use nullptr
- Line 497: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_RTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_RTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_rts_update_tail', which is a reserved identifier
- Line 27: multiple declarations in a single statement reduces readability
- Line 53: declaration uses identifier '__rte_ring_rts_head_wait', which is a reserved identifier
- Line 56: variable 'max' is not initialized
- Line 70: declaration uses identifier '__rte_ring_rts_move_prod_head', which is a reserved identifier
- Line 74: variable 'n' is not initialized
- Line 75: multiple declarations in a single statement reduces readability
- Line 128: declaration uses identifier '__rte_ring_rts_move_cons_head', which is a reserved identifier
- Line 132: variable 'n' is not initialized
- Line 133: multiple declarations in a single statement reduces readability
- Line 202: declaration uses identifier '__rte_ring_do_rts_enqueue_elem', which is a reserved identifier
- Line 206: multiple declarations in a single statement reduces readability
- Line 206: variable 'head' is not initialized
- Line 215: use nullptr
- Line 243: declaration uses identifier '__rte_ring_do_rts_dequeue_elem', which is a reserved identifier
- Line 247: multiple declarations in a single statement reduces readability
- Line 247: variable 'head' is not initialized
- Line 256: use nullptr
- Line 6: declaration uses identifier '_RTE_RTM_H_', which is a reserved identifier
- Line 6: macro '_RTE_RTM_H_' used to declare a constant; consider using a 'constexpr' constant
- Line 26: function-like macro 'RTE_XABORT_CODE' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_RWLOCK_X86_64_H_', which is a reserved identifier
- Line 15: declaration uses identifier '_RTE_SCTP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_SPINLOCK_X86_64_H_', which is a reserved identifier
- Line 80: multiple declarations in a single statement reduces readability
- Line 80: variable 'retries' is not initialized
- Line 109: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type 'int' is implementation-defined
- Line 74: do not use pointer arithmetic
- Line 43: macro 'RTE_TCP_CWR_FLAG' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_TRACE_POINT_H_', which is a reserved identifier
- Line 78: variadic macro 'RTE_TRACE_POINT' used; consider using a 'constexpr' variadic template function
- Line 151: macro '__RTE_TRACE_EMIT_STRING_LEN_MAX' used to declare a constant; consider using a 'constexpr' constant
- Line 153: declaration uses identifier '__RTE_TRACE_EVENT_HEADER_SZ', which is a reserved identifier
- Line 211: declaration uses identifier '__rte_trace_point_fp_is_enabled', which is a reserved identifier
- Line 227: declaration uses identifier '__rte_trace_mem_per_thread_alloc', which is a reserved identifier
- Line 245: declaration uses identifier '__rte_trace_point_emit_field', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_trace_point_register', which is a reserved identifier
- Line 379: declaration uses identifier '__rte_trace_point_emit_header_generic', which is a reserved identifier
- Line 379: function-like macro '__rte_trace_point_emit_header_generic' used; consider a 'constexpr' template function
- Line 380: function-like macro '__rte_trace_point_emit_header_fp' used; consider a 'constexpr' template function
- Line 11: declaration uses identifier '_RTE_UUID_H_', which is a reserved identifier
- Line 24: do not declare C-style arrays, use std::array<> instead
- Line 6: declaration uses identifier '_RTE_VXLAN_H_', which is a reserved identifier
- Line 25: macro 'RTE_VXLAN_DEFAULT_PORT' used to declare a constant; consider using a 'constexpr' constant
- Line 18: nested namespaces can be concatenated
- Line 23: macro 'NUM_MBUFS' used to declare a constant; consider using a 'constexpr' constant
- Line 24: macro 'MBUF_CACHE_SIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 47: do not declare C-style arrays, use std::array<> instead
- Line 15: nested namespaces can be concatenated
- Line 17: do not manage memory manually; use RAII
- Line 20: do not manage memory manually; use RAII
- Line 23: do not manage memory manually; use RAII
- Line 34: use nullptr
- Line 34: use nullptr
- Line 40: do not use C-style cast to convert between unrelated types
- Line 40: do not manage memory manually; consider a container or a smart pointer
- Line 51: do not use C-style cast to convert between unrelated types
- Line 51: do not manage memory manually; consider a container or a smart pointer
- Line 15: nested namespaces can be concatenated
- Line 37: use auto when initializing with a cast to avoid duplicating the type name
- Line 37: do not use C-style cast to convert between unrelated types
- Line 38: use auto when initializing with a cast to avoid duplicating the type name
- Line 38: do not use C-style cast to convert between unrelated types
- Line 39: variable 'v' is not initialized
- Line 48: use auto when initializing with a cast to avoid duplicating the type name
- Line 48: do not use C-style cast to convert between unrelated types
- Line 49: use auto when initializing with a cast to avoid duplicating the type name
- Line 49: do not use C-style cast to convert between unrelated types
- Line 50: do not use pointer arithmetic
- Line 50: do not use pointer arithmetic
- Line 51: do not use pointer arithmetic
- Line 51: do not use pointer arithmetic
- Line 58: use auto when initializing with a cast to avoid duplicating the type name
- Line 58: do not use C-style cast to convert between unrelated types
- Line 59: use auto when initializing with a cast to avoid duplicating the type name
- Line 59: do not use C-style cast to convert between unrelated types
- Line 60: variable 'v' is not initialized
- Line 69: use auto when initializing with a cast to avoid duplicating the type name
- Line 69: do not use C-style cast to convert between unrelated types
- Line 70: use auto when initializing with a cast to avoid duplicating the type name
- Line 70: do not use C-style cast to convert between unrelated types
- Line 2: declaration uses identifier '_IPV4_ADDR_H_', which is a reserved identifier
- Line 25: do not use array subscript when the index is not an integer constant expression
- Line 29: do not declare C-style arrays, use std::array<> instead
- Line 15: nested namespaces can be concatenated
- Line 20: do not declare C-style arrays, use std::array<> instead
- Line 19: nested namespaces can be concatenated
- Line 35: nested namespaces can be concatenated
- Line 56: nested namespaces can be concatenated
- Line 85: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'value_type' (aka 'int') is implementation-defined
- Line 122: narrowing conversion from 'uint' (aka 'unsigned int') to signed type 'int' is implementation-defined
- Line 128: multi-character character constant
- Line 128: character constant too long for its type
- Line 150: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined
- Line 151: C-style casts are discouraged; use static_cast
- Line 154: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined
- Line 155: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined
- Line 156: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined
- Line 198: multiple declarations in a single statement reduces readability
- Line 200: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'value_type' (aka 'int') is implementation-defined
- Line 207: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'value_type' (aka 'int') is implementation-defined
- Line 208: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'key_type' (aka 'int') is implementation-defined
- Line 208: braces around scalar initializer
- Line 209: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'key_type' (aka 'int') is implementation-defined
- Line 209: braces around scalar initializer
- Line 211: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'key_type' (aka 'int') is implementation-defined
- Line 212: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'key_type' (aka 'int') is implementation-defined
- Line 268: do not use C-style cast to convert between unrelated types
- Line 268: C-style casts are discouraged; use static_cast
- Line 268: do not manage memory manually; consider a container or a smart pointer
- Line 278: do not use C-style cast to convert between unrelated types
- Line 278: C-style casts are discouraged; use static_cast
- Line 278: do not manage memory manually; consider a container or a smart pointer
- Line 286: do not use C-style cast to convert between unrelated types
- Line 286: C-style casts are discouraged; use static_cast
- Line 286: do not manage memory manually; consider a container or a smart pointer
- Line 297: multiple declarations in a single statement reduces readability
- Line 316: variable 'flow' is not initialized
- Line 319: RS: FIXME -> Check for flow flush return!
- Line 319: #warning is a C++23 extension
- Line 325: C-style casts are discouraged; use static_cast
- Line 337: multiple declarations in a single statement reduces readability
- Line 349: C-style casts are discouraged; use static_cast
- Line 358: redundant return statement at the end of a function with a void return type
- Line 386: braces around scalar initializer
- Line 387: braces around scalar initializer
- Line 388: braces around scalar initializer
- Line 389: braces around scalar initializer
- Line 394: braces around scalar initializer
- Line 395: braces around scalar initializer
- Line 396: braces around scalar initializer
- Line 410: variable 'ret' is not initialized
- Line 477: do not use pointer arithmetic
- Line 487: do not use pointer arithmetic
- Line 500: do not use pointer arithmetic
- Line 565: do not use pointer arithmetic
- Line 569: do not use pointer arithmetic
- Line 573: do not use reinterpret_cast
- Line 576: C-style casts are discouraged; use static_cast
- Line 585: C-style casts are discouraged; use static_cast
- Line 588: do not use pointer arithmetic
- Line 588: do not use pointer arithmetic
- Line 607: narrowing conversion from 'unsigned int' to signed type 'key_type' (aka 'int') is implementation-defined
- Line 607: do not use C-style cast to convert between unrelated types
- Line 607: C-style casts are discouraged; use reinterpret_cast
- Line 614: narrowing conversion from 'uint' (aka 'unsigned int') to signed type 'key_type' (aka 'int') is implementation-defined
- Line 615: narrowing conversion from 'uint' (aka 'unsigned int') to signed type 'key_type' (aka 'int') is implementation-defined
- Line 617: narrowing conversion from 'uint' (aka 'unsigned int') to signed type 'key_type' (aka 'int') is implementation-defined
- Line 621: do not use pointer arithmetic
- Line 632: do not use reinterpret_cast
- Line 643: narrowing conversion from 'unsigned int' to signed type 'key_type' (aka 'int') is implementation-defined
- Line 648: narrowing conversion from 'uint' (aka 'unsigned int') to signed type 'key_type' (aka 'int') is implementation-defined
- Line 649: narrowing conversion from 'uint' (aka 'unsigned int') to signed type 'key_type' (aka 'int') is implementation-defined
- Line 651: narrowing conversion from 'uint' (aka 'unsigned int') to signed type 'key_type' (aka 'int') is implementation-defined
- Line 26: nested namespaces can be concatenated
- Line 6: nested namespaces can be concatenated
- Line 13: C-style casts are discouraged; use static_cast
- Line 13: consider replacing 'long' with 'int64'
- Line 21: C-style casts are discouraged; use static_cast
- Line 67: do not use pointer arithmetic
- Line 90: do not use pointer arithmetic
- Line 95: do not use pointer arithmetic
- Line 95: do not use pointer arithmetic
- Line 96: do not use pointer arithmetic
- Line 108: do not use pointer arithmetic
- Line 147: C-style casts are discouraged; use static_cast
- Line 147: consider replacing 'long' with 'int64'
- Line 160: narrowing conversion from 'unsigned int' to signed type 'key_type' (aka 'int') is implementation-defined
- Line 168: narrowing conversion from 'unsigned int' to signed type 'key_type' (aka 'int') is implementation-defined
- Line 174: do not use pointer arithmetic
- Line 175: use auto when initializing with a cast to avoid duplicating the type name
- Line 175: do not use C-style cast to convert between unrelated types
- Line 175: do not use pointer arithmetic
- Line 189: narrowing conversion from 'unsigned int' to signed type 'key_type' (aka 'int') is implementation-defined
- Line 204: narrowing conversion from 'unsigned int' to signed type 'key_type' (aka 'int') is implementation-defined
src/IfaceWrapper.hpp
Errors
- Line 25: Found other header after system header. Should be: IfaceWrapper.hh, other non-system headers, system headers.
- Line 26: Found other header after system header. Should be: IfaceWrapper.hh, other non-system headers, system headers.
- Line 31: Found other header after system header. Should be: IfaceWrapper.hh, other non-system headers, system headers.
- Line 51: Using C-style cast. Use static_cast
(...) instead - Line 87: An unsigned integer appears to be used here.
- Line 103: An unsigned integer appears to be used here.
- Line 104: An unsigned integer appears to be used here.
- Line 107: An unsigned integer appears to be used here.
- Line 116: An unsigned integer appears to be used here.
- Line 135: An unsigned integer appears to be used here.
- Line 163: An unsigned integer appears to be used here.
- Line 170: An unsigned integer appears to be used here.
- Line 167: Add #include
- Line 116: Add #include
for vector<>
src/SourceModel.hpp
Errors
- Line 114: An unsigned integer appears to be used here.
- Line 115: An unsigned integer appears to be used here.
- Line 101: Add #include
for move
src/arp/ARP.cpp
Errors
- Line 28: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 46: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 87: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 104: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 107: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 110: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 113: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 116: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 126: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 23: An unsigned integer appears to be used here.
- Line 78: An unsigned integer appears to be used here.
- Line 93: Add #include
for string
Warnings
- Line 6: declaration uses identifier '_RTE_ATOMIC_H_', which is a reserved identifier
- Line 119: function-like macro 'rte_compiler_barrier' used; consider a 'constexpr' template function
- Line 30: macro 'RTE_BIG_ENDIAN' used to declare a constant; consider using a 'constexpr' constant
- Line 93: consider replacing 'unsigned long' with 'uint64'
- Line 19: macro 'MS_PER_S' used to declare a constant; consider using a 'constexpr' constant
- Line 132: function-like macro 'RTE_WAIT_UNTIL_MASKED' used; consider a 'constexpr' template function
- Line 135: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_POWER_INTRINSIC_H_', which is a reserved identifier
- Line 22: macro 'RTE_POWER_MONITOR_OPAQUE_SZ' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_RWLOCK_H_', which is a reserved identifier
- Line 52: macro 'RTE_RWLOCK_WAIT' used to declare a constant; consider using a 'constexpr' constant
- Line 90: converting integer literal to bool, use bool literal instead
- Line 123: variable 'x' is not initialized
- Line 170: variable 'x' is not initialized
- Line 175: converting integer literal to bool, use bool literal instead
- Line 190: variable 'x' is not initialized
- Line 192: converting integer literal to bool, use bool literal instead
- Line 198: converting integer literal to bool, use bool literal instead
- Line 6: declaration uses identifier '_RTE_SPINLOCK_H_', which is a reserved identifier
- Line 223: increment of object of volatile-qualified type 'volatile int' is deprecated
- Line 6: declaration uses identifier '_RTE_ARP_H_', which is a reserved identifier
- Line 36: macro 'RTE_ARP_HRD_ETHER' used to declare a constant; consider using a 'constexpr' constant
- Line 21: macro 'MPLOCKED' used to declare a constant; consider using a 'constexpr' constant
- Line 133: do not use C-style cast to convert between unrelated types
- Line 174: variable 'ret' is not initialized
- Line 190: variable 'res' is not initialized
- Line 219: do not use C-style cast to convert between unrelated types
- Line 260: variable 'ret' is not initialized
- Line 17: declaration uses identifier '_RTE_ATOMIC_X86_64_H_', which is a reserved identifier
- Line 29: variable 'res' is not initialized
- Line 145: variable 'ret' is not initialized
- Line 160: variable 'ret' is not initialized
- Line 174: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_BITOPS_H_', which is a reserved identifier
- Line 30: function-like macro 'RTE_BIT64' used; consider a 'constexpr' template function
- Line 28: function-like macro 'likely' used; consider a 'constexpr' template function
- Line 51: function-like macro 'rte_bswap16' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_COMMON_H_', which is a reserved identifier
- Line 50: macro 'RTE_CC_IS_GNU' used to declare a constant; consider using a 'constexpr' constant
- Line 88: declaration uses identifier '__rte_may_alias', which is a reserved identifier
- Line 91: declaration uses identifier '__rte_deprecated', which is a reserved identifier
- Line 92: declaration uses identifier '__rte_deprecated_msg', which is a reserved identifier
- Line 92: function-like macro '__rte_deprecated_msg' used; consider a 'constexpr' template function
- Line 108: declaration uses identifier '__rte_weak', which is a reserved identifier
- Line 113: declaration uses identifier '__rte_used', which is a reserved identifier
- Line 120: declaration uses identifier '__rte_unused', which is a reserved identifier
- Line 126: declaration uses identifier '__rte_restrict', which is a reserved identifier
- Line 135: function-like macro 'RTE_SET_USED' used; consider a 'constexpr' template function
- Line 148: function-like macro '__rte_format_printf' used; consider a 'constexpr' template function
- Line 158: declaration uses identifier '__rte_alloc_size', which is a reserved identifier
- Line 158: variadic macro '__rte_alloc_size' used; consider using a 'constexpr' variadic template function
- Line 164: macro 'RTE_PRIORITY_LOG' used to declare a constant; consider using a 'constexpr' constant
- Line 250: declaration uses identifier '__rte_warn_unused_result', which is a reserved identifier
- Line 260: declaration uses identifier '__rte_noinline', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_hot', which is a reserved identifier
- Line 270: declaration uses identifier '__rte_cold', which is a reserved identifier
- Line 282: declaration uses identifier '__rte_no_asan', which is a reserved identifier
- Line 290: function-like macro 'RTE_PTR_ADD' used; consider a 'constexpr' template function
- Line 443: declaration uses identifier '__rte_cache_min_aligned', which is a reserved identifier
- Line 464: do not declare C-style arrays, use std::array<> instead
- Line 824: macro argument should be enclosed in parentheses
- Line 837: function-like macro 'RTE_SIZEOF_FIELD' used; consider a 'constexpr' template function
- Line 841: function-like macro 'RTE_STR' used; consider a 'constexpr' template function
- Line 15: declaration uses identifier '__rte_experimental', which is a reserved identifier
- Line 33: declaration uses identifier '__rte_internal', which is a reserved identifier
- Line 13: declaration uses identifier '_RTE_CONFIG_H_', which is a reserved identifier
- Line 19: macro 'RTE_EXEC_ENV_LINUXAPP' used to declare a constant; consider using a 'constexpr' constant
- Line 7: declaration uses identifier '_RTE_CYCLES_X86_64_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_DEBUG_H_', which is a reserved identifier
- Line 43: variadic macro 'rte_panic' used; consider using a 'constexpr' variadic template function
- Line 46: function-like macro 'RTE_FUNC_PTR_OR_ERR_RET' used; consider a 'constexpr' template function
- Line 384: macro argument should be enclosed in parentheses
- Line 385: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_DEV_INFO_H_', which is a reserved identifier
- Line 44: macro 'RTE_ETH_MODULE_SFF_8079' used to declare a constant; consider using a 'constexpr' constant
- Line 35: macro 'RTE_DEVARGS_KEY_BUS' used to declare a constant; consider using a 'constexpr' constant
- Line 265: macro argument should be enclosed in parentheses
- Line 266: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_EAL_H_', which is a reserved identifier
- Line 28: macro 'RTE_MAGIC' used to declare a constant; consider using a 'constexpr' constant
- Line 28: macro 'RTE_ECPRI_REV_UP_TO_20' used to declare a constant; consider using a 'constexpr' constant
- Line 21: macro 'RTE_INTR_EVENT_ADD' used to declare a constant; consider using a 'constexpr' constant
- Line 12: declaration uses identifier '_RTE_ERRNO_H_', which is a reserved identifier
- Line 49: declaration uses identifier '__ELASTERROR', which is a reserved identifier
- Line 49: macro '__ELASTERROR' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_ESP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETH_CTRL_H_', which is a reserved identifier
- Line 30: macro 'RTE_NTUPLE_FLAGS_DST_IP' used to declare a constant; consider using a 'constexpr' constant
- Line 246: function-like macro 'RTE_ETH_FOREACH_MATCHING_DEV' used; consider a 'constexpr' template function
- Line 249: macro argument should be enclosed in parentheses
- Line 250: macro argument should be enclosed in parentheses
- Line 290: macro 'RTE_ETH_LINK_SPEED_AUTONEG' used to declare a constant; consider using a 'constexpr' constant
- Line 795: macro 'RTE_ETH_RSS_RETA_SIZE_64' used to declare a constant; consider using a 'constexpr' constant
- Line 2070: macro argument should be enclosed in parentheses
- Line 2071: macro argument should be enclosed in parentheses
- Line 2071: macro argument should be enclosed in parentheses
- Line 2086: function-like macro 'RTE_ETH_FOREACH_DEV' used; consider a 'constexpr' template function
- Line 2114: macro argument should be enclosed in parentheses
- Line 2115: macro argument should be enclosed in parentheses
- Line 2115: macro argument should be enclosed in parentheses
- Line 2141: function-like macro 'RTE_ETH_FOREACH_DEV_SIBLING' used; consider a 'constexpr' template function
- Line 2143: macro argument should be enclosed in parentheses
- Line 2144: macro argument should be enclosed in parentheses
- Line 2144: macro argument should be enclosed in parentheses
- Line 3603: flexible array members are a C99 feature
- Line 5864: variable 'p' is not initialized
- Line 5865: variable 'qd' is not initialized
- Line 5878: do not use array subscript when the index is not an integer constant expression
- Line 5903: redundant cast to the same type
- Line 5911: do not use C-style cast to convert between unrelated types
- Line 5936: variable 'qd' is not initialized
- Line 5949: do not use array subscript when the index is not an integer constant expression
- Line 5966: macro 'RTE_ETH_RX_DESC_AVAIL' used to declare a constant; consider using a 'constexpr' constant
- Line 6009: variable 'qd' is not initialized
- Line 6022: do not use array subscript when the index is not an integer constant expression
- Line 6038: macro 'RTE_ETH_TX_DESC_FULL' used to declare a constant; consider using a 'constexpr' constant
- Line 6080: variable 'qd' is not initialized
- Line 6093: do not use array subscript when the index is not an integer constant expression
- Line 6203: variable 'p' is not initialized
- Line 6204: variable 'qd' is not initialized
- Line 6217: do not use array subscript when the index is not an integer constant expression
- Line 6240: redundant cast to the same type
- Line 6250: do not use C-style cast to convert between unrelated types
- Line 6315: variable 'qd' is not initialized
- Line 6329: do not use array subscript when the index is not an integer constant expression
- Line 6: declaration uses identifier '_RTE_ETHDEV_CORE_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETHDEV_TRACE_FP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETHER_H_', which is a reserved identifier
- Line 25: macro 'RTE_ETHER_ADDR_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 84: do not use C-style cast to convert between unrelated types
- Line 85: do not use C-style cast to convert between unrelated types
- Line 102: do not use C-style cast to convert between unrelated types
- Line 149: do not use C-style cast to convert between unrelated types
- Line 333: do not use C-style cast to convert between unrelated types
- Line 358: variable 'nh' is not initialized
- Line 359: variable 'vh' is not initialized
- Line 369: do not use pointer arithmetic
- Line 378: do not use C-style cast to convert between unrelated types
- Line 9: declaration uses identifier '_RTE_GTP_H_', which is a reserved identifier
- Line 147: macro 'RTE_GTP_TYPE_IPV4' used to declare a constant; consider using a 'constexpr' constant
- Line 9: declaration uses identifier '_RTE_ICMP_H_', which is a reserved identifier
- Line 37: macro 'RTE_IP_ICMP_ECHO_REPLY' used to declare a constant; consider using a 'constexpr' constant
- Line 38: macro 'RTE_MAX_RXTX_INTR_VEC_ID' used to declare a constant; consider using a 'constexpr' constant
- Line 68: function-like macro 'RTE_IPV4' used; consider a 'constexpr' template function
- Line 164: variable 'end' is not initialized
- Line 166: do not use C-style cast to convert between unrelated types
- Line 195: declaration uses identifier '__rte_raw_cksum_reduce', which is a reserved identifier
- Line 215: variable 'sum' is not initialized
- Line 239: variable 'seg' is not initialized
- Line 240: variable 'buf' is not initialized
- Line 241: multiple declarations in a single statement reduces readability
- Line 241: variable 'tmp' is not initialized
- Line 242: multiple declarations in a single statement reduces readability
- Line 242: variable 'done' is not initialized
- Line 246: do not use pointer arithmetic
- Line 263: use nullptr
- Line 266: do not use pointer arithmetic
- Line 342: variable 'l3_len' is not initialized
- Line 362: declaration uses identifier '__rte_ipv4_udptcp_cksum', which is a reserved identifier
- Line 364: variable 'cksum' is not initialized
- Line 365: multiple declarations in a single statement reduces readability
- Line 365: variable 'l4_len' is not initialized
- Line 366: variable 'ip_hdr_len' is not initialized
- Line 417: declaration uses identifier '__rte_ipv4_udptcp_cksum_mbuf', which is a reserved identifier
- Line 421: variable 'raw_cksum' is not initialized
- Line 422: variable 'cksum' is not initialized
- Line 543: macro 'RTE_IPV6_HDR_FL_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 596: declaration uses identifier '__rte_ipv6_udptcp_cksum', which is a reserved identifier
- Line 598: variable 'cksum' is not initialized
- Line 599: variable 'l4_len' is not initialized
- Line 646: declaration uses identifier '__rte_ipv6_udptcp_cksum_mbuf', which is a reserved identifier
- Line 650: variable 'raw_cksum' is not initialized
- Line 651: variable 'cksum' is not initialized
- Line 765: macro 'RTE_IPV6_EHDR_MF_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 813: do not use pointer arithmetic
- Line 84: macro 'RTE_L2TPV2_MSG_TYPE_CONTROL' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_LCORE_H_', which is a reserved identifier
- Line 218: function-like macro 'RTE_LCORE_FOREACH' used; consider a 'constexpr' template function
- Line 220: macro argument should be enclosed in parentheses
- Line 221: macro argument should be enclosed in parentheses
- Line 226: function-like macro 'RTE_LCORE_FOREACH_WORKER' used; consider a 'constexpr' template function
- Line 228: macro argument should be enclosed in parentheses
- Line 229: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_LOG_H_', which is a reserved identifier
- Line 29: macro 'RTE_LOGTYPE_EAL' used to declare a constant; consider using a 'constexpr' constant
- Line 370: macro argument should be enclosed in parentheses
- Line 371: macro argument should be enclosed in parentheses
- Line 387: function-like macro 'RTE_LOG_REGISTER' used; consider a 'constexpr' template function
- Line 218: do not use C-style cast to convert between unrelated types
- Line 318: do not use C-style cast to convert between unrelated types
- Line 348: declaration uses identifier '__rte_mbuf_sanity_check', which is a reserved identifier
- Line 348: function-like macro '__rte_mbuf_sanity_check' used; consider a 'constexpr' template function
- Line 382: declaration uses identifier '__rte_mbuf_refcnt_update', which is a reserved identifier
- Line 510: function-like macro 'RTE_MBUF_PREFETCH_TO_FREE' used; consider a 'constexpr' template function
- Line 575: function-like macro 'MBUF_RAW_ALLOC_CHECK' used; consider a 'constexpr' template function
- Line 600: do not use C-style cast to convert between unrelated types
- Line 825: variable 'mbp_priv' is not initialized
- Line 827: do not use C-style cast to convert between unrelated types
- Line 848: do not use C-style cast to convert between unrelated types
- Line 907: variable 'm' is not initialized
- Line 908: use nullptr
- Line 931: variable 'rc' is not initialized
- Line 933: do not use C-style cast to convert between unrelated types
- Line 1006: do not use C-style cast to convert between unrelated types
- Line 1009: do not use C-style cast to convert between unrelated types
- Line 1014: do not use C-style cast to convert between unrelated types
- Line 1184: use nullptr
- Line 1200: declaration uses identifier '__rte_pktmbuf_free_extbuf', which is a reserved identifier
- Line 1216: declaration uses identifier '__rte_pktmbuf_free_direct', which is a reserved identifier
- Line 1218: variable 'md' is not initialized
- Line 1225: use nullptr
- Line 1253: multiple declarations in a single statement reduces readability
- Line 1253: variable 'buf_len' is not initialized
- Line 1254: variable 'priv_size' is not initialized
- Line 1281: do not use C-style cast to convert between unrelated types
- Line 1304: variable 'shinfo' is not initialized
- Line 1353: use nullptr
- Line 1356: use nullptr
- Line 1357: use nullptr
- Line 1370: use nullptr
- Line 1373: use nullptr
- Line 1374: use nullptr
- Line 1381: use nullptr
- Line 1397: use nullptr
- Line 1412: variable 'm_next' is not initialized
- Line 1414: use nullptr
- Line 1417: use nullptr
- Line 1500: use nullptr
- Line 1543: use nullptr
- Line 1556: function-like macro 'rte_pktmbuf_pkt_len' used; consider a 'constexpr' template function
- Line 1598: do not use C-style cast to convert between unrelated types
- Line 1619: variable 'm_last' is not initialized
- Line 1625: use nullptr
- Line 1627: do not use C-style cast to convert between unrelated types
- Line 1660: do not use C-style cast to convert between unrelated types
- Line 1710: declaration uses identifier '__rte_pktmbuf_read', which is a reserved identifier
- Line 1737: do not use pointer arithmetic
- Line 1863: declaration uses identifier '__rte_pktmbuf_linearize', which is a reserved identifier
- Line 1996: compound literals are a C99-specific feature
- Line 81: macro 'RTE_MBUF_F_RX_IP_CKSUM_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 80: macro 'RTE_MBUF_DYN_NAMESIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 75: macro 'RTE_PTYPE_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 72: do not use C-style cast to convert between unrelated types
- Line 428: variable 'bits' is not initialized
- Line 441: do not use C-style cast to convert between unrelated types
- Line 38: macro replacement list should be enclosed in parentheses
- Line 609: macro 'RTE_MEM_EVENT_CALLBACK_NAME_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 57: macro 'RTE_MEMPOOL_HEADER_COOKIE1' used to declare a constant; consider using a 'constexpr' constant
- Line 773: variable 'ret' is not initialized
- Line 802: variable 'ops' is not initialized
- Line 827: variable 'ops' is not initialized
- Line 828: variable 'ret' is not initialized
- Line 970: macro argument should be enclosed in parentheses
- Line 1318: use nullptr
- Line 1321: use nullptr
- Line 1324: do not use pointer arithmetic
- Line 1342: use nullptr
- Line 1365: variable 'cache_objs' is not initialized
- Line 1368: use nullptr
- Line 1387: do not use array subscript when the index is not an integer constant expression
- Line 1494: variable 'ret' is not initialized
- Line 1496: multiple declarations in a single statement reduces readability
- Line 1496: variable 'len' is not initialized
- Line 1497: variable 'cache_objs' is not initialized
- Line 1500: use nullptr
- Line 1505: do not use array subscript when the index is not an integer constant expression
- Line 1567: use nullptr
- Line 1603: variable 'ret' is not initialized
- Line 1636: variable 'cache' is not initialized
- Line 1693: variable 'ret' is not initialized
- Line 1790: variable 'hdr' is not initialized
- Line 1791: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_MEMZONE_H_', which is a reserved identifier
- Line 33: macro 'RTE_MEMZONE_2MB' used to declare a constant; consider using a 'constexpr' constant
- Line 418: multiple declarations in a single statement reduces readability
- Line 418: variable 'n_periods' is not initialized
- Line 418: variable 'tc' is not initialized
- Line 418: variable 'te' is not initialized
- Line 460: multiple declarations in a single statement reduces readability
- Line 460: variable 'n_periods' is not initialized
- Line 460: variable 'tc' is not initialized
- Line 460: variable 'te' is not initialized
- Line 501: multiple declarations in a single statement reduces readability
- Line 501: variable 'time_diff_tp' is not initialized
- Line 501: variable 'n_periods_tc' is not initialized
- Line 501: variable 'n_periods_tp' is not initialized
- Line 501: variable 'tc' is not initialized
- Line 501: variable 'tp' is not initialized
- Line 544: multiple declarations in a single statement reduces readability
- Line 544: variable 'time_diff_tp' is not initialized
- Line 544: variable 'n_periods_tc' is not initialized
- Line 544: variable 'n_periods_tp' is not initialized
- Line 544: variable 'tc' is not initialized
- Line 544: variable 'tp' is not initialized
- Line 587: multiple declarations in a single statement reduces readability
- Line 587: variable 'time_diff_te' is not initialized
- Line 587: variable 'n_periods_tc' is not initialized
- Line 587: variable 'n_periods_te' is not initialized
- Line 587: variable 'tc' is not initialized
- Line 587: variable 'te' is not initialized
- Line 631: multiple declarations in a single statement reduces readability
- Line 631: variable 'time_diff_te' is not initialized
- Line 631: variable 'n_periods_tc' is not initialized
- Line 631: variable 'n_periods_te' is not initialized
- Line 631: variable 'tc' is not initialized
- Line 631: variable 'te' is not initialized
- Line 6: declaration uses identifier '_RTE_OS_H_', which is a reserved identifier
- Line 21: function-like macro 'RTE_TAILQ_HEAD' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_PCI_DEV_DEFS_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PER_LCORE_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_POWER_INTRINSIC_X86_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PPP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PREFETCH_X86_64_H_', which is a reserved identifier
- Line 18: do not use C-style cast to convert between unrelated types
- Line 11: declaration uses identifier '_RTE_RING_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_CORE_H_', which is a reserved identifier
- Line 40: macro 'RTE_TAILQ_RING_NAME' used to declare a constant; consider using a 'constexpr' constant
- Line 96: declaration uses identifier '__rte_ring_hts_pos', which is a reserved identifier
- Line 153: macro 'RING_F_SP_ENQ' used to declare a constant; consider using a 'constexpr' constant
- Line 214: use nullptr
- Line 240: use nullptr
- Line 264: use nullptr
- Line 290: use nullptr
- Line 396: use nullptr
- Line 424: use nullptr
- Line 448: use nullptr
- Line 475: use nullptr
- Line 582: use nullptr
- Line 692: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_ELEM_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_enqueue_elems_32', which is a reserved identifier
- Line 17: variable 'i' is not initialized
- Line 18: use auto when initializing with a cast to avoid duplicating the type name
- Line 18: do not use C-style cast to convert between unrelated types
- Line 19: do not use C-style cast to convert between unrelated types
- Line 60: variable 'i' is not initialized
- Line 63: use auto when initializing with a cast to avoid duplicating the type name
- Line 63: do not use C-style cast to convert between unrelated types
- Line 64: do not use C-style cast to convert between unrelated types
- Line 93: variable 'i' is not initialized
- Line 96: use auto when initializing with a cast to avoid duplicating the type name
- Line 96: do not use C-style cast to convert between unrelated types
- Line 97: do not use C-style cast to convert between unrelated types
- Line 134: multiple declarations in a single statement reduces readability
- Line 134: variable 'scale' is not initialized
- Line 134: variable 'nr_idx' is not initialized
- Line 134: variable 'nr_num' is not initialized
- Line 134: variable 'nr_size' is not initialized
- Line 148: declaration uses identifier '__rte_ring_dequeue_elems_32', which is a reserved identifier
- Line 151: variable 'i' is not initialized
- Line 152: use auto when initializing with a cast to avoid duplicating the type name
- Line 152: do not use C-style cast to convert between unrelated types
- Line 153: do not use C-style cast to convert between unrelated types
- Line 194: variable 'i' is not initialized
- Line 197: use auto when initializing with a cast to avoid duplicating the type name
- Line 197: do not use C-style cast to convert between unrelated types
- Line 198: do not use C-style cast to convert between unrelated types
- Line 227: variable 'i' is not initialized
- Line 230: use auto when initializing with a cast to avoid duplicating the type name
- Line 230: do not use C-style cast to convert between unrelated types
- Line 231: do not use C-style cast to convert between unrelated types
- Line 264: multiple declarations in a single statement reduces readability
- Line 264: variable 'scale' is not initialized
- Line 264: variable 'nr_idx' is not initialized
- Line 264: variable 'nr_num' is not initialized
- Line 264: variable 'nr_size' is not initialized
- Line 315: declaration uses identifier '__rte_ring_do_enqueue_elem', which is a reserved identifier
- Line 320: multiple declarations in a single statement reduces readability
- Line 320: variable 'prod_next' is not initialized
- Line 321: variable 'free_entries' is not initialized
- Line 332: use nullptr
- Line 362: declaration uses identifier '__rte_ring_do_dequeue_elem', which is a reserved identifier
- Line 367: multiple declarations in a single statement reduces readability
- Line 367: variable 'cons_next' is not initialized
- Line 368: variable 'entries' is not initialized
- Line 380: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_GENERIC_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_update_tail', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_move_prod_head', which is a reserved identifier
- Line 62: variable 'success' is not initialized
- Line 125: declaration uses identifier '__rte_ring_move_cons_head', which is a reserved identifier
- Line 131: variable 'success' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_HTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_HTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_hts_update_tail', which is a reserved identifier
- Line 28: variable 'tail' is not initialized
- Line 42: declaration uses identifier '__rte_ring_hts_head_wait', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_hts_move_prod_head', which is a reserved identifier
- Line 59: variable 'n' is not initialized
- Line 60: multiple declarations in a single statement reduces readability
- Line 113: declaration uses identifier '__rte_ring_hts_move_cons_head', which is a reserved identifier
- Line 117: variable 'n' is not initialized
- Line 118: multiple declarations in a single statement reduces readability
- Line 187: declaration uses identifier '__rte_ring_do_hts_enqueue_elem', which is a reserved identifier
- Line 191: multiple declarations in a single statement reduces readability
- Line 191: variable 'head' is not initialized
- Line 200: use nullptr
- Line 228: declaration uses identifier '__rte_ring_do_hts_dequeue_elem', which is a reserved identifier
- Line 232: multiple declarations in a single statement reduces readability
- Line 232: variable 'head' is not initialized
- Line 241: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_H_', which is a reserved identifier
- Line 170: variable 'tail' is not initialized
- Line 333: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ELEM_PVT_H_', which is a reserved identifier
- Line 31: declaration uses identifier '__rte_ring_st_get_tail', which is a reserved identifier
- Line 34: multiple declarations in a single statement reduces readability
- Line 34: variable 'n' is not initialized
- Line 34: variable 't' is not initialized
- Line 53: declaration uses identifier '__rte_ring_st_set_head_tail', which is a reserved identifier
- Line 56: variable 'pos' is not initialized
- Line 75: declaration uses identifier '__rte_ring_hts_get_tail', which is a reserved identifier
- Line 78: variable 'n' is not initialized
- Line 97: declaration uses identifier '__rte_ring_hts_set_head_tail', which is a reserved identifier
- Line 114: declaration uses identifier '__rte_ring_do_enqueue_start', which is a reserved identifier
- Line 117: multiple declarations in a single statement reduces readability
- Line 117: variable 'head' is not initialized
- Line 117: variable 'next' is not initialized
- Line 137: use nullptr
- Line 147: declaration uses identifier '__rte_ring_do_dequeue_start', which is a reserved identifier
- Line 151: multiple declarations in a single statement reduces readability
- Line 151: variable 'head' is not initialized
- Line 151: variable 'next' is not initialized
- Line 174: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ZC_H_', which is a reserved identifier
- Line 98: declaration uses identifier '__rte_ring_get_elem_addr', which is a reserved identifier
- Line 101: multiple declarations in a single statement reduces readability
- Line 101: variable 'scale' is not initialized
- Line 101: variable 'nr_idx' is not initialized
- Line 102: use auto when initializing with a cast to avoid duplicating the type name
- Line 102: do not use C-style cast to convert between unrelated types
- Line 124: declaration uses identifier '__rte_ring_do_enqueue_zc_elem_start', which is a reserved identifier
- Line 128: multiple declarations in a single statement reduces readability
- Line 128: variable 'head' is not initialized
- Line 128: variable 'next' is not initialized
- Line 151: use nullptr
- Line 291: variable 'tail' is not initialized
- Line 331: declaration uses identifier '__rte_ring_do_dequeue_zc_elem_start', which is a reserved identifier
- Line 335: multiple declarations in a single statement reduces readability
- Line 335: variable 'head' is not initialized
- Line 335: variable 'next' is not initialized
- Line 359: use nullptr
- Line 497: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_RTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_RTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_rts_update_tail', which is a reserved identifier
- Line 27: multiple declarations in a single statement reduces readability
- Line 53: declaration uses identifier '__rte_ring_rts_head_wait', which is a reserved identifier
- Line 56: variable 'max' is not initialized
- Line 70: declaration uses identifier '__rte_ring_rts_move_prod_head', which is a reserved identifier
- Line 74: variable 'n' is not initialized
- Line 75: multiple declarations in a single statement reduces readability
- Line 128: declaration uses identifier '__rte_ring_rts_move_cons_head', which is a reserved identifier
- Line 132: variable 'n' is not initialized
- Line 133: multiple declarations in a single statement reduces readability
- Line 202: declaration uses identifier '__rte_ring_do_rts_enqueue_elem', which is a reserved identifier
- Line 206: multiple declarations in a single statement reduces readability
- Line 206: variable 'head' is not initialized
- Line 215: use nullptr
- Line 243: declaration uses identifier '__rte_ring_do_rts_dequeue_elem', which is a reserved identifier
- Line 247: multiple declarations in a single statement reduces readability
- Line 247: variable 'head' is not initialized
- Line 256: use nullptr
- Line 6: declaration uses identifier '_RTE_RTM_H_', which is a reserved identifier
- Line 6: macro '_RTE_RTM_H_' used to declare a constant; consider using a 'constexpr' constant
- Line 26: function-like macro 'RTE_XABORT_CODE' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_RWLOCK_X86_64_H_', which is a reserved identifier
- Line 15: declaration uses identifier '_RTE_SCTP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_SPINLOCK_X86_64_H_', which is a reserved identifier
- Line 80: multiple declarations in a single statement reduces readability
- Line 80: variable 'retries' is not initialized
- Line 109: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type 'int' is implementation-defined
- Line 74: do not use pointer arithmetic
- Line 43: macro 'RTE_TCP_CWR_FLAG' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_TRACE_POINT_H_', which is a reserved identifier
- Line 78: variadic macro 'RTE_TRACE_POINT' used; consider using a 'constexpr' variadic template function
- Line 151: macro '__RTE_TRACE_EMIT_STRING_LEN_MAX' used to declare a constant; consider using a 'constexpr' constant
- Line 153: declaration uses identifier '__RTE_TRACE_EVENT_HEADER_SZ', which is a reserved identifier
- Line 211: declaration uses identifier '__rte_trace_point_fp_is_enabled', which is a reserved identifier
- Line 227: declaration uses identifier '__rte_trace_mem_per_thread_alloc', which is a reserved identifier
- Line 245: declaration uses identifier '__rte_trace_point_emit_field', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_trace_point_register', which is a reserved identifier
- Line 379: declaration uses identifier '__rte_trace_point_emit_header_generic', which is a reserved identifier
- Line 379: function-like macro '__rte_trace_point_emit_header_generic' used; consider a 'constexpr' template function
- Line 380: function-like macro '__rte_trace_point_emit_header_fp' used; consider a 'constexpr' template function
- Line 11: declaration uses identifier '_RTE_UUID_H_', which is a reserved identifier
- Line 24: do not declare C-style arrays, use std::array<> instead
- Line 6: declaration uses identifier '_RTE_VXLAN_H_', which is a reserved identifier
- Line 25: macro 'RTE_VXLAN_DEFAULT_PORT' used to declare a constant; consider using a 'constexpr' constant
- Line 15: nested namespaces can be concatenated
- Line 37: use auto when initializing with a cast to avoid duplicating the type name
- Line 37: do not use C-style cast to convert between unrelated types
- Line 38: use auto when initializing with a cast to avoid duplicating the type name
- Line 38: do not use C-style cast to convert between unrelated types
- Line 39: variable 'v' is not initialized
- Line 48: use auto when initializing with a cast to avoid duplicating the type name
- Line 48: do not use C-style cast to convert between unrelated types
- Line 49: use auto when initializing with a cast to avoid duplicating the type name
- Line 49: do not use C-style cast to convert between unrelated types
- Line 50: do not use pointer arithmetic
- Line 50: do not use pointer arithmetic
- Line 51: do not use pointer arithmetic
- Line 51: do not use pointer arithmetic
- Line 58: use auto when initializing with a cast to avoid duplicating the type name
- Line 58: do not use C-style cast to convert between unrelated types
- Line 59: use auto when initializing with a cast to avoid duplicating the type name
- Line 59: do not use C-style cast to convert between unrelated types
- Line 60: variable 'v' is not initialized
- Line 69: use auto when initializing with a cast to avoid duplicating the type name
- Line 69: do not use C-style cast to convert between unrelated types
- Line 70: use auto when initializing with a cast to avoid duplicating the type name
- Line 70: do not use C-style cast to convert between unrelated types
- Line 15: nested namespaces can be concatenated
- Line 20: do not declare C-style arrays, use std::array<> instead
- Line 35: nested namespaces can be concatenated
- Line 18: nested namespaces can be concatenated
- Line 25: do not use pointer arithmetic
- Line 25: do not use C-style cast to convert between unrelated types
- Line 26: use auto when initializing with a cast to avoid duplicating the type name
- Line 26: do not use C-style cast to convert between unrelated types
- Line 26: C-style casts are discouraged; use reinterpret_cast
- Line 26: do not use pointer arithmetic
- Line 56: do not declare C-style arrays, use std::array<> instead
- Line 80: do not use pointer arithmetic
- Line 80: do not use C-style cast to convert between unrelated types
- Line 81: use auto when initializing with a cast to avoid duplicating the type name
- Line 81: do not use C-style cast to convert between unrelated types
- Line 81: C-style casts are discouraged; use reinterpret_cast
- Line 81: do not use pointer arithmetic
- Line 120: do not declare C-style arrays, use std::array<> instead
src/udp/PacketCtor.cpp
Errors
- Line 0: The standard copyright message wasn't found.
- Line 60: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 121: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 123: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 188: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 195: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 3: Found other header after system header. Should be: PacketCtor.hh, other non-system headers, system headers.
- Line 4: Found other header after system header. Should be: PacketCtor.hh, other non-system headers, system headers.
- Line 9: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 45: Increment/decrement operator should appear alone on its line unless in a while/for loop head
- Line 50: Increment/decrement operator should appear alone on its line unless in a while/for loop head
- Line 56: Increment/decrement operator should appear alone on its line unless in a while/for loop head
- Line 77: Using C-style cast. Use one of the C++ cast operators instead
- Line 83: Complex multi-line /*...*/-style comment found. Lint may give bogus warnings. Consider replacing these with //-style comments, with #if 0...#endif, or with more clearly structured multi-line comments.
- Line 103: Missing date in TODO comment; it should appear on same line as the TODO, preferably in a form like "Apr-14-2020"
- Line 103: Missing author name in TODO comment; it should appear on the same line as the TODO, as Firstname Lastname
- Line 103: Missing email address in TODO comment; it should appear on the same line as the TODO
- Line 107: Complex multi-line /*...*/-style comment found. Lint may give bogus warnings. Consider replacing these with //-style comments, with #if 0...#endif, or with more clearly structured multi-line comments.
- Line 124: Using C-style cast. Use one of the C++ cast operators instead
- Line 141: Using C-style cast. Use one of the C++ cast operators instead
- Line 142: Using C-style cast. Use one of the C++ cast operators instead
- Line 171: Complex multi-line /*...*/-style comment found. Lint may give bogus warnings. Consider replacing these with //-style comments, with #if 0...#endif, or with more clearly structured multi-line comments.
- Line 202: Add #include
for string
Warnings
- Line 6: declaration uses identifier '_RTE_ATOMIC_H_', which is a reserved identifier
- Line 119: function-like macro 'rte_compiler_barrier' used; consider a 'constexpr' template function
- Line 30: macro 'RTE_BIG_ENDIAN' used to declare a constant; consider using a 'constexpr' constant
- Line 93: consider replacing 'unsigned long' with 'uint64'
- Line 19: macro 'MS_PER_S' used to declare a constant; consider using a 'constexpr' constant
- Line 132: function-like macro 'RTE_WAIT_UNTIL_MASKED' used; consider a 'constexpr' template function
- Line 135: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_POWER_INTRINSIC_H_', which is a reserved identifier
- Line 22: macro 'RTE_POWER_MONITOR_OPAQUE_SZ' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_RWLOCK_H_', which is a reserved identifier
- Line 52: macro 'RTE_RWLOCK_WAIT' used to declare a constant; consider using a 'constexpr' constant
- Line 90: converting integer literal to bool, use bool literal instead
- Line 123: variable 'x' is not initialized
- Line 170: variable 'x' is not initialized
- Line 175: converting integer literal to bool, use bool literal instead
- Line 190: variable 'x' is not initialized
- Line 192: converting integer literal to bool, use bool literal instead
- Line 198: converting integer literal to bool, use bool literal instead
- Line 6: declaration uses identifier '_RTE_SPINLOCK_H_', which is a reserved identifier
- Line 223: increment of object of volatile-qualified type 'volatile int' is deprecated
- Line 6: declaration uses identifier '_RTE_ATOMIC_X86_H_', which is a reserved identifier
- Line 21: macro 'MPLOCKED' used to declare a constant; consider using a 'constexpr' constant
- Line 133: do not use C-style cast to convert between unrelated types
- Line 174: variable 'ret' is not initialized
- Line 190: variable 'res' is not initialized
- Line 219: do not use C-style cast to convert between unrelated types
- Line 260: variable 'ret' is not initialized
- Line 17: declaration uses identifier '_RTE_ATOMIC_X86_64_H_', which is a reserved identifier
- Line 29: variable 'res' is not initialized
- Line 145: variable 'ret' is not initialized
- Line 160: variable 'ret' is not initialized
- Line 174: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_BITOPS_H_', which is a reserved identifier
- Line 30: function-like macro 'RTE_BIT64' used; consider a 'constexpr' template function
- Line 28: function-like macro 'likely' used; consider a 'constexpr' template function
- Line 51: function-like macro 'rte_bswap16' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_COMMON_H_', which is a reserved identifier
- Line 50: macro 'RTE_CC_IS_GNU' used to declare a constant; consider using a 'constexpr' constant
- Line 88: declaration uses identifier '__rte_may_alias', which is a reserved identifier
- Line 91: declaration uses identifier '__rte_deprecated', which is a reserved identifier
- Line 92: declaration uses identifier '__rte_deprecated_msg', which is a reserved identifier
- Line 92: function-like macro '__rte_deprecated_msg' used; consider a 'constexpr' template function
- Line 108: declaration uses identifier '__rte_weak', which is a reserved identifier
- Line 113: declaration uses identifier '__rte_used', which is a reserved identifier
- Line 120: declaration uses identifier '__rte_unused', which is a reserved identifier
- Line 126: declaration uses identifier '__rte_restrict', which is a reserved identifier
- Line 135: function-like macro 'RTE_SET_USED' used; consider a 'constexpr' template function
- Line 148: function-like macro '__rte_format_printf' used; consider a 'constexpr' template function
- Line 158: declaration uses identifier '__rte_alloc_size', which is a reserved identifier
- Line 158: variadic macro '__rte_alloc_size' used; consider using a 'constexpr' variadic template function
- Line 164: macro 'RTE_PRIORITY_LOG' used to declare a constant; consider using a 'constexpr' constant
- Line 250: declaration uses identifier '__rte_warn_unused_result', which is a reserved identifier
- Line 260: declaration uses identifier '__rte_noinline', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_hot', which is a reserved identifier
- Line 270: declaration uses identifier '__rte_cold', which is a reserved identifier
- Line 282: declaration uses identifier '__rte_no_asan', which is a reserved identifier
- Line 290: function-like macro 'RTE_PTR_ADD' used; consider a 'constexpr' template function
- Line 443: declaration uses identifier '__rte_cache_min_aligned', which is a reserved identifier
- Line 464: do not declare C-style arrays, use std::array<> instead
- Line 824: macro argument should be enclosed in parentheses
- Line 837: function-like macro 'RTE_SIZEOF_FIELD' used; consider a 'constexpr' template function
- Line 841: function-like macro 'RTE_STR' used; consider a 'constexpr' template function
- Line 15: declaration uses identifier '__rte_experimental', which is a reserved identifier
- Line 33: declaration uses identifier '__rte_internal', which is a reserved identifier
- Line 13: declaration uses identifier '_RTE_CONFIG_H_', which is a reserved identifier
- Line 19: macro 'RTE_EXEC_ENV_LINUXAPP' used to declare a constant; consider using a 'constexpr' constant
- Line 7: declaration uses identifier '_RTE_CYCLES_X86_64_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_DEBUG_H_', which is a reserved identifier
- Line 43: variadic macro 'rte_panic' used; consider using a 'constexpr' variadic template function
- Line 46: function-like macro 'RTE_FUNC_PTR_OR_ERR_RET' used; consider a 'constexpr' template function
- Line 384: macro argument should be enclosed in parentheses
- Line 385: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_DEV_INFO_H_', which is a reserved identifier
- Line 44: macro 'RTE_ETH_MODULE_SFF_8079' used to declare a constant; consider using a 'constexpr' constant
- Line 35: macro 'RTE_DEVARGS_KEY_BUS' used to declare a constant; consider using a 'constexpr' constant
- Line 265: macro argument should be enclosed in parentheses
- Line 266: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_EAL_H_', which is a reserved identifier
- Line 28: macro 'RTE_MAGIC' used to declare a constant; consider using a 'constexpr' constant
- Line 28: macro 'RTE_ECPRI_REV_UP_TO_20' used to declare a constant; consider using a 'constexpr' constant
- Line 21: macro 'RTE_INTR_EVENT_ADD' used to declare a constant; consider using a 'constexpr' constant
- Line 12: declaration uses identifier '_RTE_ERRNO_H_', which is a reserved identifier
- Line 49: declaration uses identifier '__ELASTERROR', which is a reserved identifier
- Line 49: macro '__ELASTERROR' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_ESP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETH_CTRL_H_', which is a reserved identifier
- Line 30: macro 'RTE_NTUPLE_FLAGS_DST_IP' used to declare a constant; consider using a 'constexpr' constant
- Line 246: function-like macro 'RTE_ETH_FOREACH_MATCHING_DEV' used; consider a 'constexpr' template function
- Line 249: macro argument should be enclosed in parentheses
- Line 250: macro argument should be enclosed in parentheses
- Line 290: macro 'RTE_ETH_LINK_SPEED_AUTONEG' used to declare a constant; consider using a 'constexpr' constant
- Line 795: macro 'RTE_ETH_RSS_RETA_SIZE_64' used to declare a constant; consider using a 'constexpr' constant
- Line 2070: macro argument should be enclosed in parentheses
- Line 2071: macro argument should be enclosed in parentheses
- Line 2071: macro argument should be enclosed in parentheses
- Line 2086: function-like macro 'RTE_ETH_FOREACH_DEV' used; consider a 'constexpr' template function
- Line 2114: macro argument should be enclosed in parentheses
- Line 2115: macro argument should be enclosed in parentheses
- Line 2115: macro argument should be enclosed in parentheses
- Line 2141: function-like macro 'RTE_ETH_FOREACH_DEV_SIBLING' used; consider a 'constexpr' template function
- Line 2143: macro argument should be enclosed in parentheses
- Line 2144: macro argument should be enclosed in parentheses
- Line 2144: macro argument should be enclosed in parentheses
- Line 3603: flexible array members are a C99 feature
- Line 5864: variable 'p' is not initialized
- Line 5865: variable 'qd' is not initialized
- Line 5878: do not use array subscript when the index is not an integer constant expression
- Line 5903: redundant cast to the same type
- Line 5911: do not use C-style cast to convert between unrelated types
- Line 5936: variable 'qd' is not initialized
- Line 5949: do not use array subscript when the index is not an integer constant expression
- Line 5966: macro 'RTE_ETH_RX_DESC_AVAIL' used to declare a constant; consider using a 'constexpr' constant
- Line 6009: variable 'qd' is not initialized
- Line 6022: do not use array subscript when the index is not an integer constant expression
- Line 6038: macro 'RTE_ETH_TX_DESC_FULL' used to declare a constant; consider using a 'constexpr' constant
- Line 6080: variable 'qd' is not initialized
- Line 6093: do not use array subscript when the index is not an integer constant expression
- Line 6203: variable 'p' is not initialized
- Line 6204: variable 'qd' is not initialized
- Line 6217: do not use array subscript when the index is not an integer constant expression
- Line 6240: redundant cast to the same type
- Line 6250: do not use C-style cast to convert between unrelated types
- Line 6315: variable 'qd' is not initialized
- Line 6329: do not use array subscript when the index is not an integer constant expression
- Line 6: declaration uses identifier '_RTE_ETHDEV_CORE_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETHDEV_TRACE_FP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETHER_H_', which is a reserved identifier
- Line 25: macro 'RTE_ETHER_ADDR_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 84: do not use C-style cast to convert between unrelated types
- Line 85: do not use C-style cast to convert between unrelated types
- Line 102: do not use C-style cast to convert between unrelated types
- Line 149: do not use C-style cast to convert between unrelated types
- Line 333: do not use C-style cast to convert between unrelated types
- Line 358: variable 'nh' is not initialized
- Line 359: variable 'vh' is not initialized
- Line 369: do not use pointer arithmetic
- Line 378: do not use C-style cast to convert between unrelated types
- Line 9: declaration uses identifier '_RTE_GTP_H_', which is a reserved identifier
- Line 147: macro 'RTE_GTP_TYPE_IPV4' used to declare a constant; consider using a 'constexpr' constant
- Line 9: declaration uses identifier '_RTE_ICMP_H_', which is a reserved identifier
- Line 37: macro 'RTE_IP_ICMP_ECHO_REPLY' used to declare a constant; consider using a 'constexpr' constant
- Line 38: macro 'RTE_MAX_RXTX_INTR_VEC_ID' used to declare a constant; consider using a 'constexpr' constant
- Line 68: function-like macro 'RTE_IPV4' used; consider a 'constexpr' template function
- Line 164: variable 'end' is not initialized
- Line 166: do not use C-style cast to convert between unrelated types
- Line 195: declaration uses identifier '__rte_raw_cksum_reduce', which is a reserved identifier
- Line 215: variable 'sum' is not initialized
- Line 239: variable 'seg' is not initialized
- Line 240: variable 'buf' is not initialized
- Line 241: multiple declarations in a single statement reduces readability
- Line 241: variable 'tmp' is not initialized
- Line 242: multiple declarations in a single statement reduces readability
- Line 242: variable 'done' is not initialized
- Line 246: do not use pointer arithmetic
- Line 263: use nullptr
- Line 266: do not use pointer arithmetic
- Line 342: variable 'l3_len' is not initialized
- Line 362: declaration uses identifier '__rte_ipv4_udptcp_cksum', which is a reserved identifier
- Line 364: variable 'cksum' is not initialized
- Line 365: multiple declarations in a single statement reduces readability
- Line 365: variable 'l4_len' is not initialized
- Line 366: variable 'ip_hdr_len' is not initialized
- Line 417: declaration uses identifier '__rte_ipv4_udptcp_cksum_mbuf', which is a reserved identifier
- Line 421: variable 'raw_cksum' is not initialized
- Line 422: variable 'cksum' is not initialized
- Line 543: macro 'RTE_IPV6_HDR_FL_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 596: declaration uses identifier '__rte_ipv6_udptcp_cksum', which is a reserved identifier
- Line 598: variable 'cksum' is not initialized
- Line 599: variable 'l4_len' is not initialized
- Line 646: declaration uses identifier '__rte_ipv6_udptcp_cksum_mbuf', which is a reserved identifier
- Line 650: variable 'raw_cksum' is not initialized
- Line 651: variable 'cksum' is not initialized
- Line 765: macro 'RTE_IPV6_EHDR_MF_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 813: do not use pointer arithmetic
- Line 84: macro 'RTE_L2TPV2_MSG_TYPE_CONTROL' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_LCORE_H_', which is a reserved identifier
- Line 218: function-like macro 'RTE_LCORE_FOREACH' used; consider a 'constexpr' template function
- Line 220: macro argument should be enclosed in parentheses
- Line 221: macro argument should be enclosed in parentheses
- Line 226: function-like macro 'RTE_LCORE_FOREACH_WORKER' used; consider a 'constexpr' template function
- Line 228: macro argument should be enclosed in parentheses
- Line 229: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_LOG_H_', which is a reserved identifier
- Line 29: macro 'RTE_LOGTYPE_EAL' used to declare a constant; consider using a 'constexpr' constant
- Line 370: macro argument should be enclosed in parentheses
- Line 371: macro argument should be enclosed in parentheses
- Line 387: function-like macro 'RTE_LOG_REGISTER' used; consider a 'constexpr' template function
- Line 218: do not use C-style cast to convert between unrelated types
- Line 318: do not use C-style cast to convert between unrelated types
- Line 348: declaration uses identifier '__rte_mbuf_sanity_check', which is a reserved identifier
- Line 348: function-like macro '__rte_mbuf_sanity_check' used; consider a 'constexpr' template function
- Line 382: declaration uses identifier '__rte_mbuf_refcnt_update', which is a reserved identifier
- Line 510: function-like macro 'RTE_MBUF_PREFETCH_TO_FREE' used; consider a 'constexpr' template function
- Line 575: function-like macro 'MBUF_RAW_ALLOC_CHECK' used; consider a 'constexpr' template function
- Line 600: do not use C-style cast to convert between unrelated types
- Line 825: variable 'mbp_priv' is not initialized
- Line 827: do not use C-style cast to convert between unrelated types
- Line 848: do not use C-style cast to convert between unrelated types
- Line 907: variable 'm' is not initialized
- Line 908: use nullptr
- Line 931: variable 'rc' is not initialized
- Line 933: do not use C-style cast to convert between unrelated types
- Line 1006: do not use C-style cast to convert between unrelated types
- Line 1009: do not use C-style cast to convert between unrelated types
- Line 1014: do not use C-style cast to convert between unrelated types
- Line 1184: use nullptr
- Line 1200: declaration uses identifier '__rte_pktmbuf_free_extbuf', which is a reserved identifier
- Line 1216: declaration uses identifier '__rte_pktmbuf_free_direct', which is a reserved identifier
- Line 1218: variable 'md' is not initialized
- Line 1225: use nullptr
- Line 1253: multiple declarations in a single statement reduces readability
- Line 1253: variable 'buf_len' is not initialized
- Line 1254: variable 'priv_size' is not initialized
- Line 1281: do not use C-style cast to convert between unrelated types
- Line 1304: variable 'shinfo' is not initialized
- Line 1353: use nullptr
- Line 1356: use nullptr
- Line 1357: use nullptr
- Line 1370: use nullptr
- Line 1373: use nullptr
- Line 1374: use nullptr
- Line 1381: use nullptr
- Line 1397: use nullptr
- Line 1412: variable 'm_next' is not initialized
- Line 1414: use nullptr
- Line 1417: use nullptr
- Line 1500: use nullptr
- Line 1543: use nullptr
- Line 1556: function-like macro 'rte_pktmbuf_pkt_len' used; consider a 'constexpr' template function
- Line 1598: do not use C-style cast to convert between unrelated types
- Line 1619: variable 'm_last' is not initialized
- Line 1625: use nullptr
- Line 1627: do not use C-style cast to convert between unrelated types
- Line 1660: do not use C-style cast to convert between unrelated types
- Line 1710: declaration uses identifier '__rte_pktmbuf_read', which is a reserved identifier
- Line 1737: do not use pointer arithmetic
- Line 1863: declaration uses identifier '__rte_pktmbuf_linearize', which is a reserved identifier
- Line 1996: compound literals are a C99-specific feature
- Line 81: macro 'RTE_MBUF_F_RX_IP_CKSUM_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 80: macro 'RTE_MBUF_DYN_NAMESIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 75: macro 'RTE_PTYPE_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 72: do not use C-style cast to convert between unrelated types
- Line 428: variable 'bits' is not initialized
- Line 441: do not use C-style cast to convert between unrelated types
- Line 38: macro replacement list should be enclosed in parentheses
- Line 609: macro 'RTE_MEM_EVENT_CALLBACK_NAME_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 57: macro 'RTE_MEMPOOL_HEADER_COOKIE1' used to declare a constant; consider using a 'constexpr' constant
- Line 773: variable 'ret' is not initialized
- Line 802: variable 'ops' is not initialized
- Line 827: variable 'ops' is not initialized
- Line 828: variable 'ret' is not initialized
- Line 970: macro argument should be enclosed in parentheses
- Line 1318: use nullptr
- Line 1321: use nullptr
- Line 1324: do not use pointer arithmetic
- Line 1342: use nullptr
- Line 1365: variable 'cache_objs' is not initialized
- Line 1368: use nullptr
- Line 1387: do not use array subscript when the index is not an integer constant expression
- Line 1494: variable 'ret' is not initialized
- Line 1496: multiple declarations in a single statement reduces readability
- Line 1496: variable 'len' is not initialized
- Line 1497: variable 'cache_objs' is not initialized
- Line 1500: use nullptr
- Line 1505: do not use array subscript when the index is not an integer constant expression
- Line 1567: use nullptr
- Line 1603: variable 'ret' is not initialized
- Line 1636: variable 'cache' is not initialized
- Line 1693: variable 'ret' is not initialized
- Line 1790: variable 'hdr' is not initialized
- Line 1791: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_MEMZONE_H_', which is a reserved identifier
- Line 33: macro 'RTE_MEMZONE_2MB' used to declare a constant; consider using a 'constexpr' constant
- Line 418: multiple declarations in a single statement reduces readability
- Line 418: variable 'n_periods' is not initialized
- Line 418: variable 'tc' is not initialized
- Line 418: variable 'te' is not initialized
- Line 460: multiple declarations in a single statement reduces readability
- Line 460: variable 'n_periods' is not initialized
- Line 460: variable 'tc' is not initialized
- Line 460: variable 'te' is not initialized
- Line 501: multiple declarations in a single statement reduces readability
- Line 501: variable 'time_diff_tp' is not initialized
- Line 501: variable 'n_periods_tc' is not initialized
- Line 501: variable 'n_periods_tp' is not initialized
- Line 501: variable 'tc' is not initialized
- Line 501: variable 'tp' is not initialized
- Line 544: multiple declarations in a single statement reduces readability
- Line 544: variable 'time_diff_tp' is not initialized
- Line 544: variable 'n_periods_tc' is not initialized
- Line 544: variable 'n_periods_tp' is not initialized
- Line 544: variable 'tc' is not initialized
- Line 544: variable 'tp' is not initialized
- Line 587: multiple declarations in a single statement reduces readability
- Line 587: variable 'time_diff_te' is not initialized
- Line 587: variable 'n_periods_tc' is not initialized
- Line 587: variable 'n_periods_te' is not initialized
- Line 587: variable 'tc' is not initialized
- Line 587: variable 'te' is not initialized
- Line 631: multiple declarations in a single statement reduces readability
- Line 631: variable 'time_diff_te' is not initialized
- Line 631: variable 'n_periods_tc' is not initialized
- Line 631: variable 'n_periods_te' is not initialized
- Line 631: variable 'tc' is not initialized
- Line 631: variable 'te' is not initialized
- Line 6: declaration uses identifier '_RTE_OS_H_', which is a reserved identifier
- Line 21: function-like macro 'RTE_TAILQ_HEAD' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_PCI_DEV_DEFS_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PER_LCORE_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_POWER_INTRINSIC_X86_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PPP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PREFETCH_X86_64_H_', which is a reserved identifier
- Line 18: do not use C-style cast to convert between unrelated types
- Line 11: declaration uses identifier '_RTE_RING_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_CORE_H_', which is a reserved identifier
- Line 40: macro 'RTE_TAILQ_RING_NAME' used to declare a constant; consider using a 'constexpr' constant
- Line 96: declaration uses identifier '__rte_ring_hts_pos', which is a reserved identifier
- Line 153: macro 'RING_F_SP_ENQ' used to declare a constant; consider using a 'constexpr' constant
- Line 214: use nullptr
- Line 240: use nullptr
- Line 264: use nullptr
- Line 290: use nullptr
- Line 396: use nullptr
- Line 424: use nullptr
- Line 448: use nullptr
- Line 475: use nullptr
- Line 582: use nullptr
- Line 692: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_ELEM_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_enqueue_elems_32', which is a reserved identifier
- Line 17: variable 'i' is not initialized
- Line 18: use auto when initializing with a cast to avoid duplicating the type name
- Line 18: do not use C-style cast to convert between unrelated types
- Line 19: do not use C-style cast to convert between unrelated types
- Line 60: variable 'i' is not initialized
- Line 63: use auto when initializing with a cast to avoid duplicating the type name
- Line 63: do not use C-style cast to convert between unrelated types
- Line 64: do not use C-style cast to convert between unrelated types
- Line 93: variable 'i' is not initialized
- Line 96: use auto when initializing with a cast to avoid duplicating the type name
- Line 96: do not use C-style cast to convert between unrelated types
- Line 97: do not use C-style cast to convert between unrelated types
- Line 134: multiple declarations in a single statement reduces readability
- Line 134: variable 'scale' is not initialized
- Line 134: variable 'nr_idx' is not initialized
- Line 134: variable 'nr_num' is not initialized
- Line 134: variable 'nr_size' is not initialized
- Line 148: declaration uses identifier '__rte_ring_dequeue_elems_32', which is a reserved identifier
- Line 151: variable 'i' is not initialized
- Line 152: use auto when initializing with a cast to avoid duplicating the type name
- Line 152: do not use C-style cast to convert between unrelated types
- Line 153: do not use C-style cast to convert between unrelated types
- Line 194: variable 'i' is not initialized
- Line 197: use auto when initializing with a cast to avoid duplicating the type name
- Line 197: do not use C-style cast to convert between unrelated types
- Line 198: do not use C-style cast to convert between unrelated types
- Line 227: variable 'i' is not initialized
- Line 230: use auto when initializing with a cast to avoid duplicating the type name
- Line 230: do not use C-style cast to convert between unrelated types
- Line 231: do not use C-style cast to convert between unrelated types
- Line 264: multiple declarations in a single statement reduces readability
- Line 264: variable 'scale' is not initialized
- Line 264: variable 'nr_idx' is not initialized
- Line 264: variable 'nr_num' is not initialized
- Line 264: variable 'nr_size' is not initialized
- Line 315: declaration uses identifier '__rte_ring_do_enqueue_elem', which is a reserved identifier
- Line 320: multiple declarations in a single statement reduces readability
- Line 320: variable 'prod_next' is not initialized
- Line 321: variable 'free_entries' is not initialized
- Line 332: use nullptr
- Line 362: declaration uses identifier '__rte_ring_do_dequeue_elem', which is a reserved identifier
- Line 367: multiple declarations in a single statement reduces readability
- Line 367: variable 'cons_next' is not initialized
- Line 368: variable 'entries' is not initialized
- Line 380: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_GENERIC_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_update_tail', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_move_prod_head', which is a reserved identifier
- Line 62: variable 'success' is not initialized
- Line 125: declaration uses identifier '__rte_ring_move_cons_head', which is a reserved identifier
- Line 131: variable 'success' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_HTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_HTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_hts_update_tail', which is a reserved identifier
- Line 28: variable 'tail' is not initialized
- Line 42: declaration uses identifier '__rte_ring_hts_head_wait', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_hts_move_prod_head', which is a reserved identifier
- Line 59: variable 'n' is not initialized
- Line 60: multiple declarations in a single statement reduces readability
- Line 113: declaration uses identifier '__rte_ring_hts_move_cons_head', which is a reserved identifier
- Line 117: variable 'n' is not initialized
- Line 118: multiple declarations in a single statement reduces readability
- Line 187: declaration uses identifier '__rte_ring_do_hts_enqueue_elem', which is a reserved identifier
- Line 191: multiple declarations in a single statement reduces readability
- Line 191: variable 'head' is not initialized
- Line 200: use nullptr
- Line 228: declaration uses identifier '__rte_ring_do_hts_dequeue_elem', which is a reserved identifier
- Line 232: multiple declarations in a single statement reduces readability
- Line 232: variable 'head' is not initialized
- Line 241: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_H_', which is a reserved identifier
- Line 170: variable 'tail' is not initialized
- Line 333: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ELEM_PVT_H_', which is a reserved identifier
- Line 31: declaration uses identifier '__rte_ring_st_get_tail', which is a reserved identifier
- Line 34: multiple declarations in a single statement reduces readability
- Line 34: variable 'n' is not initialized
- Line 34: variable 't' is not initialized
- Line 53: declaration uses identifier '__rte_ring_st_set_head_tail', which is a reserved identifier
- Line 56: variable 'pos' is not initialized
- Line 75: declaration uses identifier '__rte_ring_hts_get_tail', which is a reserved identifier
- Line 78: variable 'n' is not initialized
- Line 97: declaration uses identifier '__rte_ring_hts_set_head_tail', which is a reserved identifier
- Line 114: declaration uses identifier '__rte_ring_do_enqueue_start', which is a reserved identifier
- Line 117: multiple declarations in a single statement reduces readability
- Line 117: variable 'head' is not initialized
- Line 117: variable 'next' is not initialized
- Line 137: use nullptr
- Line 147: declaration uses identifier '__rte_ring_do_dequeue_start', which is a reserved identifier
- Line 151: multiple declarations in a single statement reduces readability
- Line 151: variable 'head' is not initialized
- Line 151: variable 'next' is not initialized
- Line 174: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ZC_H_', which is a reserved identifier
- Line 98: declaration uses identifier '__rte_ring_get_elem_addr', which is a reserved identifier
- Line 101: multiple declarations in a single statement reduces readability
- Line 101: variable 'scale' is not initialized
- Line 101: variable 'nr_idx' is not initialized
- Line 102: use auto when initializing with a cast to avoid duplicating the type name
- Line 102: do not use C-style cast to convert between unrelated types
- Line 124: declaration uses identifier '__rte_ring_do_enqueue_zc_elem_start', which is a reserved identifier
- Line 128: multiple declarations in a single statement reduces readability
- Line 128: variable 'head' is not initialized
- Line 128: variable 'next' is not initialized
- Line 151: use nullptr
- Line 291: variable 'tail' is not initialized
- Line 331: declaration uses identifier '__rte_ring_do_dequeue_zc_elem_start', which is a reserved identifier
- Line 335: multiple declarations in a single statement reduces readability
- Line 335: variable 'head' is not initialized
- Line 335: variable 'next' is not initialized
- Line 359: use nullptr
- Line 497: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_RTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_RTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_rts_update_tail', which is a reserved identifier
- Line 27: multiple declarations in a single statement reduces readability
- Line 53: declaration uses identifier '__rte_ring_rts_head_wait', which is a reserved identifier
- Line 56: variable 'max' is not initialized
- Line 70: declaration uses identifier '__rte_ring_rts_move_prod_head', which is a reserved identifier
- Line 74: variable 'n' is not initialized
- Line 75: multiple declarations in a single statement reduces readability
- Line 128: declaration uses identifier '__rte_ring_rts_move_cons_head', which is a reserved identifier
- Line 132: variable 'n' is not initialized
- Line 133: multiple declarations in a single statement reduces readability
- Line 202: declaration uses identifier '__rte_ring_do_rts_enqueue_elem', which is a reserved identifier
- Line 206: multiple declarations in a single statement reduces readability
- Line 206: variable 'head' is not initialized
- Line 215: use nullptr
- Line 243: declaration uses identifier '__rte_ring_do_rts_dequeue_elem', which is a reserved identifier
- Line 247: multiple declarations in a single statement reduces readability
- Line 247: variable 'head' is not initialized
- Line 256: use nullptr
- Line 6: declaration uses identifier '_RTE_RTM_H_', which is a reserved identifier
- Line 6: macro '_RTE_RTM_H_' used to declare a constant; consider using a 'constexpr' constant
- Line 26: function-like macro 'RTE_XABORT_CODE' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_RWLOCK_X86_64_H_', which is a reserved identifier
- Line 15: declaration uses identifier '_RTE_SCTP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_SPINLOCK_X86_64_H_', which is a reserved identifier
- Line 80: multiple declarations in a single statement reduces readability
- Line 80: variable 'retries' is not initialized
- Line 109: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type 'int' is implementation-defined
- Line 74: do not use pointer arithmetic
- Line 43: macro 'RTE_TCP_CWR_FLAG' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_TRACE_POINT_H_', which is a reserved identifier
- Line 78: variadic macro 'RTE_TRACE_POINT' used; consider using a 'constexpr' variadic template function
- Line 151: macro '__RTE_TRACE_EMIT_STRING_LEN_MAX' used to declare a constant; consider using a 'constexpr' constant
- Line 153: declaration uses identifier '__RTE_TRACE_EVENT_HEADER_SZ', which is a reserved identifier
- Line 211: declaration uses identifier '__rte_trace_point_fp_is_enabled', which is a reserved identifier
- Line 227: declaration uses identifier '__rte_trace_mem_per_thread_alloc', which is a reserved identifier
- Line 245: declaration uses identifier '__rte_trace_point_emit_field', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_trace_point_register', which is a reserved identifier
- Line 379: declaration uses identifier '__rte_trace_point_emit_header_generic', which is a reserved identifier
- Line 379: function-like macro '__rte_trace_point_emit_header_generic' used; consider a 'constexpr' template function
- Line 380: function-like macro '__rte_trace_point_emit_header_fp' used; consider a 'constexpr' template function
- Line 11: declaration uses identifier '_RTE_UUID_H_', which is a reserved identifier
- Line 24: do not declare C-style arrays, use std::array<> instead
- Line 6: declaration uses identifier '_RTE_VXLAN_H_', which is a reserved identifier
- Line 25: macro 'RTE_VXLAN_DEFAULT_PORT' used to declare a constant; consider using a 'constexpr' constant
- Line 2: declaration uses identifier '_IPV4_ADDR_H_', which is a reserved identifier
- Line 25: do not use array subscript when the index is not an integer constant expression
- Line 29: do not declare C-style arrays, use std::array<> instead
- Line 15: nested namespaces can be concatenated
- Line 20: do not declare C-style arrays, use std::array<> instead
- Line 19: nested namespaces can be concatenated
- Line 35: nested namespaces can be concatenated
- Line 9: macro 'IPV4_VERSION' used to declare a constant; consider using a 'constexpr' constant
- Line 15: nested namespaces can be concatenated
- Line 28: narrowing conversion from 'int' to signed type 'int8_t' (aka 'signed char') is implementation-defined
- Line 30: narrowing conversion from 'int' to signed type 'int8_t' (aka 'signed char') is implementation-defined
- Line 32: narrowing conversion from 'int' to signed type 'int8_t' (aka 'signed char') is implementation-defined
- Line 40: variable 'i' is not initialized
- Line 43: variable 'x' is not initialized
- Line 45: do not use pointer arithmetic
- Line 49: do not use array subscript when the index is not an integer constant expression
- Line 50: do not use pointer arithmetic
- Line 53: do not use array subscript when the index is not an integer constant expression
- Line 56: do not use pointer arithmetic
- Line 73: do not declare C-style arrays, use std::array<> instead
- Line 77: do not use C-style cast to convert between unrelated types
- Line 77: C-style casts are discouraged; use reinterpret_cast
- Line 77: do not use pointer arithmetic
- Line 104: redundant return statement at the end of a function with a void return type
- Line 124: do not use C-style cast to convert between unrelated types
- Line 124: C-style casts are discouraged; use reinterpret_cast
- Line 141: do not use C-style cast to convert between unrelated types
- Line 141: C-style casts are discouraged; use reinterpret_cast
- Line 142: do not use C-style cast to convert between unrelated types
- Line 142: C-style casts are discouraged; use reinterpret_cast
- Line 167: redundant return statement at the end of a function with a void return type
- Line 191: taking address of packed member 'eth_hdr' of class or structure 'dunedaq::dpdklibs::udp::ipv4_udp_packet_hdr' may result in an unaligned pointer value
- Line 193: taking address of packed member 'eth_hdr' of class or structure 'dunedaq::dpdklibs::udp::ipv4_udp_packet_hdr' may result in an unaligned pointer value
- Line 197: redundant return statement at the end of a function with a void return type
- Line 209: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined
- Line 228: do not use pointer arithmetic
- Line 228: do not use C-style cast to convert between unrelated types
- Line 228: do not use pointer arithmetic
- Line 231: do not use pointer arithmetic
- Line 231: do not use C-style cast to convert between unrelated types
- Line 231: do not use pointer arithmetic
- Line 234: do not use pointer arithmetic
- Line 235: do not use pointer arithmetic
src/udp/Utils.cpp
Errors
- Line 61: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 78: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 28: An unsigned integer appears to be used here.
- Line 34: An unsigned integer appears to be used here.
- Line 41: An unsigned integer appears to be used here.
- Line 75: Using C-style cast. Use one of the C++ cast operators instead
- Line 114: Using C-style cast. Use static_cast
(...) instead - Line 115: Using C-style cast. Use static_cast
(...) instead - Line 116: Using C-style cast. Use static_cast
(...) instead - Line 117: Using C-style cast. Use static_cast
(...) instead - Line 118: Using C-style cast. Use static_cast
(...) instead - Line 119: Using C-style cast. Use static_cast
(...) instead - Line 121: Using C-style cast. Use static_cast
(...) instead - Line 122: Using C-style cast. Use static_cast
(...) instead - Line 123: Using C-style cast. Use static_cast
(...) instead - Line 124: Using C-style cast. Use static_cast
(...) instead - Line 125: Using C-style cast. Use static_cast
(...) instead - Line 126: Using C-style cast. Use static_cast
(...) instead - Line 156: Using C-style cast. Use one of the C++ cast operators instead
- Line 158: An unsigned integer appears to be used here.
- Line 192: An unsigned integer appears to be used here.
- Line 196: Use of reinterpret_cast can be dangerous. If there's no way to avoid its use add " // NOLINT" to the end of this line so this script will ignore it next time
Warnings
- Line 6: declaration uses identifier '_RTE_ATOMIC_H_', which is a reserved identifier
- Line 119: function-like macro 'rte_compiler_barrier' used; consider a 'constexpr' template function
- Line 30: macro 'RTE_BIG_ENDIAN' used to declare a constant; consider using a 'constexpr' constant
- Line 93: consider replacing 'unsigned long' with 'uint64'
- Line 19: macro 'MS_PER_S' used to declare a constant; consider using a 'constexpr' constant
- Line 132: function-like macro 'RTE_WAIT_UNTIL_MASKED' used; consider a 'constexpr' template function
- Line 135: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_PREFETCH_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_RWLOCK_H_', which is a reserved identifier
- Line 52: macro 'RTE_RWLOCK_WAIT' used to declare a constant; consider using a 'constexpr' constant
- Line 90: converting integer literal to bool, use bool literal instead
- Line 123: variable 'x' is not initialized
- Line 170: variable 'x' is not initialized
- Line 175: converting integer literal to bool, use bool literal instead
- Line 190: variable 'x' is not initialized
- Line 192: converting integer literal to bool, use bool literal instead
- Line 198: converting integer literal to bool, use bool literal instead
- Line 6: declaration uses identifier '_RTE_SPINLOCK_H_', which is a reserved identifier
- Line 223: increment of object of volatile-qualified type 'volatile int' is deprecated
- Line 6: declaration uses identifier '_RTE_ATOMIC_X86_H_', which is a reserved identifier
- Line 21: macro 'MPLOCKED' used to declare a constant; consider using a 'constexpr' constant
- Line 133: do not use C-style cast to convert between unrelated types
- Line 174: variable 'ret' is not initialized
- Line 190: variable 'res' is not initialized
- Line 219: do not use C-style cast to convert between unrelated types
- Line 260: variable 'ret' is not initialized
- Line 17: declaration uses identifier '_RTE_ATOMIC_X86_64_H_', which is a reserved identifier
- Line 29: variable 'res' is not initialized
- Line 145: variable 'ret' is not initialized
- Line 160: variable 'ret' is not initialized
- Line 174: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_BITOPS_H_', which is a reserved identifier
- Line 30: function-like macro 'RTE_BIT64' used; consider a 'constexpr' template function
- Line 28: function-like macro 'likely' used; consider a 'constexpr' template function
- Line 51: function-like macro 'rte_bswap16' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_COMMON_H_', which is a reserved identifier
- Line 50: macro 'RTE_CC_IS_GNU' used to declare a constant; consider using a 'constexpr' constant
- Line 88: declaration uses identifier '__rte_may_alias', which is a reserved identifier
- Line 91: declaration uses identifier '__rte_deprecated', which is a reserved identifier
- Line 92: declaration uses identifier '__rte_deprecated_msg', which is a reserved identifier
- Line 92: function-like macro '__rte_deprecated_msg' used; consider a 'constexpr' template function
- Line 108: declaration uses identifier '__rte_weak', which is a reserved identifier
- Line 113: declaration uses identifier '__rte_used', which is a reserved identifier
- Line 120: declaration uses identifier '__rte_unused', which is a reserved identifier
- Line 126: declaration uses identifier '__rte_restrict', which is a reserved identifier
- Line 135: function-like macro 'RTE_SET_USED' used; consider a 'constexpr' template function
- Line 148: function-like macro '__rte_format_printf' used; consider a 'constexpr' template function
- Line 158: declaration uses identifier '__rte_alloc_size', which is a reserved identifier
- Line 158: variadic macro '__rte_alloc_size' used; consider using a 'constexpr' variadic template function
- Line 164: macro 'RTE_PRIORITY_LOG' used to declare a constant; consider using a 'constexpr' constant
- Line 250: declaration uses identifier '__rte_warn_unused_result', which is a reserved identifier
- Line 260: declaration uses identifier '__rte_noinline', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_hot', which is a reserved identifier
- Line 270: declaration uses identifier '__rte_cold', which is a reserved identifier
- Line 282: declaration uses identifier '__rte_no_asan', which is a reserved identifier
- Line 290: function-like macro 'RTE_PTR_ADD' used; consider a 'constexpr' template function
- Line 443: declaration uses identifier '__rte_cache_min_aligned', which is a reserved identifier
- Line 464: do not declare C-style arrays, use std::array<> instead
- Line 824: macro argument should be enclosed in parentheses
- Line 837: function-like macro 'RTE_SIZEOF_FIELD' used; consider a 'constexpr' template function
- Line 841: function-like macro 'RTE_STR' used; consider a 'constexpr' template function
- Line 15: declaration uses identifier '__rte_experimental', which is a reserved identifier
- Line 33: declaration uses identifier '__rte_internal', which is a reserved identifier
- Line 13: declaration uses identifier '_RTE_CONFIG_H_', which is a reserved identifier
- Line 19: macro 'RTE_EXEC_ENV_LINUXAPP' used to declare a constant; consider using a 'constexpr' constant
- Line 7: declaration uses identifier '_RTE_CYCLES_X86_64_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_DEBUG_H_', which is a reserved identifier
- Line 43: variadic macro 'rte_panic' used; consider using a 'constexpr' variadic template function
- Line 28: macro 'RTE_MAGIC' used to declare a constant; consider using a 'constexpr' constant
- Line 25: macro 'RTE_ETHER_ADDR_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 84: do not use C-style cast to convert between unrelated types
- Line 85: do not use C-style cast to convert between unrelated types
- Line 102: do not use C-style cast to convert between unrelated types
- Line 149: do not use C-style cast to convert between unrelated types
- Line 333: do not use C-style cast to convert between unrelated types
- Line 358: variable 'nh' is not initialized
- Line 359: variable 'vh' is not initialized
- Line 369: do not use pointer arithmetic
- Line 378: do not use C-style cast to convert between unrelated types
- Line 68: function-like macro 'RTE_IPV4' used; consider a 'constexpr' template function
- Line 164: variable 'end' is not initialized
- Line 166: do not use C-style cast to convert between unrelated types
- Line 195: declaration uses identifier '__rte_raw_cksum_reduce', which is a reserved identifier
- Line 215: variable 'sum' is not initialized
- Line 239: variable 'seg' is not initialized
- Line 240: variable 'buf' is not initialized
- Line 241: multiple declarations in a single statement reduces readability
- Line 241: variable 'tmp' is not initialized
- Line 242: multiple declarations in a single statement reduces readability
- Line 242: variable 'done' is not initialized
- Line 246: do not use pointer arithmetic
- Line 263: use nullptr
- Line 266: do not use pointer arithmetic
- Line 342: variable 'l3_len' is not initialized
- Line 362: declaration uses identifier '__rte_ipv4_udptcp_cksum', which is a reserved identifier
- Line 364: variable 'cksum' is not initialized
- Line 365: multiple declarations in a single statement reduces readability
- Line 365: variable 'l4_len' is not initialized
- Line 366: variable 'ip_hdr_len' is not initialized
- Line 417: declaration uses identifier '__rte_ipv4_udptcp_cksum_mbuf', which is a reserved identifier
- Line 421: variable 'raw_cksum' is not initialized
- Line 422: variable 'cksum' is not initialized
- Line 543: macro 'RTE_IPV6_HDR_FL_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 596: declaration uses identifier '__rte_ipv6_udptcp_cksum', which is a reserved identifier
- Line 598: variable 'cksum' is not initialized
- Line 599: variable 'l4_len' is not initialized
- Line 646: declaration uses identifier '__rte_ipv6_udptcp_cksum_mbuf', which is a reserved identifier
- Line 650: variable 'raw_cksum' is not initialized
- Line 651: variable 'cksum' is not initialized
- Line 765: macro 'RTE_IPV6_EHDR_MF_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 813: do not use pointer arithmetic
- Line 6: declaration uses identifier '_RTE_LCORE_H_', which is a reserved identifier
- Line 218: function-like macro 'RTE_LCORE_FOREACH' used; consider a 'constexpr' template function
- Line 220: macro argument should be enclosed in parentheses
- Line 221: macro argument should be enclosed in parentheses
- Line 226: function-like macro 'RTE_LCORE_FOREACH_WORKER' used; consider a 'constexpr' template function
- Line 228: macro argument should be enclosed in parentheses
- Line 229: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_LOG_H_', which is a reserved identifier
- Line 29: macro 'RTE_LOGTYPE_EAL' used to declare a constant; consider using a 'constexpr' constant
- Line 370: macro argument should be enclosed in parentheses
- Line 371: macro argument should be enclosed in parentheses
- Line 387: function-like macro 'RTE_LOG_REGISTER' used; consider a 'constexpr' template function
- Line 218: do not use C-style cast to convert between unrelated types
- Line 318: do not use C-style cast to convert between unrelated types
- Line 348: declaration uses identifier '__rte_mbuf_sanity_check', which is a reserved identifier
- Line 348: function-like macro '__rte_mbuf_sanity_check' used; consider a 'constexpr' template function
- Line 382: declaration uses identifier '__rte_mbuf_refcnt_update', which is a reserved identifier
- Line 510: function-like macro 'RTE_MBUF_PREFETCH_TO_FREE' used; consider a 'constexpr' template function
- Line 575: function-like macro 'MBUF_RAW_ALLOC_CHECK' used; consider a 'constexpr' template function
- Line 600: do not use C-style cast to convert between unrelated types
- Line 825: variable 'mbp_priv' is not initialized
- Line 827: do not use C-style cast to convert between unrelated types
- Line 848: do not use C-style cast to convert between unrelated types
- Line 907: variable 'm' is not initialized
- Line 908: use nullptr
- Line 931: variable 'rc' is not initialized
- Line 933: do not use C-style cast to convert between unrelated types
- Line 1006: do not use C-style cast to convert between unrelated types
- Line 1009: do not use C-style cast to convert between unrelated types
- Line 1014: do not use C-style cast to convert between unrelated types
- Line 1184: use nullptr
- Line 1200: declaration uses identifier '__rte_pktmbuf_free_extbuf', which is a reserved identifier
- Line 1216: declaration uses identifier '__rte_pktmbuf_free_direct', which is a reserved identifier
- Line 1218: variable 'md' is not initialized
- Line 1225: use nullptr
- Line 1253: multiple declarations in a single statement reduces readability
- Line 1253: variable 'buf_len' is not initialized
- Line 1254: variable 'priv_size' is not initialized
- Line 1281: do not use C-style cast to convert between unrelated types
- Line 1304: variable 'shinfo' is not initialized
- Line 1353: use nullptr
- Line 1356: use nullptr
- Line 1357: use nullptr
- Line 1370: use nullptr
- Line 1373: use nullptr
- Line 1374: use nullptr
- Line 1381: use nullptr
- Line 1397: use nullptr
- Line 1412: variable 'm_next' is not initialized
- Line 1414: use nullptr
- Line 1417: use nullptr
- Line 1500: use nullptr
- Line 1543: use nullptr
- Line 1556: function-like macro 'rte_pktmbuf_pkt_len' used; consider a 'constexpr' template function
- Line 1598: do not use C-style cast to convert between unrelated types
- Line 1619: variable 'm_last' is not initialized
- Line 1625: use nullptr
- Line 1627: do not use C-style cast to convert between unrelated types
- Line 1660: do not use C-style cast to convert between unrelated types
- Line 1710: declaration uses identifier '__rte_pktmbuf_read', which is a reserved identifier
- Line 1737: do not use pointer arithmetic
- Line 1863: declaration uses identifier '__rte_pktmbuf_linearize', which is a reserved identifier
- Line 1996: compound literals are a C99-specific feature
- Line 81: macro 'RTE_MBUF_F_RX_IP_CKSUM_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 75: macro 'RTE_PTYPE_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 72: do not use C-style cast to convert between unrelated types
- Line 428: variable 'bits' is not initialized
- Line 441: do not use C-style cast to convert between unrelated types
- Line 38: macro replacement list should be enclosed in parentheses
- Line 609: macro 'RTE_MEM_EVENT_CALLBACK_NAME_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 57: macro 'RTE_MEMPOOL_HEADER_COOKIE1' used to declare a constant; consider using a 'constexpr' constant
- Line 773: variable 'ret' is not initialized
- Line 802: variable 'ops' is not initialized
- Line 827: variable 'ops' is not initialized
- Line 828: variable 'ret' is not initialized
- Line 970: macro argument should be enclosed in parentheses
- Line 1318: use nullptr
- Line 1321: use nullptr
- Line 1324: do not use pointer arithmetic
- Line 1342: use nullptr
- Line 1365: variable 'cache_objs' is not initialized
- Line 1368: use nullptr
- Line 1387: do not use array subscript when the index is not an integer constant expression
- Line 1494: variable 'ret' is not initialized
- Line 1496: multiple declarations in a single statement reduces readability
- Line 1496: variable 'len' is not initialized
- Line 1497: variable 'cache_objs' is not initialized
- Line 1500: use nullptr
- Line 1505: do not use array subscript when the index is not an integer constant expression
- Line 1567: use nullptr
- Line 1603: variable 'ret' is not initialized
- Line 1636: variable 'cache' is not initialized
- Line 1693: variable 'ret' is not initialized
- Line 1790: variable 'hdr' is not initialized
- Line 1791: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_MEMZONE_H_', which is a reserved identifier
- Line 33: macro 'RTE_MEMZONE_2MB' used to declare a constant; consider using a 'constexpr' constant
- Line 21: function-like macro 'RTE_TAILQ_HEAD' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_PCI_DEV_DEFS_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PER_LCORE_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PREFETCH_X86_64_H_', which is a reserved identifier
- Line 18: do not use C-style cast to convert between unrelated types
- Line 11: declaration uses identifier '_RTE_RING_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_CORE_H_', which is a reserved identifier
- Line 40: macro 'RTE_TAILQ_RING_NAME' used to declare a constant; consider using a 'constexpr' constant
- Line 96: declaration uses identifier '__rte_ring_hts_pos', which is a reserved identifier
- Line 153: macro 'RING_F_SP_ENQ' used to declare a constant; consider using a 'constexpr' constant
- Line 214: use nullptr
- Line 240: use nullptr
- Line 264: use nullptr
- Line 290: use nullptr
- Line 396: use nullptr
- Line 424: use nullptr
- Line 448: use nullptr
- Line 475: use nullptr
- Line 582: use nullptr
- Line 692: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_ELEM_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_enqueue_elems_32', which is a reserved identifier
- Line 17: variable 'i' is not initialized
- Line 18: use auto when initializing with a cast to avoid duplicating the type name
- Line 18: do not use C-style cast to convert between unrelated types
- Line 19: do not use C-style cast to convert between unrelated types
- Line 60: variable 'i' is not initialized
- Line 63: use auto when initializing with a cast to avoid duplicating the type name
- Line 63: do not use C-style cast to convert between unrelated types
- Line 64: do not use C-style cast to convert between unrelated types
- Line 93: variable 'i' is not initialized
- Line 96: use auto when initializing with a cast to avoid duplicating the type name
- Line 96: do not use C-style cast to convert between unrelated types
- Line 97: do not use C-style cast to convert between unrelated types
- Line 134: multiple declarations in a single statement reduces readability
- Line 134: variable 'scale' is not initialized
- Line 134: variable 'nr_idx' is not initialized
- Line 134: variable 'nr_num' is not initialized
- Line 134: variable 'nr_size' is not initialized
- Line 148: declaration uses identifier '__rte_ring_dequeue_elems_32', which is a reserved identifier
- Line 151: variable 'i' is not initialized
- Line 152: use auto when initializing with a cast to avoid duplicating the type name
- Line 152: do not use C-style cast to convert between unrelated types
- Line 153: do not use C-style cast to convert between unrelated types
- Line 194: variable 'i' is not initialized
- Line 197: use auto when initializing with a cast to avoid duplicating the type name
- Line 197: do not use C-style cast to convert between unrelated types
- Line 198: do not use C-style cast to convert between unrelated types
- Line 227: variable 'i' is not initialized
- Line 230: use auto when initializing with a cast to avoid duplicating the type name
- Line 230: do not use C-style cast to convert between unrelated types
- Line 231: do not use C-style cast to convert between unrelated types
- Line 264: multiple declarations in a single statement reduces readability
- Line 264: variable 'scale' is not initialized
- Line 264: variable 'nr_idx' is not initialized
- Line 264: variable 'nr_num' is not initialized
- Line 264: variable 'nr_size' is not initialized
- Line 315: declaration uses identifier '__rte_ring_do_enqueue_elem', which is a reserved identifier
- Line 320: multiple declarations in a single statement reduces readability
- Line 320: variable 'prod_next' is not initialized
- Line 321: variable 'free_entries' is not initialized
- Line 332: use nullptr
- Line 362: declaration uses identifier '__rte_ring_do_dequeue_elem', which is a reserved identifier
- Line 367: multiple declarations in a single statement reduces readability
- Line 367: variable 'cons_next' is not initialized
- Line 368: variable 'entries' is not initialized
- Line 380: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_GENERIC_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_update_tail', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_move_prod_head', which is a reserved identifier
- Line 62: variable 'success' is not initialized
- Line 125: declaration uses identifier '__rte_ring_move_cons_head', which is a reserved identifier
- Line 131: variable 'success' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_HTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_HTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_hts_update_tail', which is a reserved identifier
- Line 28: variable 'tail' is not initialized
- Line 42: declaration uses identifier '__rte_ring_hts_head_wait', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_hts_move_prod_head', which is a reserved identifier
- Line 59: variable 'n' is not initialized
- Line 60: multiple declarations in a single statement reduces readability
- Line 113: declaration uses identifier '__rte_ring_hts_move_cons_head', which is a reserved identifier
- Line 117: variable 'n' is not initialized
- Line 118: multiple declarations in a single statement reduces readability
- Line 187: declaration uses identifier '__rte_ring_do_hts_enqueue_elem', which is a reserved identifier
- Line 191: multiple declarations in a single statement reduces readability
- Line 191: variable 'head' is not initialized
- Line 200: use nullptr
- Line 228: declaration uses identifier '__rte_ring_do_hts_dequeue_elem', which is a reserved identifier
- Line 232: multiple declarations in a single statement reduces readability
- Line 232: variable 'head' is not initialized
- Line 241: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_H_', which is a reserved identifier
- Line 170: variable 'tail' is not initialized
- Line 333: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ELEM_PVT_H_', which is a reserved identifier
- Line 31: declaration uses identifier '__rte_ring_st_get_tail', which is a reserved identifier
- Line 34: multiple declarations in a single statement reduces readability
- Line 34: variable 'n' is not initialized
- Line 34: variable 't' is not initialized
- Line 53: declaration uses identifier '__rte_ring_st_set_head_tail', which is a reserved identifier
- Line 56: variable 'pos' is not initialized
- Line 75: declaration uses identifier '__rte_ring_hts_get_tail', which is a reserved identifier
- Line 78: variable 'n' is not initialized
- Line 97: declaration uses identifier '__rte_ring_hts_set_head_tail', which is a reserved identifier
- Line 114: declaration uses identifier '__rte_ring_do_enqueue_start', which is a reserved identifier
- Line 117: multiple declarations in a single statement reduces readability
- Line 117: variable 'head' is not initialized
- Line 117: variable 'next' is not initialized
- Line 137: use nullptr
- Line 147: declaration uses identifier '__rte_ring_do_dequeue_start', which is a reserved identifier
- Line 151: multiple declarations in a single statement reduces readability
- Line 151: variable 'head' is not initialized
- Line 151: variable 'next' is not initialized
- Line 174: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ZC_H_', which is a reserved identifier
- Line 98: declaration uses identifier '__rte_ring_get_elem_addr', which is a reserved identifier
- Line 101: multiple declarations in a single statement reduces readability
- Line 101: variable 'scale' is not initialized
- Line 101: variable 'nr_idx' is not initialized
- Line 102: use auto when initializing with a cast to avoid duplicating the type name
- Line 102: do not use C-style cast to convert between unrelated types
- Line 124: declaration uses identifier '__rte_ring_do_enqueue_zc_elem_start', which is a reserved identifier
- Line 128: multiple declarations in a single statement reduces readability
- Line 128: variable 'head' is not initialized
- Line 128: variable 'next' is not initialized
- Line 151: use nullptr
- Line 291: variable 'tail' is not initialized
- Line 331: declaration uses identifier '__rte_ring_do_dequeue_zc_elem_start', which is a reserved identifier
- Line 335: multiple declarations in a single statement reduces readability
- Line 335: variable 'head' is not initialized
- Line 335: variable 'next' is not initialized
- Line 359: use nullptr
- Line 497: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_RTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_RTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_rts_update_tail', which is a reserved identifier
- Line 27: multiple declarations in a single statement reduces readability
- Line 53: declaration uses identifier '__rte_ring_rts_head_wait', which is a reserved identifier
- Line 56: variable 'max' is not initialized
- Line 70: declaration uses identifier '__rte_ring_rts_move_prod_head', which is a reserved identifier
- Line 74: variable 'n' is not initialized
- Line 75: multiple declarations in a single statement reduces readability
- Line 128: declaration uses identifier '__rte_ring_rts_move_cons_head', which is a reserved identifier
- Line 132: variable 'n' is not initialized
- Line 133: multiple declarations in a single statement reduces readability
- Line 202: declaration uses identifier '__rte_ring_do_rts_enqueue_elem', which is a reserved identifier
- Line 206: multiple declarations in a single statement reduces readability
- Line 206: variable 'head' is not initialized
- Line 215: use nullptr
- Line 243: declaration uses identifier '__rte_ring_do_rts_dequeue_elem', which is a reserved identifier
- Line 247: multiple declarations in a single statement reduces readability
- Line 247: variable 'head' is not initialized
- Line 256: use nullptr
- Line 6: declaration uses identifier '_RTE_RTM_H_', which is a reserved identifier
- Line 6: macro '_RTE_RTM_H_' used to declare a constant; consider using a 'constexpr' constant
- Line 26: function-like macro 'RTE_XABORT_CODE' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_RWLOCK_X86_64_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_SPINLOCK_X86_64_H_', which is a reserved identifier
- Line 80: multiple declarations in a single statement reduces readability
- Line 80: variable 'retries' is not initialized
- Line 109: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type 'int' is implementation-defined
- Line 74: do not use pointer arithmetic
- Line 6: declaration uses identifier '_RTE_TRACE_POINT_H_', which is a reserved identifier
- Line 78: variadic macro 'RTE_TRACE_POINT' used; consider using a 'constexpr' variadic template function
- Line 151: macro '__RTE_TRACE_EMIT_STRING_LEN_MAX' used to declare a constant; consider using a 'constexpr' constant
- Line 153: declaration uses identifier '__RTE_TRACE_EVENT_HEADER_SZ', which is a reserved identifier
- Line 211: declaration uses identifier '__rte_trace_point_fp_is_enabled', which is a reserved identifier
- Line 227: declaration uses identifier '__rte_trace_mem_per_thread_alloc', which is a reserved identifier
- Line 245: declaration uses identifier '__rte_trace_point_emit_field', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_trace_point_register', which is a reserved identifier
- Line 379: declaration uses identifier '__rte_trace_point_emit_header_generic', which is a reserved identifier
- Line 379: function-like macro '__rte_trace_point_emit_header_generic' used; consider a 'constexpr' template function
- Line 380: function-like macro '__rte_trace_point_emit_header_fp' used; consider a 'constexpr' template function
- Line 11: declaration uses identifier '_RTE_UUID_H_', which is a reserved identifier
- Line 24: do not declare C-style arrays, use std::array<> instead
- Line 15: nested namespaces can be concatenated
- Line 20: do not declare C-style arrays, use std::array<> instead
- Line 35: nested namespaces can be concatenated
- Line 24: nested namespaces can be concatenated
- Line 59: C-style casts are discouraged; use static_cast
- Line 59: C-style casts are discouraged; use static_cast
- Line 59: C-style casts are discouraged; use static_cast
- Line 59: C-style casts are discouraged; use static_cast
- Line 72: do not use pointer arithmetic
- Line 72: do not use C-style cast to convert between unrelated types
- Line 75: do not use C-style cast to convert between unrelated types
- Line 75: C-style casts are discouraged; use reinterpret_cast
- Line 75: do not use pointer arithmetic
- Line 110: do not use pointer arithmetic
- Line 110: do not use C-style cast to convert between unrelated types
- Line 114: C-style casts are discouraged; use static_cast
- Line 115: C-style casts are discouraged; use static_cast
- Line 116: C-style casts are discouraged; use static_cast
- Line 117: C-style casts are discouraged; use static_cast
- Line 118: C-style casts are discouraged; use static_cast
- Line 119: C-style casts are discouraged; use static_cast
- Line 121: C-style casts are discouraged; use static_cast
- Line 122: C-style casts are discouraged; use static_cast
- Line 123: C-style casts are discouraged; use static_cast
- Line 124: C-style casts are discouraged; use static_cast
- Line 125: C-style casts are discouraged; use static_cast
- Line 126: C-style casts are discouraged; use static_cast
- Line 127: C-style casts are discouraged; use static_cast
- Line 130: C-style casts are discouraged; use static_cast
- Line 131: C-style casts are discouraged; use static_cast
- Line 132: C-style casts are discouraged; use static_cast
- Line 133: C-style casts are discouraged; use static_cast
- Line 134: C-style casts are discouraged; use static_cast
- Line 135: C-style casts are discouraged; use static_cast
- Line 136: C-style casts are discouraged; use static_cast
- Line 137: C-style casts are discouraged; use static_cast
- Line 144: C-style casts are discouraged; use static_cast
- Line 145: C-style casts are discouraged; use static_cast
- Line 146: C-style casts are discouraged; use static_cast
- Line 147: C-style casts are discouraged; use static_cast
- Line 155: do not use pointer arithmetic
- Line 155: do not use C-style cast to convert between unrelated types
- Line 156: do not use C-style cast to convert between unrelated types
- Line 156: C-style casts are discouraged; use reinterpret_cast
- Line 158: variable 'byte' is not initialized
- Line 159: loop variable has narrower type 'std::uint8_t' than iteration's upper bound 'uint16_t'
- Line 160: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined
- Line 160: C-style casts are discouraged; use static_cast
- Line 160: do not use pointer arithmetic
- Line 194: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long')
- Line 196: do not use reinterpret_cast
- Line 223: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined
- Line 224: unnecessary temporary object created while calling emplace_back
test/apps/test_arp_response.cxx
Errors
- Line 0: The standard copyright message wasn't found.
- Line 1: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 26: Found other header after system header. Should be: test_arp_response.hh, other non-system headers, system headers.
- Line 27: Found other header after system header. Should be: test_arp_response.hh, other non-system headers, system headers.
- Line 28: Found other header after system header. Should be: test_arp_response.hh, other non-system headers, system headers.
- Line 64: An unsigned integer appears to be used here.
- Line 65: An unsigned integer appears to be used here.
- Line 67: "printf" should not be used for output in DUNE DAQ software.
- Line 75: "printf" should not be used for output in DUNE DAQ software.
- Line 81: "printf" should not be used for output in DUNE DAQ software.
- Line 93: An unsigned integer appears to be used here.
- Line 107: Using C-style cast. Use one of the C++ cast operators instead
- Line 123: Using C-style cast. Use one of the C++ cast operators instead
- Line 128: An unsigned integer appears to be used here.
- Line 144: Use operator ! instead of not
- Line 178: An unsigned integer appears to be used here.
- Line 215: Use operator || instead of or
- Line 230: "cout" should not be used for output in DUNE DAQ software.
- Line 241: An unsigned integer appears to be used here.
- Line 242: An unsigned integer appears to be used here.
- Line 243: An unsigned integer appears to be used here.
- Line 244: An unsigned integer appears to be used here.
- Line 270: Use operator ! instead of not
- Line 219: Add #include
for string - Line 219: Add #include
for vector<> - Line 246: Add #include
- Line 246: Add #include
for unique_ptr<>
Warnings
- Line 6: declaration uses identifier '_RTE_ATOMIC_H_', which is a reserved identifier
- Line 119: function-like macro 'rte_compiler_barrier' used; consider a 'constexpr' template function
- Line 30: macro 'RTE_BIG_ENDIAN' used to declare a constant; consider using a 'constexpr' constant
- Line 93: consider replacing 'unsigned long' with 'uint64'
- Line 19: macro 'MS_PER_S' used to declare a constant; consider using a 'constexpr' constant
- Line 132: function-like macro 'RTE_WAIT_UNTIL_MASKED' used; consider a 'constexpr' template function
- Line 135: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_POWER_INTRINSIC_H_', which is a reserved identifier
- Line 22: macro 'RTE_POWER_MONITOR_OPAQUE_SZ' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_RWLOCK_H_', which is a reserved identifier
- Line 52: macro 'RTE_RWLOCK_WAIT' used to declare a constant; consider using a 'constexpr' constant
- Line 90: converting integer literal to bool, use bool literal instead
- Line 123: variable 'x' is not initialized
- Line 170: variable 'x' is not initialized
- Line 175: converting integer literal to bool, use bool literal instead
- Line 190: variable 'x' is not initialized
- Line 192: converting integer literal to bool, use bool literal instead
- Line 198: converting integer literal to bool, use bool literal instead
- Line 6: declaration uses identifier '_RTE_SPINLOCK_H_', which is a reserved identifier
- Line 223: increment of object of volatile-qualified type 'volatile int' is deprecated
- Line 6: declaration uses identifier '_RTE_ARP_H_', which is a reserved identifier
- Line 36: macro 'RTE_ARP_HRD_ETHER' used to declare a constant; consider using a 'constexpr' constant
- Line 21: macro 'MPLOCKED' used to declare a constant; consider using a 'constexpr' constant
- Line 133: do not use C-style cast to convert between unrelated types
- Line 174: variable 'ret' is not initialized
- Line 190: variable 'res' is not initialized
- Line 219: do not use C-style cast to convert between unrelated types
- Line 260: variable 'ret' is not initialized
- Line 17: declaration uses identifier '_RTE_ATOMIC_X86_64_H_', which is a reserved identifier
- Line 29: variable 'res' is not initialized
- Line 145: variable 'ret' is not initialized
- Line 160: variable 'ret' is not initialized
- Line 174: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_BITOPS_H_', which is a reserved identifier
- Line 30: function-like macro 'RTE_BIT64' used; consider a 'constexpr' template function
- Line 28: function-like macro 'likely' used; consider a 'constexpr' template function
- Line 51: function-like macro 'rte_bswap16' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_COMMON_H_', which is a reserved identifier
- Line 50: macro 'RTE_CC_IS_GNU' used to declare a constant; consider using a 'constexpr' constant
- Line 88: declaration uses identifier '__rte_may_alias', which is a reserved identifier
- Line 91: declaration uses identifier '__rte_deprecated', which is a reserved identifier
- Line 92: declaration uses identifier '__rte_deprecated_msg', which is a reserved identifier
- Line 92: function-like macro '__rte_deprecated_msg' used; consider a 'constexpr' template function
- Line 108: declaration uses identifier '__rte_weak', which is a reserved identifier
- Line 113: declaration uses identifier '__rte_used', which is a reserved identifier
- Line 120: declaration uses identifier '__rte_unused', which is a reserved identifier
- Line 126: declaration uses identifier '__rte_restrict', which is a reserved identifier
- Line 135: function-like macro 'RTE_SET_USED' used; consider a 'constexpr' template function
- Line 148: function-like macro '__rte_format_printf' used; consider a 'constexpr' template function
- Line 158: declaration uses identifier '__rte_alloc_size', which is a reserved identifier
- Line 158: variadic macro '__rte_alloc_size' used; consider using a 'constexpr' variadic template function
- Line 164: macro 'RTE_PRIORITY_LOG' used to declare a constant; consider using a 'constexpr' constant
- Line 250: declaration uses identifier '__rte_warn_unused_result', which is a reserved identifier
- Line 260: declaration uses identifier '__rte_noinline', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_hot', which is a reserved identifier
- Line 270: declaration uses identifier '__rte_cold', which is a reserved identifier
- Line 282: declaration uses identifier '__rte_no_asan', which is a reserved identifier
- Line 290: function-like macro 'RTE_PTR_ADD' used; consider a 'constexpr' template function
- Line 443: declaration uses identifier '__rte_cache_min_aligned', which is a reserved identifier
- Line 464: do not declare C-style arrays, use std::array<> instead
- Line 824: macro argument should be enclosed in parentheses
- Line 837: function-like macro 'RTE_SIZEOF_FIELD' used; consider a 'constexpr' template function
- Line 841: function-like macro 'RTE_STR' used; consider a 'constexpr' template function
- Line 15: declaration uses identifier '__rte_experimental', which is a reserved identifier
- Line 33: declaration uses identifier '__rte_internal', which is a reserved identifier
- Line 13: declaration uses identifier '_RTE_CONFIG_H_', which is a reserved identifier
- Line 19: macro 'RTE_EXEC_ENV_LINUXAPP' used to declare a constant; consider using a 'constexpr' constant
- Line 7: declaration uses identifier '_RTE_CYCLES_X86_64_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_DEBUG_H_', which is a reserved identifier
- Line 43: variadic macro 'rte_panic' used; consider using a 'constexpr' variadic template function
- Line 46: function-like macro 'RTE_FUNC_PTR_OR_ERR_RET' used; consider a 'constexpr' template function
- Line 384: macro argument should be enclosed in parentheses
- Line 385: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_DEV_INFO_H_', which is a reserved identifier
- Line 44: macro 'RTE_ETH_MODULE_SFF_8079' used to declare a constant; consider using a 'constexpr' constant
- Line 35: macro 'RTE_DEVARGS_KEY_BUS' used to declare a constant; consider using a 'constexpr' constant
- Line 265: macro argument should be enclosed in parentheses
- Line 266: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_EAL_H_', which is a reserved identifier
- Line 28: macro 'RTE_MAGIC' used to declare a constant; consider using a 'constexpr' constant
- Line 28: macro 'RTE_ECPRI_REV_UP_TO_20' used to declare a constant; consider using a 'constexpr' constant
- Line 21: macro 'RTE_INTR_EVENT_ADD' used to declare a constant; consider using a 'constexpr' constant
- Line 12: declaration uses identifier '_RTE_ERRNO_H_', which is a reserved identifier
- Line 49: declaration uses identifier '__ELASTERROR', which is a reserved identifier
- Line 49: macro '__ELASTERROR' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_ESP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETH_CTRL_H_', which is a reserved identifier
- Line 30: macro 'RTE_NTUPLE_FLAGS_DST_IP' used to declare a constant; consider using a 'constexpr' constant
- Line 246: function-like macro 'RTE_ETH_FOREACH_MATCHING_DEV' used; consider a 'constexpr' template function
- Line 249: macro argument should be enclosed in parentheses
- Line 250: macro argument should be enclosed in parentheses
- Line 290: macro 'RTE_ETH_LINK_SPEED_AUTONEG' used to declare a constant; consider using a 'constexpr' constant
- Line 795: macro 'RTE_ETH_RSS_RETA_SIZE_64' used to declare a constant; consider using a 'constexpr' constant
- Line 2070: macro argument should be enclosed in parentheses
- Line 2071: macro argument should be enclosed in parentheses
- Line 2071: macro argument should be enclosed in parentheses
- Line 2086: function-like macro 'RTE_ETH_FOREACH_DEV' used; consider a 'constexpr' template function
- Line 2114: macro argument should be enclosed in parentheses
- Line 2115: macro argument should be enclosed in parentheses
- Line 2115: macro argument should be enclosed in parentheses
- Line 2141: function-like macro 'RTE_ETH_FOREACH_DEV_SIBLING' used; consider a 'constexpr' template function
- Line 2143: macro argument should be enclosed in parentheses
- Line 2144: macro argument should be enclosed in parentheses
- Line 2144: macro argument should be enclosed in parentheses
- Line 3603: flexible array members are a C99 feature
- Line 5864: variable 'p' is not initialized
- Line 5865: variable 'qd' is not initialized
- Line 5878: do not use array subscript when the index is not an integer constant expression
- Line 5903: redundant cast to the same type
- Line 5911: do not use C-style cast to convert between unrelated types
- Line 5936: variable 'qd' is not initialized
- Line 5949: do not use array subscript when the index is not an integer constant expression
- Line 5966: macro 'RTE_ETH_RX_DESC_AVAIL' used to declare a constant; consider using a 'constexpr' constant
- Line 6009: variable 'qd' is not initialized
- Line 6022: do not use array subscript when the index is not an integer constant expression
- Line 6038: macro 'RTE_ETH_TX_DESC_FULL' used to declare a constant; consider using a 'constexpr' constant
- Line 6080: variable 'qd' is not initialized
- Line 6093: do not use array subscript when the index is not an integer constant expression
- Line 6203: variable 'p' is not initialized
- Line 6204: variable 'qd' is not initialized
- Line 6217: do not use array subscript when the index is not an integer constant expression
- Line 6240: redundant cast to the same type
- Line 6250: do not use C-style cast to convert between unrelated types
- Line 6315: variable 'qd' is not initialized
- Line 6329: do not use array subscript when the index is not an integer constant expression
- Line 6: declaration uses identifier '_RTE_ETHDEV_CORE_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETHDEV_TRACE_FP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETHER_H_', which is a reserved identifier
- Line 25: macro 'RTE_ETHER_ADDR_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 84: do not use C-style cast to convert between unrelated types
- Line 85: do not use C-style cast to convert between unrelated types
- Line 102: do not use C-style cast to convert between unrelated types
- Line 149: do not use C-style cast to convert between unrelated types
- Line 333: do not use C-style cast to convert between unrelated types
- Line 358: variable 'nh' is not initialized
- Line 359: variable 'vh' is not initialized
- Line 369: do not use pointer arithmetic
- Line 378: do not use C-style cast to convert between unrelated types
- Line 9: declaration uses identifier '_RTE_GTP_H_', which is a reserved identifier
- Line 147: macro 'RTE_GTP_TYPE_IPV4' used to declare a constant; consider using a 'constexpr' constant
- Line 9: declaration uses identifier '_RTE_ICMP_H_', which is a reserved identifier
- Line 37: macro 'RTE_IP_ICMP_ECHO_REPLY' used to declare a constant; consider using a 'constexpr' constant
- Line 38: macro 'RTE_MAX_RXTX_INTR_VEC_ID' used to declare a constant; consider using a 'constexpr' constant
- Line 68: function-like macro 'RTE_IPV4' used; consider a 'constexpr' template function
- Line 164: variable 'end' is not initialized
- Line 166: do not use C-style cast to convert between unrelated types
- Line 195: declaration uses identifier '__rte_raw_cksum_reduce', which is a reserved identifier
- Line 215: variable 'sum' is not initialized
- Line 239: variable 'seg' is not initialized
- Line 240: variable 'buf' is not initialized
- Line 241: multiple declarations in a single statement reduces readability
- Line 241: variable 'tmp' is not initialized
- Line 242: multiple declarations in a single statement reduces readability
- Line 242: variable 'done' is not initialized
- Line 246: do not use pointer arithmetic
- Line 263: use nullptr
- Line 266: do not use pointer arithmetic
- Line 342: variable 'l3_len' is not initialized
- Line 362: declaration uses identifier '__rte_ipv4_udptcp_cksum', which is a reserved identifier
- Line 364: variable 'cksum' is not initialized
- Line 365: multiple declarations in a single statement reduces readability
- Line 365: variable 'l4_len' is not initialized
- Line 366: variable 'ip_hdr_len' is not initialized
- Line 417: declaration uses identifier '__rte_ipv4_udptcp_cksum_mbuf', which is a reserved identifier
- Line 421: variable 'raw_cksum' is not initialized
- Line 422: variable 'cksum' is not initialized
- Line 543: macro 'RTE_IPV6_HDR_FL_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 596: declaration uses identifier '__rte_ipv6_udptcp_cksum', which is a reserved identifier
- Line 598: variable 'cksum' is not initialized
- Line 599: variable 'l4_len' is not initialized
- Line 646: declaration uses identifier '__rte_ipv6_udptcp_cksum_mbuf', which is a reserved identifier
- Line 650: variable 'raw_cksum' is not initialized
- Line 651: variable 'cksum' is not initialized
- Line 765: macro 'RTE_IPV6_EHDR_MF_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 813: do not use pointer arithmetic
- Line 84: macro 'RTE_L2TPV2_MSG_TYPE_CONTROL' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_LCORE_H_', which is a reserved identifier
- Line 218: function-like macro 'RTE_LCORE_FOREACH' used; consider a 'constexpr' template function
- Line 220: macro argument should be enclosed in parentheses
- Line 221: macro argument should be enclosed in parentheses
- Line 226: function-like macro 'RTE_LCORE_FOREACH_WORKER' used; consider a 'constexpr' template function
- Line 228: macro argument should be enclosed in parentheses
- Line 229: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_LOG_H_', which is a reserved identifier
- Line 29: macro 'RTE_LOGTYPE_EAL' used to declare a constant; consider using a 'constexpr' constant
- Line 370: macro argument should be enclosed in parentheses
- Line 371: macro argument should be enclosed in parentheses
- Line 387: function-like macro 'RTE_LOG_REGISTER' used; consider a 'constexpr' template function
- Line 218: do not use C-style cast to convert between unrelated types
- Line 318: do not use C-style cast to convert between unrelated types
- Line 348: declaration uses identifier '__rte_mbuf_sanity_check', which is a reserved identifier
- Line 348: function-like macro '__rte_mbuf_sanity_check' used; consider a 'constexpr' template function
- Line 382: declaration uses identifier '__rte_mbuf_refcnt_update', which is a reserved identifier
- Line 510: function-like macro 'RTE_MBUF_PREFETCH_TO_FREE' used; consider a 'constexpr' template function
- Line 575: function-like macro 'MBUF_RAW_ALLOC_CHECK' used; consider a 'constexpr' template function
- Line 600: do not use C-style cast to convert between unrelated types
- Line 825: variable 'mbp_priv' is not initialized
- Line 827: do not use C-style cast to convert between unrelated types
- Line 848: do not use C-style cast to convert between unrelated types
- Line 907: variable 'm' is not initialized
- Line 908: use nullptr
- Line 931: variable 'rc' is not initialized
- Line 933: do not use C-style cast to convert between unrelated types
- Line 1006: do not use C-style cast to convert between unrelated types
- Line 1009: do not use C-style cast to convert between unrelated types
- Line 1014: do not use C-style cast to convert between unrelated types
- Line 1184: use nullptr
- Line 1200: declaration uses identifier '__rte_pktmbuf_free_extbuf', which is a reserved identifier
- Line 1216: declaration uses identifier '__rte_pktmbuf_free_direct', which is a reserved identifier
- Line 1218: variable 'md' is not initialized
- Line 1225: use nullptr
- Line 1253: multiple declarations in a single statement reduces readability
- Line 1253: variable 'buf_len' is not initialized
- Line 1254: variable 'priv_size' is not initialized
- Line 1281: do not use C-style cast to convert between unrelated types
- Line 1304: variable 'shinfo' is not initialized
- Line 1353: use nullptr
- Line 1356: use nullptr
- Line 1357: use nullptr
- Line 1370: use nullptr
- Line 1373: use nullptr
- Line 1374: use nullptr
- Line 1381: use nullptr
- Line 1397: use nullptr
- Line 1412: variable 'm_next' is not initialized
- Line 1414: use nullptr
- Line 1417: use nullptr
- Line 1500: use nullptr
- Line 1543: use nullptr
- Line 1556: function-like macro 'rte_pktmbuf_pkt_len' used; consider a 'constexpr' template function
- Line 1598: do not use C-style cast to convert between unrelated types
- Line 1619: variable 'm_last' is not initialized
- Line 1625: use nullptr
- Line 1627: do not use C-style cast to convert between unrelated types
- Line 1660: do not use C-style cast to convert between unrelated types
- Line 1710: declaration uses identifier '__rte_pktmbuf_read', which is a reserved identifier
- Line 1737: do not use pointer arithmetic
- Line 1863: declaration uses identifier '__rte_pktmbuf_linearize', which is a reserved identifier
- Line 1996: compound literals are a C99-specific feature
- Line 81: macro 'RTE_MBUF_F_RX_IP_CKSUM_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 80: macro 'RTE_MBUF_DYN_NAMESIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 75: macro 'RTE_PTYPE_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 72: do not use C-style cast to convert between unrelated types
- Line 428: variable 'bits' is not initialized
- Line 441: do not use C-style cast to convert between unrelated types
- Line 38: macro replacement list should be enclosed in parentheses
- Line 609: macro 'RTE_MEM_EVENT_CALLBACK_NAME_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 57: macro 'RTE_MEMPOOL_HEADER_COOKIE1' used to declare a constant; consider using a 'constexpr' constant
- Line 773: variable 'ret' is not initialized
- Line 802: variable 'ops' is not initialized
- Line 827: variable 'ops' is not initialized
- Line 828: variable 'ret' is not initialized
- Line 970: macro argument should be enclosed in parentheses
- Line 1318: use nullptr
- Line 1321: use nullptr
- Line 1324: do not use pointer arithmetic
- Line 1342: use nullptr
- Line 1365: variable 'cache_objs' is not initialized
- Line 1368: use nullptr
- Line 1387: do not use array subscript when the index is not an integer constant expression
- Line 1494: variable 'ret' is not initialized
- Line 1496: multiple declarations in a single statement reduces readability
- Line 1496: variable 'len' is not initialized
- Line 1497: variable 'cache_objs' is not initialized
- Line 1500: use nullptr
- Line 1505: do not use array subscript when the index is not an integer constant expression
- Line 1567: use nullptr
- Line 1603: variable 'ret' is not initialized
- Line 1636: variable 'cache' is not initialized
- Line 1693: variable 'ret' is not initialized
- Line 1790: variable 'hdr' is not initialized
- Line 1791: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_MEMZONE_H_', which is a reserved identifier
- Line 33: macro 'RTE_MEMZONE_2MB' used to declare a constant; consider using a 'constexpr' constant
- Line 418: multiple declarations in a single statement reduces readability
- Line 418: variable 'n_periods' is not initialized
- Line 418: variable 'tc' is not initialized
- Line 418: variable 'te' is not initialized
- Line 460: multiple declarations in a single statement reduces readability
- Line 460: variable 'n_periods' is not initialized
- Line 460: variable 'tc' is not initialized
- Line 460: variable 'te' is not initialized
- Line 501: multiple declarations in a single statement reduces readability
- Line 501: variable 'time_diff_tp' is not initialized
- Line 501: variable 'n_periods_tc' is not initialized
- Line 501: variable 'n_periods_tp' is not initialized
- Line 501: variable 'tc' is not initialized
- Line 501: variable 'tp' is not initialized
- Line 544: multiple declarations in a single statement reduces readability
- Line 544: variable 'time_diff_tp' is not initialized
- Line 544: variable 'n_periods_tc' is not initialized
- Line 544: variable 'n_periods_tp' is not initialized
- Line 544: variable 'tc' is not initialized
- Line 544: variable 'tp' is not initialized
- Line 587: multiple declarations in a single statement reduces readability
- Line 587: variable 'time_diff_te' is not initialized
- Line 587: variable 'n_periods_tc' is not initialized
- Line 587: variable 'n_periods_te' is not initialized
- Line 587: variable 'tc' is not initialized
- Line 587: variable 'te' is not initialized
- Line 631: multiple declarations in a single statement reduces readability
- Line 631: variable 'time_diff_te' is not initialized
- Line 631: variable 'n_periods_tc' is not initialized
- Line 631: variable 'n_periods_te' is not initialized
- Line 631: variable 'tc' is not initialized
- Line 631: variable 'te' is not initialized
- Line 6: declaration uses identifier '_RTE_OS_H_', which is a reserved identifier
- Line 21: function-like macro 'RTE_TAILQ_HEAD' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_PCI_DEV_DEFS_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PER_LCORE_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_POWER_INTRINSIC_X86_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PPP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PREFETCH_X86_64_H_', which is a reserved identifier
- Line 18: do not use C-style cast to convert between unrelated types
- Line 11: declaration uses identifier '_RTE_RING_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_CORE_H_', which is a reserved identifier
- Line 40: macro 'RTE_TAILQ_RING_NAME' used to declare a constant; consider using a 'constexpr' constant
- Line 96: declaration uses identifier '__rte_ring_hts_pos', which is a reserved identifier
- Line 153: macro 'RING_F_SP_ENQ' used to declare a constant; consider using a 'constexpr' constant
- Line 214: use nullptr
- Line 240: use nullptr
- Line 264: use nullptr
- Line 290: use nullptr
- Line 396: use nullptr
- Line 424: use nullptr
- Line 448: use nullptr
- Line 475: use nullptr
- Line 582: use nullptr
- Line 692: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_ELEM_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_enqueue_elems_32', which is a reserved identifier
- Line 17: variable 'i' is not initialized
- Line 18: use auto when initializing with a cast to avoid duplicating the type name
- Line 18: do not use C-style cast to convert between unrelated types
- Line 19: do not use C-style cast to convert between unrelated types
- Line 60: variable 'i' is not initialized
- Line 63: use auto when initializing with a cast to avoid duplicating the type name
- Line 63: do not use C-style cast to convert between unrelated types
- Line 64: do not use C-style cast to convert between unrelated types
- Line 93: variable 'i' is not initialized
- Line 96: use auto when initializing with a cast to avoid duplicating the type name
- Line 96: do not use C-style cast to convert between unrelated types
- Line 97: do not use C-style cast to convert between unrelated types
- Line 134: multiple declarations in a single statement reduces readability
- Line 134: variable 'scale' is not initialized
- Line 134: variable 'nr_idx' is not initialized
- Line 134: variable 'nr_num' is not initialized
- Line 134: variable 'nr_size' is not initialized
- Line 148: declaration uses identifier '__rte_ring_dequeue_elems_32', which is a reserved identifier
- Line 151: variable 'i' is not initialized
- Line 152: use auto when initializing with a cast to avoid duplicating the type name
- Line 152: do not use C-style cast to convert between unrelated types
- Line 153: do not use C-style cast to convert between unrelated types
- Line 194: variable 'i' is not initialized
- Line 197: use auto when initializing with a cast to avoid duplicating the type name
- Line 197: do not use C-style cast to convert between unrelated types
- Line 198: do not use C-style cast to convert between unrelated types
- Line 227: variable 'i' is not initialized
- Line 230: use auto when initializing with a cast to avoid duplicating the type name
- Line 230: do not use C-style cast to convert between unrelated types
- Line 231: do not use C-style cast to convert between unrelated types
- Line 264: multiple declarations in a single statement reduces readability
- Line 264: variable 'scale' is not initialized
- Line 264: variable 'nr_idx' is not initialized
- Line 264: variable 'nr_num' is not initialized
- Line 264: variable 'nr_size' is not initialized
- Line 315: declaration uses identifier '__rte_ring_do_enqueue_elem', which is a reserved identifier
- Line 320: multiple declarations in a single statement reduces readability
- Line 320: variable 'prod_next' is not initialized
- Line 321: variable 'free_entries' is not initialized
- Line 332: use nullptr
- Line 362: declaration uses identifier '__rte_ring_do_dequeue_elem', which is a reserved identifier
- Line 367: multiple declarations in a single statement reduces readability
- Line 367: variable 'cons_next' is not initialized
- Line 368: variable 'entries' is not initialized
- Line 380: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_GENERIC_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_update_tail', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_move_prod_head', which is a reserved identifier
- Line 62: variable 'success' is not initialized
- Line 125: declaration uses identifier '__rte_ring_move_cons_head', which is a reserved identifier
- Line 131: variable 'success' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_HTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_HTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_hts_update_tail', which is a reserved identifier
- Line 28: variable 'tail' is not initialized
- Line 42: declaration uses identifier '__rte_ring_hts_head_wait', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_hts_move_prod_head', which is a reserved identifier
- Line 59: variable 'n' is not initialized
- Line 60: multiple declarations in a single statement reduces readability
- Line 113: declaration uses identifier '__rte_ring_hts_move_cons_head', which is a reserved identifier
- Line 117: variable 'n' is not initialized
- Line 118: multiple declarations in a single statement reduces readability
- Line 187: declaration uses identifier '__rte_ring_do_hts_enqueue_elem', which is a reserved identifier
- Line 191: multiple declarations in a single statement reduces readability
- Line 191: variable 'head' is not initialized
- Line 200: use nullptr
- Line 228: declaration uses identifier '__rte_ring_do_hts_dequeue_elem', which is a reserved identifier
- Line 232: multiple declarations in a single statement reduces readability
- Line 232: variable 'head' is not initialized
- Line 241: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_H_', which is a reserved identifier
- Line 170: variable 'tail' is not initialized
- Line 333: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ELEM_PVT_H_', which is a reserved identifier
- Line 31: declaration uses identifier '__rte_ring_st_get_tail', which is a reserved identifier
- Line 34: multiple declarations in a single statement reduces readability
- Line 34: variable 'n' is not initialized
- Line 34: variable 't' is not initialized
- Line 53: declaration uses identifier '__rte_ring_st_set_head_tail', which is a reserved identifier
- Line 56: variable 'pos' is not initialized
- Line 75: declaration uses identifier '__rte_ring_hts_get_tail', which is a reserved identifier
- Line 78: variable 'n' is not initialized
- Line 97: declaration uses identifier '__rte_ring_hts_set_head_tail', which is a reserved identifier
- Line 114: declaration uses identifier '__rte_ring_do_enqueue_start', which is a reserved identifier
- Line 117: multiple declarations in a single statement reduces readability
- Line 117: variable 'head' is not initialized
- Line 117: variable 'next' is not initialized
- Line 137: use nullptr
- Line 147: declaration uses identifier '__rte_ring_do_dequeue_start', which is a reserved identifier
- Line 151: multiple declarations in a single statement reduces readability
- Line 151: variable 'head' is not initialized
- Line 151: variable 'next' is not initialized
- Line 174: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ZC_H_', which is a reserved identifier
- Line 98: declaration uses identifier '__rte_ring_get_elem_addr', which is a reserved identifier
- Line 101: multiple declarations in a single statement reduces readability
- Line 101: variable 'scale' is not initialized
- Line 101: variable 'nr_idx' is not initialized
- Line 102: use auto when initializing with a cast to avoid duplicating the type name
- Line 102: do not use C-style cast to convert between unrelated types
- Line 124: declaration uses identifier '__rte_ring_do_enqueue_zc_elem_start', which is a reserved identifier
- Line 128: multiple declarations in a single statement reduces readability
- Line 128: variable 'head' is not initialized
- Line 128: variable 'next' is not initialized
- Line 151: use nullptr
- Line 291: variable 'tail' is not initialized
- Line 331: declaration uses identifier '__rte_ring_do_dequeue_zc_elem_start', which is a reserved identifier
- Line 335: multiple declarations in a single statement reduces readability
- Line 335: variable 'head' is not initialized
- Line 335: variable 'next' is not initialized
- Line 359: use nullptr
- Line 497: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_RTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_RTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_rts_update_tail', which is a reserved identifier
- Line 27: multiple declarations in a single statement reduces readability
- Line 53: declaration uses identifier '__rte_ring_rts_head_wait', which is a reserved identifier
- Line 56: variable 'max' is not initialized
- Line 70: declaration uses identifier '__rte_ring_rts_move_prod_head', which is a reserved identifier
- Line 74: variable 'n' is not initialized
- Line 75: multiple declarations in a single statement reduces readability
- Line 128: declaration uses identifier '__rte_ring_rts_move_cons_head', which is a reserved identifier
- Line 132: variable 'n' is not initialized
- Line 133: multiple declarations in a single statement reduces readability
- Line 202: declaration uses identifier '__rte_ring_do_rts_enqueue_elem', which is a reserved identifier
- Line 206: multiple declarations in a single statement reduces readability
- Line 206: variable 'head' is not initialized
- Line 215: use nullptr
- Line 243: declaration uses identifier '__rte_ring_do_rts_dequeue_elem', which is a reserved identifier
- Line 247: multiple declarations in a single statement reduces readability
- Line 247: variable 'head' is not initialized
- Line 256: use nullptr
- Line 6: declaration uses identifier '_RTE_RTM_H_', which is a reserved identifier
- Line 6: macro '_RTE_RTM_H_' used to declare a constant; consider using a 'constexpr' constant
- Line 26: function-like macro 'RTE_XABORT_CODE' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_RWLOCK_X86_64_H_', which is a reserved identifier
- Line 15: declaration uses identifier '_RTE_SCTP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_SPINLOCK_X86_64_H_', which is a reserved identifier
- Line 80: multiple declarations in a single statement reduces readability
- Line 80: variable 'retries' is not initialized
- Line 109: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type 'int' is implementation-defined
- Line 74: do not use pointer arithmetic
- Line 43: macro 'RTE_TCP_CWR_FLAG' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_TRACE_POINT_H_', which is a reserved identifier
- Line 78: variadic macro 'RTE_TRACE_POINT' used; consider using a 'constexpr' variadic template function
- Line 151: macro '__RTE_TRACE_EMIT_STRING_LEN_MAX' used to declare a constant; consider using a 'constexpr' constant
- Line 153: declaration uses identifier '__RTE_TRACE_EVENT_HEADER_SZ', which is a reserved identifier
- Line 211: declaration uses identifier '__rte_trace_point_fp_is_enabled', which is a reserved identifier
- Line 227: declaration uses identifier '__rte_trace_mem_per_thread_alloc', which is a reserved identifier
- Line 245: declaration uses identifier '__rte_trace_point_emit_field', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_trace_point_register', which is a reserved identifier
- Line 379: declaration uses identifier '__rte_trace_point_emit_header_generic', which is a reserved identifier
- Line 379: function-like macro '__rte_trace_point_emit_header_generic' used; consider a 'constexpr' template function
- Line 380: function-like macro '__rte_trace_point_emit_header_fp' used; consider a 'constexpr' template function
- Line 11: declaration uses identifier '_RTE_UUID_H_', which is a reserved identifier
- Line 24: do not declare C-style arrays, use std::array<> instead
- Line 6: declaration uses identifier '_RTE_VXLAN_H_', which is a reserved identifier
- Line 25: macro 'RTE_VXLAN_DEFAULT_PORT' used to declare a constant; consider using a 'constexpr' constant
- Line 18: nested namespaces can be concatenated
- Line 23: macro 'NUM_MBUFS' used to declare a constant; consider using a 'constexpr' constant
- Line 24: macro 'MBUF_CACHE_SIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 47: do not declare C-style arrays, use std::array<> instead
- Line 15: nested namespaces can be concatenated
- Line 15: nested namespaces can be concatenated
- Line 37: use auto when initializing with a cast to avoid duplicating the type name
- Line 37: do not use C-style cast to convert between unrelated types
- Line 38: use auto when initializing with a cast to avoid duplicating the type name
- Line 38: do not use C-style cast to convert between unrelated types
- Line 39: variable 'v' is not initialized
- Line 48: use auto when initializing with a cast to avoid duplicating the type name
- Line 48: do not use C-style cast to convert between unrelated types
- Line 49: use auto when initializing with a cast to avoid duplicating the type name
- Line 49: do not use C-style cast to convert between unrelated types
- Line 50: do not use pointer arithmetic
- Line 50: do not use pointer arithmetic
- Line 51: do not use pointer arithmetic
- Line 51: do not use pointer arithmetic
- Line 58: use auto when initializing with a cast to avoid duplicating the type name
- Line 58: do not use C-style cast to convert between unrelated types
- Line 59: use auto when initializing with a cast to avoid duplicating the type name
- Line 59: do not use C-style cast to convert between unrelated types
- Line 60: variable 'v' is not initialized
- Line 69: use auto when initializing with a cast to avoid duplicating the type name
- Line 69: do not use C-style cast to convert between unrelated types
- Line 70: use auto when initializing with a cast to avoid duplicating the type name
- Line 70: do not use C-style cast to convert between unrelated types
- Line 2: declaration uses identifier '_IPV4_ADDR_H_', which is a reserved identifier
- Line 25: do not use array subscript when the index is not an integer constant expression
- Line 29: do not declare C-style arrays, use std::array<> instead
- Line 15: nested namespaces can be concatenated
- Line 20: do not declare C-style arrays, use std::array<> instead
- Line 19: nested namespaces can be concatenated
- Line 35: nested namespaces can be concatenated
- Line 11: inclusion of deprecated C++ header 'inttypes.h'; consider using 'cinttypes' instead
- Line 20: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead
- Line 47: unused variable 'garps_sent'
- Line 52: variable 'eth_hdr' is not initialized
- Line 53: variable 'arp_hdr' is not initialized
- Line 56: do not use pointer arithmetic
- Line 56: do not use C-style cast to convert between unrelated types
- Line 61: do not use C-style cast to convert between unrelated types
- Line 61: C-style casts are discouraged; use reinterpret_cast
- Line 61: do not use pointer arithmetic
- Line 107: use auto when initializing with a cast to avoid duplicating the type name
- Line 107: do not use C-style cast to convert between unrelated types
- Line 107: C-style casts are discouraged; use static_cast
- Line 107: do not manage memory manually; consider a container or a smart pointer
- Line 110: Value stored to 'stats' during its initialization is never read
- Line 123: do not use C-style cast to convert between unrelated types
- Line 123: C-style casts are discouraged; use static_cast
- Line 123: do not manage memory manually; consider a container or a smart pointer
- Line 126: unused variable 'once'
- Line 133: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type '__int_type' (aka 'int') is implementation-defined
- Line 133: do not use pointer arithmetic
- Line 136: do not use pointer arithmetic
- Line 142: do not use pointer arithmetic
- Line 149: do not use pointer arithmetic
- Line 149: do not use pointer arithmetic
- Line 155: do not use pointer arithmetic
- Line 161: do not use pointer arithmetic
- Line 161: do not use pointer arithmetic
- Line 220: use emplace_back instead of push_back
- Line 222: use emplace_back instead of push_back
- Line 251: narrowing conversion from 'unsigned int' to signed type 'key_type' (aka 'int') is implementation-defined
- Line 264: variable 'flow' is not initialized
- Line 272: C-style casts are discouraged; use static_cast
test/apps/test_dpdk_stats.cxx
Errors
- Line 0: The standard copyright message wasn't found.
- Line 1: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 32: An unsigned integer appears to be used here.
- Line 33: An unsigned integer appears to be used here.
- Line 34: An unsigned integer appears to be used here.
- Line 35: An unsigned integer appears to be used here.
- Line 36: An unsigned integer appears to be used here.
- Line 37: An unsigned integer appears to be used here.
- Line 44: An unsigned integer appears to be used here.
- Line 47: Using C-style cast. Use one of the C++ cast operators instead
- Line 56: An unsigned integer appears to be used here.
- Line 57: An unsigned integer appears to be used here.
- Line 61: Use of NULL #define found; prefer using the nullptr keyword
- Line 63: "printf" should not be used for output in DUNE DAQ software.
- Line 67: Using C-style cast. Use one of the C++ cast operators instead
- Line 68: Use of NULL #define found; prefer using the nullptr keyword
- Line 69: "printf" should not be used for output in DUNE DAQ software.
- Line 74: "printf" should not be used for output in DUNE DAQ software.
- Line 78: Using C-style cast. Use one of the C++ cast operators instead
- Line 78: An unsigned integer appears to be used here.
- Line 79: Use of NULL #define found; prefer using the nullptr keyword
- Line 80: "printf" should not be used for output in DUNE DAQ software.
- Line 84: Use of NULL #define found; prefer using the nullptr keyword
- Line 85: "printf" should not be used for output in DUNE DAQ software.
- Line 101: An unsigned integer appears to be used here.
- Line 102: An unsigned integer appears to be used here.
- Line 103: An unsigned integer appears to be used here.
- Line 104: An unsigned integer appears to be used here.
- Line 112: Use int16/int64/etc, rather than the C type long
- Line 113: An unsigned integer appears to be used here.
- Line 117: Use of NULL #define found; prefer using the nullptr keyword
- Line 132: Using C-style cast. Use one of the C++ cast operators instead
- Line 139: An unsigned integer appears to be used here.
- Line 155: Use operator ! instead of not
- Line 188: Small and focused functions are preferred: lcore_main() has 100 non-comment lines (error triggered by exceeding 80 lines) (disable this by putting "// NOLINT" after the function's closing brace.)
- Line 200: An unsigned integer appears to be used here.
- Line 201: An unsigned integer appears to be used here.
- Line 202: An unsigned integer appears to be used here.
- Line 203: An unsigned integer appears to be used here.
- Line 205: Add #include
- Line 205: Add #include
for unique_ptr<>
Warnings
- Line 6: declaration uses identifier '_RTE_ATOMIC_H_', which is a reserved identifier
- Line 119: function-like macro 'rte_compiler_barrier' used; consider a 'constexpr' template function
- Line 30: macro 'RTE_BIG_ENDIAN' used to declare a constant; consider using a 'constexpr' constant
- Line 93: consider replacing 'unsigned long' with 'uint64'
- Line 19: macro 'MS_PER_S' used to declare a constant; consider using a 'constexpr' constant
- Line 132: function-like macro 'RTE_WAIT_UNTIL_MASKED' used; consider a 'constexpr' template function
- Line 135: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_POWER_INTRINSIC_H_', which is a reserved identifier
- Line 22: macro 'RTE_POWER_MONITOR_OPAQUE_SZ' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_RWLOCK_H_', which is a reserved identifier
- Line 52: macro 'RTE_RWLOCK_WAIT' used to declare a constant; consider using a 'constexpr' constant
- Line 90: converting integer literal to bool, use bool literal instead
- Line 123: variable 'x' is not initialized
- Line 170: variable 'x' is not initialized
- Line 175: converting integer literal to bool, use bool literal instead
- Line 190: variable 'x' is not initialized
- Line 192: converting integer literal to bool, use bool literal instead
- Line 198: converting integer literal to bool, use bool literal instead
- Line 6: declaration uses identifier '_RTE_SPINLOCK_H_', which is a reserved identifier
- Line 223: increment of object of volatile-qualified type 'volatile int' is deprecated
- Line 6: declaration uses identifier '_RTE_ATOMIC_X86_H_', which is a reserved identifier
- Line 21: macro 'MPLOCKED' used to declare a constant; consider using a 'constexpr' constant
- Line 133: do not use C-style cast to convert between unrelated types
- Line 174: variable 'ret' is not initialized
- Line 190: variable 'res' is not initialized
- Line 219: do not use C-style cast to convert between unrelated types
- Line 260: variable 'ret' is not initialized
- Line 17: declaration uses identifier '_RTE_ATOMIC_X86_64_H_', which is a reserved identifier
- Line 29: variable 'res' is not initialized
- Line 145: variable 'ret' is not initialized
- Line 160: variable 'ret' is not initialized
- Line 174: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_BITOPS_H_', which is a reserved identifier
- Line 30: function-like macro 'RTE_BIT64' used; consider a 'constexpr' template function
- Line 28: function-like macro 'likely' used; consider a 'constexpr' template function
- Line 51: function-like macro 'rte_bswap16' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_COMMON_H_', which is a reserved identifier
- Line 50: macro 'RTE_CC_IS_GNU' used to declare a constant; consider using a 'constexpr' constant
- Line 88: declaration uses identifier '__rte_may_alias', which is a reserved identifier
- Line 91: declaration uses identifier '__rte_deprecated', which is a reserved identifier
- Line 92: declaration uses identifier '__rte_deprecated_msg', which is a reserved identifier
- Line 92: function-like macro '__rte_deprecated_msg' used; consider a 'constexpr' template function
- Line 108: declaration uses identifier '__rte_weak', which is a reserved identifier
- Line 113: declaration uses identifier '__rte_used', which is a reserved identifier
- Line 120: declaration uses identifier '__rte_unused', which is a reserved identifier
- Line 126: declaration uses identifier '__rte_restrict', which is a reserved identifier
- Line 135: function-like macro 'RTE_SET_USED' used; consider a 'constexpr' template function
- Line 148: function-like macro '__rte_format_printf' used; consider a 'constexpr' template function
- Line 158: declaration uses identifier '__rte_alloc_size', which is a reserved identifier
- Line 158: variadic macro '__rte_alloc_size' used; consider using a 'constexpr' variadic template function
- Line 164: macro 'RTE_PRIORITY_LOG' used to declare a constant; consider using a 'constexpr' constant
- Line 250: declaration uses identifier '__rte_warn_unused_result', which is a reserved identifier
- Line 260: declaration uses identifier '__rte_noinline', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_hot', which is a reserved identifier
- Line 270: declaration uses identifier '__rte_cold', which is a reserved identifier
- Line 282: declaration uses identifier '__rte_no_asan', which is a reserved identifier
- Line 290: function-like macro 'RTE_PTR_ADD' used; consider a 'constexpr' template function
- Line 443: declaration uses identifier '__rte_cache_min_aligned', which is a reserved identifier
- Line 464: do not declare C-style arrays, use std::array<> instead
- Line 824: macro argument should be enclosed in parentheses
- Line 837: function-like macro 'RTE_SIZEOF_FIELD' used; consider a 'constexpr' template function
- Line 841: function-like macro 'RTE_STR' used; consider a 'constexpr' template function
- Line 15: declaration uses identifier '__rte_experimental', which is a reserved identifier
- Line 33: declaration uses identifier '__rte_internal', which is a reserved identifier
- Line 13: declaration uses identifier '_RTE_CONFIG_H_', which is a reserved identifier
- Line 19: macro 'RTE_EXEC_ENV_LINUXAPP' used to declare a constant; consider using a 'constexpr' constant
- Line 7: declaration uses identifier '_RTE_CYCLES_X86_64_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_DEBUG_H_', which is a reserved identifier
- Line 43: variadic macro 'rte_panic' used; consider using a 'constexpr' variadic template function
- Line 46: function-like macro 'RTE_FUNC_PTR_OR_ERR_RET' used; consider a 'constexpr' template function
- Line 384: macro argument should be enclosed in parentheses
- Line 385: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_DEV_INFO_H_', which is a reserved identifier
- Line 44: macro 'RTE_ETH_MODULE_SFF_8079' used to declare a constant; consider using a 'constexpr' constant
- Line 35: macro 'RTE_DEVARGS_KEY_BUS' used to declare a constant; consider using a 'constexpr' constant
- Line 265: macro argument should be enclosed in parentheses
- Line 266: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_EAL_H_', which is a reserved identifier
- Line 28: macro 'RTE_MAGIC' used to declare a constant; consider using a 'constexpr' constant
- Line 28: macro 'RTE_ECPRI_REV_UP_TO_20' used to declare a constant; consider using a 'constexpr' constant
- Line 21: macro 'RTE_INTR_EVENT_ADD' used to declare a constant; consider using a 'constexpr' constant
- Line 12: declaration uses identifier '_RTE_ERRNO_H_', which is a reserved identifier
- Line 49: declaration uses identifier '__ELASTERROR', which is a reserved identifier
- Line 49: macro '__ELASTERROR' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_ESP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETH_CTRL_H_', which is a reserved identifier
- Line 30: macro 'RTE_NTUPLE_FLAGS_DST_IP' used to declare a constant; consider using a 'constexpr' constant
- Line 246: function-like macro 'RTE_ETH_FOREACH_MATCHING_DEV' used; consider a 'constexpr' template function
- Line 249: macro argument should be enclosed in parentheses
- Line 250: macro argument should be enclosed in parentheses
- Line 290: macro 'RTE_ETH_LINK_SPEED_AUTONEG' used to declare a constant; consider using a 'constexpr' constant
- Line 795: macro 'RTE_ETH_RSS_RETA_SIZE_64' used to declare a constant; consider using a 'constexpr' constant
- Line 2070: macro argument should be enclosed in parentheses
- Line 2071: macro argument should be enclosed in parentheses
- Line 2071: macro argument should be enclosed in parentheses
- Line 2086: function-like macro 'RTE_ETH_FOREACH_DEV' used; consider a 'constexpr' template function
- Line 2114: macro argument should be enclosed in parentheses
- Line 2115: macro argument should be enclosed in parentheses
- Line 2115: macro argument should be enclosed in parentheses
- Line 2141: function-like macro 'RTE_ETH_FOREACH_DEV_SIBLING' used; consider a 'constexpr' template function
- Line 2143: macro argument should be enclosed in parentheses
- Line 2144: macro argument should be enclosed in parentheses
- Line 2144: macro argument should be enclosed in parentheses
- Line 3603: flexible array members are a C99 feature
- Line 5864: variable 'p' is not initialized
- Line 5865: variable 'qd' is not initialized
- Line 5878: do not use array subscript when the index is not an integer constant expression
- Line 5903: redundant cast to the same type
- Line 5911: do not use C-style cast to convert between unrelated types
- Line 5936: variable 'qd' is not initialized
- Line 5949: do not use array subscript when the index is not an integer constant expression
- Line 5966: macro 'RTE_ETH_RX_DESC_AVAIL' used to declare a constant; consider using a 'constexpr' constant
- Line 6009: variable 'qd' is not initialized
- Line 6022: do not use array subscript when the index is not an integer constant expression
- Line 6038: macro 'RTE_ETH_TX_DESC_FULL' used to declare a constant; consider using a 'constexpr' constant
- Line 6080: variable 'qd' is not initialized
- Line 6093: do not use array subscript when the index is not an integer constant expression
- Line 6203: variable 'p' is not initialized
- Line 6204: variable 'qd' is not initialized
- Line 6217: do not use array subscript when the index is not an integer constant expression
- Line 6240: redundant cast to the same type
- Line 6250: do not use C-style cast to convert between unrelated types
- Line 6315: variable 'qd' is not initialized
- Line 6329: do not use array subscript when the index is not an integer constant expression
- Line 6: declaration uses identifier '_RTE_ETHDEV_CORE_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETHDEV_TRACE_FP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETHER_H_', which is a reserved identifier
- Line 25: macro 'RTE_ETHER_ADDR_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 84: do not use C-style cast to convert between unrelated types
- Line 85: do not use C-style cast to convert between unrelated types
- Line 102: do not use C-style cast to convert between unrelated types
- Line 149: do not use C-style cast to convert between unrelated types
- Line 333: do not use C-style cast to convert between unrelated types
- Line 358: variable 'nh' is not initialized
- Line 359: variable 'vh' is not initialized
- Line 369: do not use pointer arithmetic
- Line 378: do not use C-style cast to convert between unrelated types
- Line 9: declaration uses identifier '_RTE_GTP_H_', which is a reserved identifier
- Line 147: macro 'RTE_GTP_TYPE_IPV4' used to declare a constant; consider using a 'constexpr' constant
- Line 9: declaration uses identifier '_RTE_ICMP_H_', which is a reserved identifier
- Line 37: macro 'RTE_IP_ICMP_ECHO_REPLY' used to declare a constant; consider using a 'constexpr' constant
- Line 38: macro 'RTE_MAX_RXTX_INTR_VEC_ID' used to declare a constant; consider using a 'constexpr' constant
- Line 68: function-like macro 'RTE_IPV4' used; consider a 'constexpr' template function
- Line 164: variable 'end' is not initialized
- Line 166: do not use C-style cast to convert between unrelated types
- Line 195: declaration uses identifier '__rte_raw_cksum_reduce', which is a reserved identifier
- Line 215: variable 'sum' is not initialized
- Line 239: variable 'seg' is not initialized
- Line 240: variable 'buf' is not initialized
- Line 241: multiple declarations in a single statement reduces readability
- Line 241: variable 'tmp' is not initialized
- Line 242: multiple declarations in a single statement reduces readability
- Line 242: variable 'done' is not initialized
- Line 246: do not use pointer arithmetic
- Line 263: use nullptr
- Line 266: do not use pointer arithmetic
- Line 342: variable 'l3_len' is not initialized
- Line 362: declaration uses identifier '__rte_ipv4_udptcp_cksum', which is a reserved identifier
- Line 364: variable 'cksum' is not initialized
- Line 365: multiple declarations in a single statement reduces readability
- Line 365: variable 'l4_len' is not initialized
- Line 366: variable 'ip_hdr_len' is not initialized
- Line 417: declaration uses identifier '__rte_ipv4_udptcp_cksum_mbuf', which is a reserved identifier
- Line 421: variable 'raw_cksum' is not initialized
- Line 422: variable 'cksum' is not initialized
- Line 543: macro 'RTE_IPV6_HDR_FL_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 596: declaration uses identifier '__rte_ipv6_udptcp_cksum', which is a reserved identifier
- Line 598: variable 'cksum' is not initialized
- Line 599: variable 'l4_len' is not initialized
- Line 646: declaration uses identifier '__rte_ipv6_udptcp_cksum_mbuf', which is a reserved identifier
- Line 650: variable 'raw_cksum' is not initialized
- Line 651: variable 'cksum' is not initialized
- Line 765: macro 'RTE_IPV6_EHDR_MF_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 813: do not use pointer arithmetic
- Line 84: macro 'RTE_L2TPV2_MSG_TYPE_CONTROL' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_LCORE_H_', which is a reserved identifier
- Line 218: function-like macro 'RTE_LCORE_FOREACH' used; consider a 'constexpr' template function
- Line 220: macro argument should be enclosed in parentheses
- Line 221: macro argument should be enclosed in parentheses
- Line 226: function-like macro 'RTE_LCORE_FOREACH_WORKER' used; consider a 'constexpr' template function
- Line 228: macro argument should be enclosed in parentheses
- Line 229: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_LOG_H_', which is a reserved identifier
- Line 29: macro 'RTE_LOGTYPE_EAL' used to declare a constant; consider using a 'constexpr' constant
- Line 370: macro argument should be enclosed in parentheses
- Line 371: macro argument should be enclosed in parentheses
- Line 387: function-like macro 'RTE_LOG_REGISTER' used; consider a 'constexpr' template function
- Line 218: do not use C-style cast to convert between unrelated types
- Line 318: do not use C-style cast to convert between unrelated types
- Line 348: declaration uses identifier '__rte_mbuf_sanity_check', which is a reserved identifier
- Line 348: function-like macro '__rte_mbuf_sanity_check' used; consider a 'constexpr' template function
- Line 382: declaration uses identifier '__rte_mbuf_refcnt_update', which is a reserved identifier
- Line 510: function-like macro 'RTE_MBUF_PREFETCH_TO_FREE' used; consider a 'constexpr' template function
- Line 575: function-like macro 'MBUF_RAW_ALLOC_CHECK' used; consider a 'constexpr' template function
- Line 600: do not use C-style cast to convert between unrelated types
- Line 825: variable 'mbp_priv' is not initialized
- Line 827: do not use C-style cast to convert between unrelated types
- Line 848: do not use C-style cast to convert between unrelated types
- Line 907: variable 'm' is not initialized
- Line 908: use nullptr
- Line 931: variable 'rc' is not initialized
- Line 933: do not use C-style cast to convert between unrelated types
- Line 1006: do not use C-style cast to convert between unrelated types
- Line 1009: do not use C-style cast to convert between unrelated types
- Line 1014: do not use C-style cast to convert between unrelated types
- Line 1184: use nullptr
- Line 1200: declaration uses identifier '__rte_pktmbuf_free_extbuf', which is a reserved identifier
- Line 1216: declaration uses identifier '__rte_pktmbuf_free_direct', which is a reserved identifier
- Line 1218: variable 'md' is not initialized
- Line 1225: use nullptr
- Line 1253: multiple declarations in a single statement reduces readability
- Line 1253: variable 'buf_len' is not initialized
- Line 1254: variable 'priv_size' is not initialized
- Line 1281: do not use C-style cast to convert between unrelated types
- Line 1304: variable 'shinfo' is not initialized
- Line 1353: use nullptr
- Line 1356: use nullptr
- Line 1357: use nullptr
- Line 1370: use nullptr
- Line 1373: use nullptr
- Line 1374: use nullptr
- Line 1381: use nullptr
- Line 1397: use nullptr
- Line 1412: variable 'm_next' is not initialized
- Line 1414: use nullptr
- Line 1417: use nullptr
- Line 1500: use nullptr
- Line 1543: use nullptr
- Line 1556: function-like macro 'rte_pktmbuf_pkt_len' used; consider a 'constexpr' template function
- Line 1598: do not use C-style cast to convert between unrelated types
- Line 1619: variable 'm_last' is not initialized
- Line 1625: use nullptr
- Line 1627: do not use C-style cast to convert between unrelated types
- Line 1660: do not use C-style cast to convert between unrelated types
- Line 1710: declaration uses identifier '__rte_pktmbuf_read', which is a reserved identifier
- Line 1737: do not use pointer arithmetic
- Line 1863: declaration uses identifier '__rte_pktmbuf_linearize', which is a reserved identifier
- Line 1996: compound literals are a C99-specific feature
- Line 81: macro 'RTE_MBUF_F_RX_IP_CKSUM_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 80: macro 'RTE_MBUF_DYN_NAMESIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 75: macro 'RTE_PTYPE_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 72: do not use C-style cast to convert between unrelated types
- Line 428: variable 'bits' is not initialized
- Line 441: do not use C-style cast to convert between unrelated types
- Line 38: macro replacement list should be enclosed in parentheses
- Line 609: macro 'RTE_MEM_EVENT_CALLBACK_NAME_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 57: macro 'RTE_MEMPOOL_HEADER_COOKIE1' used to declare a constant; consider using a 'constexpr' constant
- Line 773: variable 'ret' is not initialized
- Line 802: variable 'ops' is not initialized
- Line 827: variable 'ops' is not initialized
- Line 828: variable 'ret' is not initialized
- Line 970: macro argument should be enclosed in parentheses
- Line 1318: use nullptr
- Line 1321: use nullptr
- Line 1324: do not use pointer arithmetic
- Line 1342: use nullptr
- Line 1365: variable 'cache_objs' is not initialized
- Line 1368: use nullptr
- Line 1387: do not use array subscript when the index is not an integer constant expression
- Line 1494: variable 'ret' is not initialized
- Line 1496: multiple declarations in a single statement reduces readability
- Line 1496: variable 'len' is not initialized
- Line 1497: variable 'cache_objs' is not initialized
- Line 1500: use nullptr
- Line 1505: do not use array subscript when the index is not an integer constant expression
- Line 1567: use nullptr
- Line 1603: variable 'ret' is not initialized
- Line 1636: variable 'cache' is not initialized
- Line 1693: variable 'ret' is not initialized
- Line 1790: variable 'hdr' is not initialized
- Line 1791: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_MEMZONE_H_', which is a reserved identifier
- Line 33: macro 'RTE_MEMZONE_2MB' used to declare a constant; consider using a 'constexpr' constant
- Line 418: multiple declarations in a single statement reduces readability
- Line 418: variable 'n_periods' is not initialized
- Line 418: variable 'tc' is not initialized
- Line 418: variable 'te' is not initialized
- Line 460: multiple declarations in a single statement reduces readability
- Line 460: variable 'n_periods' is not initialized
- Line 460: variable 'tc' is not initialized
- Line 460: variable 'te' is not initialized
- Line 501: multiple declarations in a single statement reduces readability
- Line 501: variable 'time_diff_tp' is not initialized
- Line 501: variable 'n_periods_tc' is not initialized
- Line 501: variable 'n_periods_tp' is not initialized
- Line 501: variable 'tc' is not initialized
- Line 501: variable 'tp' is not initialized
- Line 544: multiple declarations in a single statement reduces readability
- Line 544: variable 'time_diff_tp' is not initialized
- Line 544: variable 'n_periods_tc' is not initialized
- Line 544: variable 'n_periods_tp' is not initialized
- Line 544: variable 'tc' is not initialized
- Line 544: variable 'tp' is not initialized
- Line 587: multiple declarations in a single statement reduces readability
- Line 587: variable 'time_diff_te' is not initialized
- Line 587: variable 'n_periods_tc' is not initialized
- Line 587: variable 'n_periods_te' is not initialized
- Line 587: variable 'tc' is not initialized
- Line 587: variable 'te' is not initialized
- Line 631: multiple declarations in a single statement reduces readability
- Line 631: variable 'time_diff_te' is not initialized
- Line 631: variable 'n_periods_tc' is not initialized
- Line 631: variable 'n_periods_te' is not initialized
- Line 631: variable 'tc' is not initialized
- Line 631: variable 'te' is not initialized
- Line 6: declaration uses identifier '_RTE_OS_H_', which is a reserved identifier
- Line 21: function-like macro 'RTE_TAILQ_HEAD' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_PCI_DEV_DEFS_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PER_LCORE_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_POWER_INTRINSIC_X86_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PPP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PREFETCH_X86_64_H_', which is a reserved identifier
- Line 18: do not use C-style cast to convert between unrelated types
- Line 11: declaration uses identifier '_RTE_RING_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_CORE_H_', which is a reserved identifier
- Line 40: macro 'RTE_TAILQ_RING_NAME' used to declare a constant; consider using a 'constexpr' constant
- Line 96: declaration uses identifier '__rte_ring_hts_pos', which is a reserved identifier
- Line 153: macro 'RING_F_SP_ENQ' used to declare a constant; consider using a 'constexpr' constant
- Line 214: use nullptr
- Line 240: use nullptr
- Line 264: use nullptr
- Line 290: use nullptr
- Line 396: use nullptr
- Line 424: use nullptr
- Line 448: use nullptr
- Line 475: use nullptr
- Line 582: use nullptr
- Line 692: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_ELEM_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_enqueue_elems_32', which is a reserved identifier
- Line 17: variable 'i' is not initialized
- Line 18: use auto when initializing with a cast to avoid duplicating the type name
- Line 18: do not use C-style cast to convert between unrelated types
- Line 19: do not use C-style cast to convert between unrelated types
- Line 60: variable 'i' is not initialized
- Line 63: use auto when initializing with a cast to avoid duplicating the type name
- Line 63: do not use C-style cast to convert between unrelated types
- Line 64: do not use C-style cast to convert between unrelated types
- Line 93: variable 'i' is not initialized
- Line 96: use auto when initializing with a cast to avoid duplicating the type name
- Line 96: do not use C-style cast to convert between unrelated types
- Line 97: do not use C-style cast to convert between unrelated types
- Line 134: multiple declarations in a single statement reduces readability
- Line 134: variable 'scale' is not initialized
- Line 134: variable 'nr_idx' is not initialized
- Line 134: variable 'nr_num' is not initialized
- Line 134: variable 'nr_size' is not initialized
- Line 148: declaration uses identifier '__rte_ring_dequeue_elems_32', which is a reserved identifier
- Line 151: variable 'i' is not initialized
- Line 152: use auto when initializing with a cast to avoid duplicating the type name
- Line 152: do not use C-style cast to convert between unrelated types
- Line 153: do not use C-style cast to convert between unrelated types
- Line 194: variable 'i' is not initialized
- Line 197: use auto when initializing with a cast to avoid duplicating the type name
- Line 197: do not use C-style cast to convert between unrelated types
- Line 198: do not use C-style cast to convert between unrelated types
- Line 227: variable 'i' is not initialized
- Line 230: use auto when initializing with a cast to avoid duplicating the type name
- Line 230: do not use C-style cast to convert between unrelated types
- Line 231: do not use C-style cast to convert between unrelated types
- Line 264: multiple declarations in a single statement reduces readability
- Line 264: variable 'scale' is not initialized
- Line 264: variable 'nr_idx' is not initialized
- Line 264: variable 'nr_num' is not initialized
- Line 264: variable 'nr_size' is not initialized
- Line 315: declaration uses identifier '__rte_ring_do_enqueue_elem', which is a reserved identifier
- Line 320: multiple declarations in a single statement reduces readability
- Line 320: variable 'prod_next' is not initialized
- Line 321: variable 'free_entries' is not initialized
- Line 332: use nullptr
- Line 362: declaration uses identifier '__rte_ring_do_dequeue_elem', which is a reserved identifier
- Line 367: multiple declarations in a single statement reduces readability
- Line 367: variable 'cons_next' is not initialized
- Line 368: variable 'entries' is not initialized
- Line 380: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_GENERIC_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_update_tail', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_move_prod_head', which is a reserved identifier
- Line 62: variable 'success' is not initialized
- Line 125: declaration uses identifier '__rte_ring_move_cons_head', which is a reserved identifier
- Line 131: variable 'success' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_HTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_HTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_hts_update_tail', which is a reserved identifier
- Line 28: variable 'tail' is not initialized
- Line 42: declaration uses identifier '__rte_ring_hts_head_wait', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_hts_move_prod_head', which is a reserved identifier
- Line 59: variable 'n' is not initialized
- Line 60: multiple declarations in a single statement reduces readability
- Line 113: declaration uses identifier '__rte_ring_hts_move_cons_head', which is a reserved identifier
- Line 117: variable 'n' is not initialized
- Line 118: multiple declarations in a single statement reduces readability
- Line 187: declaration uses identifier '__rte_ring_do_hts_enqueue_elem', which is a reserved identifier
- Line 191: multiple declarations in a single statement reduces readability
- Line 191: variable 'head' is not initialized
- Line 200: use nullptr
- Line 228: declaration uses identifier '__rte_ring_do_hts_dequeue_elem', which is a reserved identifier
- Line 232: multiple declarations in a single statement reduces readability
- Line 232: variable 'head' is not initialized
- Line 241: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_H_', which is a reserved identifier
- Line 170: variable 'tail' is not initialized
- Line 333: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ELEM_PVT_H_', which is a reserved identifier
- Line 31: declaration uses identifier '__rte_ring_st_get_tail', which is a reserved identifier
- Line 34: multiple declarations in a single statement reduces readability
- Line 34: variable 'n' is not initialized
- Line 34: variable 't' is not initialized
- Line 53: declaration uses identifier '__rte_ring_st_set_head_tail', which is a reserved identifier
- Line 56: variable 'pos' is not initialized
- Line 75: declaration uses identifier '__rte_ring_hts_get_tail', which is a reserved identifier
- Line 78: variable 'n' is not initialized
- Line 97: declaration uses identifier '__rte_ring_hts_set_head_tail', which is a reserved identifier
- Line 114: declaration uses identifier '__rte_ring_do_enqueue_start', which is a reserved identifier
- Line 117: multiple declarations in a single statement reduces readability
- Line 117: variable 'head' is not initialized
- Line 117: variable 'next' is not initialized
- Line 137: use nullptr
- Line 147: declaration uses identifier '__rte_ring_do_dequeue_start', which is a reserved identifier
- Line 151: multiple declarations in a single statement reduces readability
- Line 151: variable 'head' is not initialized
- Line 151: variable 'next' is not initialized
- Line 174: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ZC_H_', which is a reserved identifier
- Line 98: declaration uses identifier '__rte_ring_get_elem_addr', which is a reserved identifier
- Line 101: multiple declarations in a single statement reduces readability
- Line 101: variable 'scale' is not initialized
- Line 101: variable 'nr_idx' is not initialized
- Line 102: use auto when initializing with a cast to avoid duplicating the type name
- Line 102: do not use C-style cast to convert between unrelated types
- Line 124: declaration uses identifier '__rte_ring_do_enqueue_zc_elem_start', which is a reserved identifier
- Line 128: multiple declarations in a single statement reduces readability
- Line 128: variable 'head' is not initialized
- Line 128: variable 'next' is not initialized
- Line 151: use nullptr
- Line 291: variable 'tail' is not initialized
- Line 331: declaration uses identifier '__rte_ring_do_dequeue_zc_elem_start', which is a reserved identifier
- Line 335: multiple declarations in a single statement reduces readability
- Line 335: variable 'head' is not initialized
- Line 335: variable 'next' is not initialized
- Line 359: use nullptr
- Line 497: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_RTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_RTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_rts_update_tail', which is a reserved identifier
- Line 27: multiple declarations in a single statement reduces readability
- Line 53: declaration uses identifier '__rte_ring_rts_head_wait', which is a reserved identifier
- Line 56: variable 'max' is not initialized
- Line 70: declaration uses identifier '__rte_ring_rts_move_prod_head', which is a reserved identifier
- Line 74: variable 'n' is not initialized
- Line 75: multiple declarations in a single statement reduces readability
- Line 128: declaration uses identifier '__rte_ring_rts_move_cons_head', which is a reserved identifier
- Line 132: variable 'n' is not initialized
- Line 133: multiple declarations in a single statement reduces readability
- Line 202: declaration uses identifier '__rte_ring_do_rts_enqueue_elem', which is a reserved identifier
- Line 206: multiple declarations in a single statement reduces readability
- Line 206: variable 'head' is not initialized
- Line 215: use nullptr
- Line 243: declaration uses identifier '__rte_ring_do_rts_dequeue_elem', which is a reserved identifier
- Line 247: multiple declarations in a single statement reduces readability
- Line 247: variable 'head' is not initialized
- Line 256: use nullptr
- Line 6: declaration uses identifier '_RTE_RTM_H_', which is a reserved identifier
- Line 6: macro '_RTE_RTM_H_' used to declare a constant; consider using a 'constexpr' constant
- Line 26: function-like macro 'RTE_XABORT_CODE' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_RWLOCK_X86_64_H_', which is a reserved identifier
- Line 15: declaration uses identifier '_RTE_SCTP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_SPINLOCK_X86_64_H_', which is a reserved identifier
- Line 80: multiple declarations in a single statement reduces readability
- Line 80: variable 'retries' is not initialized
- Line 109: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type 'int' is implementation-defined
- Line 74: do not use pointer arithmetic
- Line 43: macro 'RTE_TCP_CWR_FLAG' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_TRACE_POINT_H_', which is a reserved identifier
- Line 78: variadic macro 'RTE_TRACE_POINT' used; consider using a 'constexpr' variadic template function
- Line 151: macro '__RTE_TRACE_EMIT_STRING_LEN_MAX' used to declare a constant; consider using a 'constexpr' constant
- Line 153: declaration uses identifier '__RTE_TRACE_EVENT_HEADER_SZ', which is a reserved identifier
- Line 211: declaration uses identifier '__rte_trace_point_fp_is_enabled', which is a reserved identifier
- Line 227: declaration uses identifier '__rte_trace_mem_per_thread_alloc', which is a reserved identifier
- Line 245: declaration uses identifier '__rte_trace_point_emit_field', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_trace_point_register', which is a reserved identifier
- Line 379: declaration uses identifier '__rte_trace_point_emit_header_generic', which is a reserved identifier
- Line 379: function-like macro '__rte_trace_point_emit_header_generic' used; consider a 'constexpr' template function
- Line 380: function-like macro '__rte_trace_point_emit_header_fp' used; consider a 'constexpr' template function
- Line 11: declaration uses identifier '_RTE_UUID_H_', which is a reserved identifier
- Line 24: do not declare C-style arrays, use std::array<> instead
- Line 6: declaration uses identifier '_RTE_VXLAN_H_', which is a reserved identifier
- Line 25: macro 'RTE_VXLAN_DEFAULT_PORT' used to declare a constant; consider using a 'constexpr' constant
- Line 18: nested namespaces can be concatenated
- Line 23: macro 'NUM_MBUFS' used to declare a constant; consider using a 'constexpr' constant
- Line 24: macro 'MBUF_CACHE_SIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 47: do not declare C-style arrays, use std::array<> instead
- Line 19: nested namespaces can be concatenated
- Line 23: macro 'RX_RING_SIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 24: macro 'TX_RING_SIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 26: macro 'NUM_MBUFS' used to declare a constant; consider using a 'constexpr' constant
- Line 27: macro 'MBUF_CACHE_SIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 44: missing field 'mq_mode' initializer
- Line 48: missing field 'mq_mode' initializer
- Line 49: missing field 'link_speeds' initializer
- Line 56: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined
- Line 117: C-style casts are discouraged; use static_cast
- Line 118: C-style casts are discouraged; use static_cast
- Line 119: C-style casts are discouraged; use static_cast
- Line 120: C-style casts are discouraged; use static_cast
- Line 121: C-style casts are discouraged; use static_cast
- Line 122: C-style casts are discouraged; use static_cast
- Line 154: unused variable 'dev_info'
- Line 15: nested namespaces can be concatenated
- Line 37: use auto when initializing with a cast to avoid duplicating the type name
- Line 37: do not use C-style cast to convert between unrelated types
- Line 38: use auto when initializing with a cast to avoid duplicating the type name
- Line 38: do not use C-style cast to convert between unrelated types
- Line 39: variable 'v' is not initialized
- Line 48: use auto when initializing with a cast to avoid duplicating the type name
- Line 48: do not use C-style cast to convert between unrelated types
- Line 49: use auto when initializing with a cast to avoid duplicating the type name
- Line 49: do not use C-style cast to convert between unrelated types
- Line 50: do not use pointer arithmetic
- Line 50: do not use pointer arithmetic
- Line 51: do not use pointer arithmetic
- Line 51: do not use pointer arithmetic
- Line 58: use auto when initializing with a cast to avoid duplicating the type name
- Line 58: do not use C-style cast to convert between unrelated types
- Line 59: use auto when initializing with a cast to avoid duplicating the type name
- Line 59: do not use C-style cast to convert between unrelated types
- Line 60: variable 'v' is not initialized
- Line 69: use auto when initializing with a cast to avoid duplicating the type name
- Line 69: do not use C-style cast to convert between unrelated types
- Line 70: use auto when initializing with a cast to avoid duplicating the type name
- Line 70: do not use C-style cast to convert between unrelated types
- Line 2: declaration uses identifier '_IPV4_ADDR_H_', which is a reserved identifier
- Line 25: do not use array subscript when the index is not an integer constant expression
- Line 29: do not declare C-style arrays, use std::array<> instead
- Line 15: nested namespaces can be concatenated
- Line 20: do not declare C-style arrays, use std::array<> instead
- Line 19: nested namespaces can be concatenated
- Line 35: nested namespaces can be concatenated
- Line 11: inclusion of deprecated C++ header 'inttypes.h'; consider using 'cinttypes' instead
- Line 19: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead
- Line 47: use auto when initializing with a cast to avoid duplicating the type name
- Line 47: do not use C-style cast to convert between unrelated types
- Line 47: C-style casts are discouraged; use static_cast
- Line 47: do not manage memory manually; consider a container or a smart pointer
- Line 55: variable 'xstats_names' is not initialized
- Line 56: unused variable 'xstats_ids'
- Line 56: variable 'xstats_ids' is not initialized
- Line 57: variable 'values' is not initialized
- Line 58: multiple declarations in a single statement reduces readability
- Line 58: variable 'len' is not initialized
- Line 58: variable 'i' is not initialized
- Line 61: use nullptr
- Line 61: implicit conversion of NULL constant to 'unsigned int'
- Line 61: use nullptr
- Line 67: do not use C-style cast to convert between unrelated types
- Line 67: C-style casts are discouraged; use static_cast
- Line 67: do not manage memory manually; consider a container or a smart pointer
- Line 68: use nullptr
- Line 78: do not use C-style cast to convert between unrelated types
- Line 78: C-style casts are discouraged; use static_cast
- Line 78: Result of 'malloc' is converted to a pointer of type 'uint64_t', which is incompatible with sizeof operand type 'uint64_t *'
- Line 78: do not manage memory manually; consider a container or a smart pointer
- Line 79: use nullptr
- Line 84: use nullptr
- Line 94: Value stored to 'stats' during its initialization is never read
- Line 102: redundant cast to the same type
- Line 103: redundant cast to the same type
- Line 104: redundant cast to the same type
- Line 112: consider replacing 'unsigned long' with 'uint64'
- Line 117: use nullptr
- Line 132: use auto when initializing with a cast to avoid duplicating the type name
- Line 132: do not use C-style cast to convert between unrelated types
- Line 132: C-style casts are discouraged; use static_cast
- Line 132: do not manage memory manually; consider a container or a smart pointer
- Line 137: unused variable 'once'
- Line 144: do not use pointer arithmetic
- Line 147: do not use pointer arithmetic
- Line 153: do not use pointer arithmetic
- Line 159: do not use pointer arithmetic
- Line 159: do not use pointer arithmetic
- Line 163: do not use pointer arithmetic
- Line 163: do not use pointer arithmetic
- Line 166: do not use pointer arithmetic
- Line 166: do not use pointer arithmetic
- Line 177: do not use pointer arithmetic
- Line 210: narrowing conversion from 'unsigned int' to signed type 'key_type' (aka 'int') is implementation-defined
test/apps/test_eal_app.cxx
Errors
- Line 0: The standard copyright message wasn't found.
- Line 1: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 18: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 27: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 29: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 39: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 41: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 43: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 45: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 48: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 50: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 54: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 24: "printf" should not be used for output in DUNE DAQ software.
- Line 44: Use of NULL #define found; prefer using the nullptr keyword
- Line 49: Use of NULL #define found; prefer using the nullptr keyword
Warnings
- Line 6: declaration uses identifier '_RTE_ATOMIC_H_', which is a reserved identifier
- Line 119: function-like macro 'rte_compiler_barrier' used; consider a 'constexpr' template function
- Line 93: consider replacing 'unsigned long' with 'uint64'
- Line 19: macro 'MS_PER_S' used to declare a constant; consider using a 'constexpr' constant
- Line 132: function-like macro 'RTE_WAIT_UNTIL_MASKED' used; consider a 'constexpr' template function
- Line 135: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_RWLOCK_H_', which is a reserved identifier
- Line 52: macro 'RTE_RWLOCK_WAIT' used to declare a constant; consider using a 'constexpr' constant
- Line 90: converting integer literal to bool, use bool literal instead
- Line 123: variable 'x' is not initialized
- Line 170: variable 'x' is not initialized
- Line 175: converting integer literal to bool, use bool literal instead
- Line 190: variable 'x' is not initialized
- Line 192: converting integer literal to bool, use bool literal instead
- Line 198: converting integer literal to bool, use bool literal instead
- Line 6: declaration uses identifier '_RTE_SPINLOCK_H_', which is a reserved identifier
- Line 223: increment of object of volatile-qualified type 'volatile int' is deprecated
- Line 21: macro 'MPLOCKED' used to declare a constant; consider using a 'constexpr' constant
- Line 133: do not use C-style cast to convert between unrelated types
- Line 174: variable 'ret' is not initialized
- Line 190: variable 'res' is not initialized
- Line 219: do not use C-style cast to convert between unrelated types
- Line 260: variable 'ret' is not initialized
- Line 17: declaration uses identifier '_RTE_ATOMIC_X86_64_H_', which is a reserved identifier
- Line 29: variable 'res' is not initialized
- Line 145: variable 'ret' is not initialized
- Line 160: variable 'ret' is not initialized
- Line 174: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_BITOPS_H_', which is a reserved identifier
- Line 30: function-like macro 'RTE_BIT64' used; consider a 'constexpr' template function
- Line 28: function-like macro 'likely' used; consider a 'constexpr' template function
- Line 50: macro 'RTE_CC_IS_GNU' used to declare a constant; consider using a 'constexpr' constant
- Line 68: function-like macro '__rte_aligned' used; consider a 'constexpr' template function
- Line 83: declaration uses identifier '__rte_packed', which is a reserved identifier
- Line 88: declaration uses identifier '__rte_may_alias', which is a reserved identifier
- Line 91: declaration uses identifier '__rte_deprecated', which is a reserved identifier
- Line 92: declaration uses identifier '__rte_deprecated_msg', which is a reserved identifier
- Line 92: function-like macro '__rte_deprecated_msg' used; consider a 'constexpr' template function
- Line 108: declaration uses identifier '__rte_weak', which is a reserved identifier
- Line 113: declaration uses identifier '__rte_used', which is a reserved identifier
- Line 120: declaration uses identifier '__rte_unused', which is a reserved identifier
- Line 126: declaration uses identifier '__rte_restrict', which is a reserved identifier
- Line 135: function-like macro 'RTE_SET_USED' used; consider a 'constexpr' template function
- Line 148: function-like macro '__rte_format_printf' used; consider a 'constexpr' template function
- Line 158: declaration uses identifier '__rte_alloc_size', which is a reserved identifier
- Line 158: variadic macro '__rte_alloc_size' used; consider using a 'constexpr' variadic template function
- Line 164: macro 'RTE_PRIORITY_LOG' used to declare a constant; consider using a 'constexpr' constant
- Line 250: declaration uses identifier '__rte_warn_unused_result', which is a reserved identifier
- Line 255: declaration uses identifier '__rte_always_inline', which is a reserved identifier
- Line 260: declaration uses identifier '__rte_noinline', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_hot', which is a reserved identifier
- Line 270: declaration uses identifier '__rte_cold', which is a reserved identifier
- Line 282: declaration uses identifier '__rte_no_asan', which is a reserved identifier
- Line 290: function-like macro 'RTE_PTR_ADD' used; consider a 'constexpr' template function
- Line 443: declaration uses identifier '__rte_cache_min_aligned', which is a reserved identifier
- Line 464: do not declare C-style arrays, use std::array<> instead
- Line 824: macro argument should be enclosed in parentheses
- Line 837: function-like macro 'RTE_SIZEOF_FIELD' used; consider a 'constexpr' template function
- Line 841: function-like macro 'RTE_STR' used; consider a 'constexpr' template function
- Line 15: declaration uses identifier '__rte_experimental', which is a reserved identifier
- Line 33: declaration uses identifier '__rte_internal', which is a reserved identifier
- Line 13: declaration uses identifier '_RTE_CONFIG_H_', which is a reserved identifier
- Line 19: macro 'RTE_EXEC_ENV_LINUXAPP' used to declare a constant; consider using a 'constexpr' constant
- Line 7: declaration uses identifier '_RTE_CYCLES_X86_64_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_DEBUG_H_', which is a reserved identifier
- Line 43: variadic macro 'rte_panic' used; consider using a 'constexpr' variadic template function
- Line 28: macro 'RTE_MAGIC' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_LCORE_H_', which is a reserved identifier
- Line 218: function-like macro 'RTE_LCORE_FOREACH' used; consider a 'constexpr' template function
- Line 220: macro argument should be enclosed in parentheses
- Line 221: macro argument should be enclosed in parentheses
- Line 226: function-like macro 'RTE_LCORE_FOREACH_WORKER' used; consider a 'constexpr' template function
- Line 228: macro argument should be enclosed in parentheses
- Line 229: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_LOG_H_', which is a reserved identifier
- Line 29: macro 'RTE_LOGTYPE_EAL' used to declare a constant; consider using a 'constexpr' constant
- Line 370: macro argument should be enclosed in parentheses
- Line 371: macro argument should be enclosed in parentheses
- Line 387: function-like macro 'RTE_LOG_REGISTER' used; consider a 'constexpr' template function
- Line 38: macro replacement list should be enclosed in parentheses
- Line 609: macro 'RTE_MEM_EVENT_CALLBACK_NAME_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 21: function-like macro 'RTE_TAILQ_HEAD' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_PCI_DEV_DEFS_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PER_LCORE_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_RTM_H_', which is a reserved identifier
- Line 6: macro '_RTE_RTM_H_' used to declare a constant; consider using a 'constexpr' constant
- Line 26: function-like macro 'RTE_XABORT_CODE' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_RWLOCK_X86_64_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_SPINLOCK_X86_64_H_', which is a reserved identifier
- Line 80: multiple declarations in a single statement reduces readability
- Line 80: variable 'retries' is not initialized
- Line 109: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type 'int' is implementation-defined
- Line 11: declaration uses identifier '_RTE_UUID_H_', which is a reserved identifier
- Line 24: do not declare C-style arrays, use std::array<> instead
- Line 5: inclusion of deprecated C++ header 'stdio.h'; consider using 'cstdio' instead
- Line 6: inclusion of deprecated C++ header 'string.h'; consider using 'cstring' instead
- Line 7: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead
- Line 8: inclusion of deprecated C++ header 'errno.h'; consider using 'cerrno' instead
- Line 22: variable 'lcore_id' is not initialized
- Line 33: variable 'ret' is not initialized
- Line 34: variable 'lcore_id' is not initialized
- Line 44: use nullptr
- Line 49: use nullptr
test/apps/test_frame_receiver.cxx
Errors
- Line 0: The standard copyright message wasn't found.
- Line 2: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 49: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 206: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 319: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 19: Found other header after system header. Should be: test_frame_receiver.hh, other non-system headers, system headers.
- Line 20: Found other header after system header. Should be: test_frame_receiver.hh, other non-system headers, system headers.
- Line 21: Found other header after system header. Should be: test_frame_receiver.hh, other non-system headers, system headers.
- Line 23: Found other header after system header. Should be: test_frame_receiver.hh, other non-system headers, system headers.
- Line 24: Found other header after system header. Should be: test_frame_receiver.hh, other non-system headers, system headers.
- Line 25: Found other header after system header. Should be: test_frame_receiver.hh, other non-system headers, system headers.
- Line 26: Found other header after system header. Should be: test_frame_receiver.hh, other non-system headers, system headers.
- Line 27: Found other header after system header. Should be: test_frame_receiver.hh, other non-system headers, system headers.
- Line 29: "dpdklibs/udp/PacketCtor.hpp" already included at sourcecode/dpdklibs/test/apps/test_frame_receiver.cxx:25
- Line 30: "dpdklibs/udp/Utils.hpp" already included at sourcecode/dpdklibs/test/apps/test_frame_receiver.cxx:26
- Line 31: Found other header after system header. Should be: test_frame_receiver.hh, other non-system headers, system headers.
- Line 32: Found other header after system header. Should be: test_frame_receiver.hh, other non-system headers, system headers.
- Line 39: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 40: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 42: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 43: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 45: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 47: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 49: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 64: An unsigned integer appears to be used here.
- Line 65: An unsigned integer appears to be used here.
- Line 66: An unsigned integer appears to be used here.
- Line 67: An unsigned integer appears to be used here.
- Line 68: An unsigned integer appears to be used here.
- Line 69: An unsigned integer appears to be used here.
- Line 70: An unsigned integer appears to be used here.
- Line 71: An unsigned integer appears to be used here.
- Line 72: An unsigned integer appears to be used here.
- Line 73: An unsigned integer appears to be used here.
- Line 74: An unsigned integer appears to be used here.
- Line 75: An unsigned integer appears to be used here.
- Line 105: An unsigned integer appears to be used here.
- Line 112: An unsigned integer appears to be used here.
- Line 114: An unsigned integer appears to be used here.
- Line 115: An unsigned integer appears to be used here.
- Line 116: An unsigned integer appears to be used here.
- Line 117: An unsigned integer appears to be used here.
- Line 118: An unsigned integer appears to be used here.
- Line 119: An unsigned integer appears to be used here.
- Line 120: An unsigned integer appears to be used here.
- Line 121: An unsigned integer appears to be used here.
- Line 122: An unsigned integer appears to be used here.
- Line 123: An unsigned integer appears to be used here.
- Line 124: An unsigned integer appears to be used here.
- Line 125: An unsigned integer appears to be used here.
- Line 126: An unsigned integer appears to be used here.
- Line 127: An unsigned integer appears to be used here.
- Line 128: An unsigned integer appears to be used here.
- Line 136: Anonymous namespace should be terminated with '// namespace "" '
- Line 146: An unsigned integer appears to be used here.
- Line 149: An unsigned integer appears to be used here.
- Line 150: An unsigned integer appears to be used here.
- Line 157: An unsigned integer appears to be used here.
- Line 159: An unsigned integer appears to be used here.
- Line 172: An unsigned integer appears to be used here.
- Line 174: An unsigned integer appears to be used here.
- Line 175: An unsigned integer appears to be used here.
- Line 176: An unsigned integer appears to be used here.
- Line 196: Use operator && instead of and
- Line 205: An unsigned integer appears to be used here.
- Line 219: An unsigned integer appears to be used here.
- Line 220: An unsigned integer appears to be used here.
- Line 251: Using C-style cast. Use static_cast
(...) instead - Line 291: Using C-style cast. Use one of the C++ cast operators instead
- Line 310: Using C-style cast. Use one of the C++ cast operators instead
- Line 320: An unsigned integer appears to be used here.
- Line 330: Use operator ! instead of not
- Line 338: Use of reinterpret_cast can be dangerous. If there's no way to avoid its use add " // NOLINT" to the end of this line so this script will ignore it next time
- Line 374: Small and focused functions are preferred: lcore_main() has 120 non-comment lines (error triggered by exceeding 80 lines) (disable this by putting "// NOLINT" after the function's closing brace.)
- Line 383: An unsigned integer appears to be used here.
- Line 384: An unsigned integer appears to be used here.
- Line 422: Use operator || instead of or
- Line 443: "cout" should not be used for output in DUNE DAQ software.
- Line 451: An unsigned integer appears to be used here.
- Line 452: An unsigned integer appears to be used here.
- Line 453: An unsigned integer appears to be used here.
- Line 454: An unsigned integer appears to be used here.
- Line 456: "cout" should not be used for output in DUNE DAQ software.
- Line 462: Using C-style cast. Use one of the C++ cast operators instead
- Line 430: Add #include
for string - Line 450: Add #include
- Line 430: Add #include
for vector<> - Line 449: Add #include
for unique_ptr<>
Warnings
- Line 6: declaration uses identifier '_RTE_ATOMIC_H_', which is a reserved identifier
- Line 119: function-like macro 'rte_compiler_barrier' used; consider a 'constexpr' template function
- Line 30: macro 'RTE_BIG_ENDIAN' used to declare a constant; consider using a 'constexpr' constant
- Line 93: consider replacing 'unsigned long' with 'uint64'
- Line 19: macro 'MS_PER_S' used to declare a constant; consider using a 'constexpr' constant
- Line 132: function-like macro 'RTE_WAIT_UNTIL_MASKED' used; consider a 'constexpr' template function
- Line 135: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_POWER_INTRINSIC_H_', which is a reserved identifier
- Line 22: macro 'RTE_POWER_MONITOR_OPAQUE_SZ' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_RWLOCK_H_', which is a reserved identifier
- Line 52: macro 'RTE_RWLOCK_WAIT' used to declare a constant; consider using a 'constexpr' constant
- Line 90: converting integer literal to bool, use bool literal instead
- Line 123: variable 'x' is not initialized
- Line 170: variable 'x' is not initialized
- Line 175: converting integer literal to bool, use bool literal instead
- Line 190: variable 'x' is not initialized
- Line 192: converting integer literal to bool, use bool literal instead
- Line 198: converting integer literal to bool, use bool literal instead
- Line 6: declaration uses identifier '_RTE_SPINLOCK_H_', which is a reserved identifier
- Line 223: increment of object of volatile-qualified type 'volatile int' is deprecated
- Line 6: declaration uses identifier '_RTE_ATOMIC_X86_H_', which is a reserved identifier
- Line 21: macro 'MPLOCKED' used to declare a constant; consider using a 'constexpr' constant
- Line 133: do not use C-style cast to convert between unrelated types
- Line 174: variable 'ret' is not initialized
- Line 190: variable 'res' is not initialized
- Line 219: do not use C-style cast to convert between unrelated types
- Line 260: variable 'ret' is not initialized
- Line 17: declaration uses identifier '_RTE_ATOMIC_X86_64_H_', which is a reserved identifier
- Line 29: variable 'res' is not initialized
- Line 145: variable 'ret' is not initialized
- Line 160: variable 'ret' is not initialized
- Line 174: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_BITOPS_H_', which is a reserved identifier
- Line 30: function-like macro 'RTE_BIT64' used; consider a 'constexpr' template function
- Line 28: function-like macro 'likely' used; consider a 'constexpr' template function
- Line 51: function-like macro 'rte_bswap16' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_COMMON_H_', which is a reserved identifier
- Line 50: macro 'RTE_CC_IS_GNU' used to declare a constant; consider using a 'constexpr' constant
- Line 88: declaration uses identifier '__rte_may_alias', which is a reserved identifier
- Line 91: declaration uses identifier '__rte_deprecated', which is a reserved identifier
- Line 92: declaration uses identifier '__rte_deprecated_msg', which is a reserved identifier
- Line 92: function-like macro '__rte_deprecated_msg' used; consider a 'constexpr' template function
- Line 108: declaration uses identifier '__rte_weak', which is a reserved identifier
- Line 113: declaration uses identifier '__rte_used', which is a reserved identifier
- Line 120: declaration uses identifier '__rte_unused', which is a reserved identifier
- Line 126: declaration uses identifier '__rte_restrict', which is a reserved identifier
- Line 135: function-like macro 'RTE_SET_USED' used; consider a 'constexpr' template function
- Line 148: function-like macro '__rte_format_printf' used; consider a 'constexpr' template function
- Line 158: declaration uses identifier '__rte_alloc_size', which is a reserved identifier
- Line 158: variadic macro '__rte_alloc_size' used; consider using a 'constexpr' variadic template function
- Line 164: macro 'RTE_PRIORITY_LOG' used to declare a constant; consider using a 'constexpr' constant
- Line 250: declaration uses identifier '__rte_warn_unused_result', which is a reserved identifier
- Line 260: declaration uses identifier '__rte_noinline', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_hot', which is a reserved identifier
- Line 270: declaration uses identifier '__rte_cold', which is a reserved identifier
- Line 282: declaration uses identifier '__rte_no_asan', which is a reserved identifier
- Line 290: function-like macro 'RTE_PTR_ADD' used; consider a 'constexpr' template function
- Line 443: declaration uses identifier '__rte_cache_min_aligned', which is a reserved identifier
- Line 464: do not declare C-style arrays, use std::array<> instead
- Line 824: macro argument should be enclosed in parentheses
- Line 837: function-like macro 'RTE_SIZEOF_FIELD' used; consider a 'constexpr' template function
- Line 841: function-like macro 'RTE_STR' used; consider a 'constexpr' template function
- Line 15: declaration uses identifier '__rte_experimental', which is a reserved identifier
- Line 33: declaration uses identifier '__rte_internal', which is a reserved identifier
- Line 13: declaration uses identifier '_RTE_CONFIG_H_', which is a reserved identifier
- Line 19: macro 'RTE_EXEC_ENV_LINUXAPP' used to declare a constant; consider using a 'constexpr' constant
- Line 7: declaration uses identifier '_RTE_CYCLES_X86_64_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_DEBUG_H_', which is a reserved identifier
- Line 43: variadic macro 'rte_panic' used; consider using a 'constexpr' variadic template function
- Line 46: function-like macro 'RTE_FUNC_PTR_OR_ERR_RET' used; consider a 'constexpr' template function
- Line 384: macro argument should be enclosed in parentheses
- Line 385: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_DEV_INFO_H_', which is a reserved identifier
- Line 44: macro 'RTE_ETH_MODULE_SFF_8079' used to declare a constant; consider using a 'constexpr' constant
- Line 35: macro 'RTE_DEVARGS_KEY_BUS' used to declare a constant; consider using a 'constexpr' constant
- Line 265: macro argument should be enclosed in parentheses
- Line 266: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_EAL_H_', which is a reserved identifier
- Line 28: macro 'RTE_MAGIC' used to declare a constant; consider using a 'constexpr' constant
- Line 28: macro 'RTE_ECPRI_REV_UP_TO_20' used to declare a constant; consider using a 'constexpr' constant
- Line 21: macro 'RTE_INTR_EVENT_ADD' used to declare a constant; consider using a 'constexpr' constant
- Line 12: declaration uses identifier '_RTE_ERRNO_H_', which is a reserved identifier
- Line 49: declaration uses identifier '__ELASTERROR', which is a reserved identifier
- Line 49: macro '__ELASTERROR' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_ESP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETH_CTRL_H_', which is a reserved identifier
- Line 30: macro 'RTE_NTUPLE_FLAGS_DST_IP' used to declare a constant; consider using a 'constexpr' constant
- Line 246: function-like macro 'RTE_ETH_FOREACH_MATCHING_DEV' used; consider a 'constexpr' template function
- Line 249: macro argument should be enclosed in parentheses
- Line 250: macro argument should be enclosed in parentheses
- Line 290: macro 'RTE_ETH_LINK_SPEED_AUTONEG' used to declare a constant; consider using a 'constexpr' constant
- Line 795: macro 'RTE_ETH_RSS_RETA_SIZE_64' used to declare a constant; consider using a 'constexpr' constant
- Line 2070: macro argument should be enclosed in parentheses
- Line 2071: macro argument should be enclosed in parentheses
- Line 2071: macro argument should be enclosed in parentheses
- Line 2086: function-like macro 'RTE_ETH_FOREACH_DEV' used; consider a 'constexpr' template function
- Line 2114: macro argument should be enclosed in parentheses
- Line 2115: macro argument should be enclosed in parentheses
- Line 2115: macro argument should be enclosed in parentheses
- Line 2141: function-like macro 'RTE_ETH_FOREACH_DEV_SIBLING' used; consider a 'constexpr' template function
- Line 2143: macro argument should be enclosed in parentheses
- Line 2144: macro argument should be enclosed in parentheses
- Line 2144: macro argument should be enclosed in parentheses
- Line 3603: flexible array members are a C99 feature
- Line 5864: variable 'p' is not initialized
- Line 5865: variable 'qd' is not initialized
- Line 5878: do not use array subscript when the index is not an integer constant expression
- Line 5903: redundant cast to the same type
- Line 5911: do not use C-style cast to convert between unrelated types
- Line 5936: variable 'qd' is not initialized
- Line 5949: do not use array subscript when the index is not an integer constant expression
- Line 5966: macro 'RTE_ETH_RX_DESC_AVAIL' used to declare a constant; consider using a 'constexpr' constant
- Line 6009: variable 'qd' is not initialized
- Line 6022: do not use array subscript when the index is not an integer constant expression
- Line 6038: macro 'RTE_ETH_TX_DESC_FULL' used to declare a constant; consider using a 'constexpr' constant
- Line 6080: variable 'qd' is not initialized
- Line 6093: do not use array subscript when the index is not an integer constant expression
- Line 6203: variable 'p' is not initialized
- Line 6204: variable 'qd' is not initialized
- Line 6217: do not use array subscript when the index is not an integer constant expression
- Line 6240: redundant cast to the same type
- Line 6250: do not use C-style cast to convert between unrelated types
- Line 6315: variable 'qd' is not initialized
- Line 6329: do not use array subscript when the index is not an integer constant expression
- Line 6: declaration uses identifier '_RTE_ETHDEV_CORE_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETHDEV_TRACE_FP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETHER_H_', which is a reserved identifier
- Line 25: macro 'RTE_ETHER_ADDR_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 84: do not use C-style cast to convert between unrelated types
- Line 85: do not use C-style cast to convert between unrelated types
- Line 102: do not use C-style cast to convert between unrelated types
- Line 149: do not use C-style cast to convert between unrelated types
- Line 333: do not use C-style cast to convert between unrelated types
- Line 358: variable 'nh' is not initialized
- Line 359: variable 'vh' is not initialized
- Line 369: do not use pointer arithmetic
- Line 378: do not use C-style cast to convert between unrelated types
- Line 9: declaration uses identifier '_RTE_GTP_H_', which is a reserved identifier
- Line 147: macro 'RTE_GTP_TYPE_IPV4' used to declare a constant; consider using a 'constexpr' constant
- Line 9: declaration uses identifier '_RTE_ICMP_H_', which is a reserved identifier
- Line 37: macro 'RTE_IP_ICMP_ECHO_REPLY' used to declare a constant; consider using a 'constexpr' constant
- Line 38: macro 'RTE_MAX_RXTX_INTR_VEC_ID' used to declare a constant; consider using a 'constexpr' constant
- Line 68: function-like macro 'RTE_IPV4' used; consider a 'constexpr' template function
- Line 164: variable 'end' is not initialized
- Line 166: do not use C-style cast to convert between unrelated types
- Line 195: declaration uses identifier '__rte_raw_cksum_reduce', which is a reserved identifier
- Line 215: variable 'sum' is not initialized
- Line 239: variable 'seg' is not initialized
- Line 240: variable 'buf' is not initialized
- Line 241: multiple declarations in a single statement reduces readability
- Line 241: variable 'tmp' is not initialized
- Line 242: multiple declarations in a single statement reduces readability
- Line 242: variable 'done' is not initialized
- Line 246: do not use pointer arithmetic
- Line 263: use nullptr
- Line 266: do not use pointer arithmetic
- Line 342: variable 'l3_len' is not initialized
- Line 362: declaration uses identifier '__rte_ipv4_udptcp_cksum', which is a reserved identifier
- Line 364: variable 'cksum' is not initialized
- Line 365: multiple declarations in a single statement reduces readability
- Line 365: variable 'l4_len' is not initialized
- Line 366: variable 'ip_hdr_len' is not initialized
- Line 417: declaration uses identifier '__rte_ipv4_udptcp_cksum_mbuf', which is a reserved identifier
- Line 421: variable 'raw_cksum' is not initialized
- Line 422: variable 'cksum' is not initialized
- Line 543: macro 'RTE_IPV6_HDR_FL_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 596: declaration uses identifier '__rte_ipv6_udptcp_cksum', which is a reserved identifier
- Line 598: variable 'cksum' is not initialized
- Line 599: variable 'l4_len' is not initialized
- Line 646: declaration uses identifier '__rte_ipv6_udptcp_cksum_mbuf', which is a reserved identifier
- Line 650: variable 'raw_cksum' is not initialized
- Line 651: variable 'cksum' is not initialized
- Line 765: macro 'RTE_IPV6_EHDR_MF_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 813: do not use pointer arithmetic
- Line 84: macro 'RTE_L2TPV2_MSG_TYPE_CONTROL' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_LCORE_H_', which is a reserved identifier
- Line 218: function-like macro 'RTE_LCORE_FOREACH' used; consider a 'constexpr' template function
- Line 220: macro argument should be enclosed in parentheses
- Line 221: macro argument should be enclosed in parentheses
- Line 226: function-like macro 'RTE_LCORE_FOREACH_WORKER' used; consider a 'constexpr' template function
- Line 228: macro argument should be enclosed in parentheses
- Line 229: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_LOG_H_', which is a reserved identifier
- Line 29: macro 'RTE_LOGTYPE_EAL' used to declare a constant; consider using a 'constexpr' constant
- Line 370: macro argument should be enclosed in parentheses
- Line 371: macro argument should be enclosed in parentheses
- Line 387: function-like macro 'RTE_LOG_REGISTER' used; consider a 'constexpr' template function
- Line 218: do not use C-style cast to convert between unrelated types
- Line 318: do not use C-style cast to convert between unrelated types
- Line 348: declaration uses identifier '__rte_mbuf_sanity_check', which is a reserved identifier
- Line 348: function-like macro '__rte_mbuf_sanity_check' used; consider a 'constexpr' template function
- Line 382: declaration uses identifier '__rte_mbuf_refcnt_update', which is a reserved identifier
- Line 510: function-like macro 'RTE_MBUF_PREFETCH_TO_FREE' used; consider a 'constexpr' template function
- Line 575: function-like macro 'MBUF_RAW_ALLOC_CHECK' used; consider a 'constexpr' template function
- Line 600: do not use C-style cast to convert between unrelated types
- Line 825: variable 'mbp_priv' is not initialized
- Line 827: do not use C-style cast to convert between unrelated types
- Line 848: do not use C-style cast to convert between unrelated types
- Line 907: variable 'm' is not initialized
- Line 908: use nullptr
- Line 931: variable 'rc' is not initialized
- Line 933: do not use C-style cast to convert between unrelated types
- Line 1006: do not use C-style cast to convert between unrelated types
- Line 1009: do not use C-style cast to convert between unrelated types
- Line 1014: do not use C-style cast to convert between unrelated types
- Line 1184: use nullptr
- Line 1200: declaration uses identifier '__rte_pktmbuf_free_extbuf', which is a reserved identifier
- Line 1216: declaration uses identifier '__rte_pktmbuf_free_direct', which is a reserved identifier
- Line 1218: variable 'md' is not initialized
- Line 1225: use nullptr
- Line 1253: multiple declarations in a single statement reduces readability
- Line 1253: variable 'buf_len' is not initialized
- Line 1254: variable 'priv_size' is not initialized
- Line 1281: do not use C-style cast to convert between unrelated types
- Line 1304: variable 'shinfo' is not initialized
- Line 1353: use nullptr
- Line 1356: use nullptr
- Line 1357: use nullptr
- Line 1370: use nullptr
- Line 1373: use nullptr
- Line 1374: use nullptr
- Line 1381: use nullptr
- Line 1397: use nullptr
- Line 1412: variable 'm_next' is not initialized
- Line 1414: use nullptr
- Line 1417: use nullptr
- Line 1500: use nullptr
- Line 1543: use nullptr
- Line 1556: function-like macro 'rte_pktmbuf_pkt_len' used; consider a 'constexpr' template function
- Line 1598: do not use C-style cast to convert between unrelated types
- Line 1619: variable 'm_last' is not initialized
- Line 1625: use nullptr
- Line 1627: do not use C-style cast to convert between unrelated types
- Line 1660: do not use C-style cast to convert between unrelated types
- Line 1710: declaration uses identifier '__rte_pktmbuf_read', which is a reserved identifier
- Line 1737: do not use pointer arithmetic
- Line 1863: declaration uses identifier '__rte_pktmbuf_linearize', which is a reserved identifier
- Line 1996: compound literals are a C99-specific feature
- Line 81: macro 'RTE_MBUF_F_RX_IP_CKSUM_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 80: macro 'RTE_MBUF_DYN_NAMESIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 75: macro 'RTE_PTYPE_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 72: do not use C-style cast to convert between unrelated types
- Line 428: variable 'bits' is not initialized
- Line 441: do not use C-style cast to convert between unrelated types
- Line 38: macro replacement list should be enclosed in parentheses
- Line 609: macro 'RTE_MEM_EVENT_CALLBACK_NAME_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 57: macro 'RTE_MEMPOOL_HEADER_COOKIE1' used to declare a constant; consider using a 'constexpr' constant
- Line 773: variable 'ret' is not initialized
- Line 802: variable 'ops' is not initialized
- Line 827: variable 'ops' is not initialized
- Line 828: variable 'ret' is not initialized
- Line 970: macro argument should be enclosed in parentheses
- Line 1318: use nullptr
- Line 1321: use nullptr
- Line 1324: do not use pointer arithmetic
- Line 1342: use nullptr
- Line 1365: variable 'cache_objs' is not initialized
- Line 1368: use nullptr
- Line 1387: do not use array subscript when the index is not an integer constant expression
- Line 1494: variable 'ret' is not initialized
- Line 1496: multiple declarations in a single statement reduces readability
- Line 1496: variable 'len' is not initialized
- Line 1497: variable 'cache_objs' is not initialized
- Line 1500: use nullptr
- Line 1505: do not use array subscript when the index is not an integer constant expression
- Line 1567: use nullptr
- Line 1603: variable 'ret' is not initialized
- Line 1636: variable 'cache' is not initialized
- Line 1693: variable 'ret' is not initialized
- Line 1790: variable 'hdr' is not initialized
- Line 1791: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_MEMZONE_H_', which is a reserved identifier
- Line 33: macro 'RTE_MEMZONE_2MB' used to declare a constant; consider using a 'constexpr' constant
- Line 418: multiple declarations in a single statement reduces readability
- Line 418: variable 'n_periods' is not initialized
- Line 418: variable 'tc' is not initialized
- Line 418: variable 'te' is not initialized
- Line 460: multiple declarations in a single statement reduces readability
- Line 460: variable 'n_periods' is not initialized
- Line 460: variable 'tc' is not initialized
- Line 460: variable 'te' is not initialized
- Line 501: multiple declarations in a single statement reduces readability
- Line 501: variable 'time_diff_tp' is not initialized
- Line 501: variable 'n_periods_tc' is not initialized
- Line 501: variable 'n_periods_tp' is not initialized
- Line 501: variable 'tc' is not initialized
- Line 501: variable 'tp' is not initialized
- Line 544: multiple declarations in a single statement reduces readability
- Line 544: variable 'time_diff_tp' is not initialized
- Line 544: variable 'n_periods_tc' is not initialized
- Line 544: variable 'n_periods_tp' is not initialized
- Line 544: variable 'tc' is not initialized
- Line 544: variable 'tp' is not initialized
- Line 587: multiple declarations in a single statement reduces readability
- Line 587: variable 'time_diff_te' is not initialized
- Line 587: variable 'n_periods_tc' is not initialized
- Line 587: variable 'n_periods_te' is not initialized
- Line 587: variable 'tc' is not initialized
- Line 587: variable 'te' is not initialized
- Line 631: multiple declarations in a single statement reduces readability
- Line 631: variable 'time_diff_te' is not initialized
- Line 631: variable 'n_periods_tc' is not initialized
- Line 631: variable 'n_periods_te' is not initialized
- Line 631: variable 'tc' is not initialized
- Line 631: variable 'te' is not initialized
- Line 6: declaration uses identifier '_RTE_OS_H_', which is a reserved identifier
- Line 21: function-like macro 'RTE_TAILQ_HEAD' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_PCI_DEV_DEFS_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PER_LCORE_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_POWER_INTRINSIC_X86_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PPP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PREFETCH_X86_64_H_', which is a reserved identifier
- Line 18: do not use C-style cast to convert between unrelated types
- Line 11: declaration uses identifier '_RTE_RING_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_CORE_H_', which is a reserved identifier
- Line 40: macro 'RTE_TAILQ_RING_NAME' used to declare a constant; consider using a 'constexpr' constant
- Line 96: declaration uses identifier '__rte_ring_hts_pos', which is a reserved identifier
- Line 153: macro 'RING_F_SP_ENQ' used to declare a constant; consider using a 'constexpr' constant
- Line 214: use nullptr
- Line 240: use nullptr
- Line 264: use nullptr
- Line 290: use nullptr
- Line 396: use nullptr
- Line 424: use nullptr
- Line 448: use nullptr
- Line 475: use nullptr
- Line 582: use nullptr
- Line 692: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_ELEM_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_enqueue_elems_32', which is a reserved identifier
- Line 17: variable 'i' is not initialized
- Line 18: use auto when initializing with a cast to avoid duplicating the type name
- Line 18: do not use C-style cast to convert between unrelated types
- Line 19: do not use C-style cast to convert between unrelated types
- Line 60: variable 'i' is not initialized
- Line 63: use auto when initializing with a cast to avoid duplicating the type name
- Line 63: do not use C-style cast to convert between unrelated types
- Line 64: do not use C-style cast to convert between unrelated types
- Line 93: variable 'i' is not initialized
- Line 96: use auto when initializing with a cast to avoid duplicating the type name
- Line 96: do not use C-style cast to convert between unrelated types
- Line 97: do not use C-style cast to convert between unrelated types
- Line 134: multiple declarations in a single statement reduces readability
- Line 134: variable 'scale' is not initialized
- Line 134: variable 'nr_idx' is not initialized
- Line 134: variable 'nr_num' is not initialized
- Line 134: variable 'nr_size' is not initialized
- Line 148: declaration uses identifier '__rte_ring_dequeue_elems_32', which is a reserved identifier
- Line 151: variable 'i' is not initialized
- Line 152: use auto when initializing with a cast to avoid duplicating the type name
- Line 152: do not use C-style cast to convert between unrelated types
- Line 153: do not use C-style cast to convert between unrelated types
- Line 194: variable 'i' is not initialized
- Line 197: use auto when initializing with a cast to avoid duplicating the type name
- Line 197: do not use C-style cast to convert between unrelated types
- Line 198: do not use C-style cast to convert between unrelated types
- Line 227: variable 'i' is not initialized
- Line 230: use auto when initializing with a cast to avoid duplicating the type name
- Line 230: do not use C-style cast to convert between unrelated types
- Line 231: do not use C-style cast to convert between unrelated types
- Line 264: multiple declarations in a single statement reduces readability
- Line 264: variable 'scale' is not initialized
- Line 264: variable 'nr_idx' is not initialized
- Line 264: variable 'nr_num' is not initialized
- Line 264: variable 'nr_size' is not initialized
- Line 315: declaration uses identifier '__rte_ring_do_enqueue_elem', which is a reserved identifier
- Line 320: multiple declarations in a single statement reduces readability
- Line 320: variable 'prod_next' is not initialized
- Line 321: variable 'free_entries' is not initialized
- Line 332: use nullptr
- Line 362: declaration uses identifier '__rte_ring_do_dequeue_elem', which is a reserved identifier
- Line 367: multiple declarations in a single statement reduces readability
- Line 367: variable 'cons_next' is not initialized
- Line 368: variable 'entries' is not initialized
- Line 380: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_GENERIC_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_update_tail', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_move_prod_head', which is a reserved identifier
- Line 62: variable 'success' is not initialized
- Line 125: declaration uses identifier '__rte_ring_move_cons_head', which is a reserved identifier
- Line 131: variable 'success' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_HTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_HTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_hts_update_tail', which is a reserved identifier
- Line 28: variable 'tail' is not initialized
- Line 42: declaration uses identifier '__rte_ring_hts_head_wait', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_hts_move_prod_head', which is a reserved identifier
- Line 59: variable 'n' is not initialized
- Line 60: multiple declarations in a single statement reduces readability
- Line 113: declaration uses identifier '__rte_ring_hts_move_cons_head', which is a reserved identifier
- Line 117: variable 'n' is not initialized
- Line 118: multiple declarations in a single statement reduces readability
- Line 187: declaration uses identifier '__rte_ring_do_hts_enqueue_elem', which is a reserved identifier
- Line 191: multiple declarations in a single statement reduces readability
- Line 191: variable 'head' is not initialized
- Line 200: use nullptr
- Line 228: declaration uses identifier '__rte_ring_do_hts_dequeue_elem', which is a reserved identifier
- Line 232: multiple declarations in a single statement reduces readability
- Line 232: variable 'head' is not initialized
- Line 241: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_H_', which is a reserved identifier
- Line 170: variable 'tail' is not initialized
- Line 333: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ELEM_PVT_H_', which is a reserved identifier
- Line 31: declaration uses identifier '__rte_ring_st_get_tail', which is a reserved identifier
- Line 34: multiple declarations in a single statement reduces readability
- Line 34: variable 'n' is not initialized
- Line 34: variable 't' is not initialized
- Line 53: declaration uses identifier '__rte_ring_st_set_head_tail', which is a reserved identifier
- Line 56: variable 'pos' is not initialized
- Line 75: declaration uses identifier '__rte_ring_hts_get_tail', which is a reserved identifier
- Line 78: variable 'n' is not initialized
- Line 97: declaration uses identifier '__rte_ring_hts_set_head_tail', which is a reserved identifier
- Line 114: declaration uses identifier '__rte_ring_do_enqueue_start', which is a reserved identifier
- Line 117: multiple declarations in a single statement reduces readability
- Line 117: variable 'head' is not initialized
- Line 117: variable 'next' is not initialized
- Line 137: use nullptr
- Line 147: declaration uses identifier '__rte_ring_do_dequeue_start', which is a reserved identifier
- Line 151: multiple declarations in a single statement reduces readability
- Line 151: variable 'head' is not initialized
- Line 151: variable 'next' is not initialized
- Line 174: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ZC_H_', which is a reserved identifier
- Line 98: declaration uses identifier '__rte_ring_get_elem_addr', which is a reserved identifier
- Line 101: multiple declarations in a single statement reduces readability
- Line 101: variable 'scale' is not initialized
- Line 101: variable 'nr_idx' is not initialized
- Line 102: use auto when initializing with a cast to avoid duplicating the type name
- Line 102: do not use C-style cast to convert between unrelated types
- Line 124: declaration uses identifier '__rte_ring_do_enqueue_zc_elem_start', which is a reserved identifier
- Line 128: multiple declarations in a single statement reduces readability
- Line 128: variable 'head' is not initialized
- Line 128: variable 'next' is not initialized
- Line 151: use nullptr
- Line 291: variable 'tail' is not initialized
- Line 331: declaration uses identifier '__rte_ring_do_dequeue_zc_elem_start', which is a reserved identifier
- Line 335: multiple declarations in a single statement reduces readability
- Line 335: variable 'head' is not initialized
- Line 335: variable 'next' is not initialized
- Line 359: use nullptr
- Line 497: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_RTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_RTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_rts_update_tail', which is a reserved identifier
- Line 27: multiple declarations in a single statement reduces readability
- Line 53: declaration uses identifier '__rte_ring_rts_head_wait', which is a reserved identifier
- Line 56: variable 'max' is not initialized
- Line 70: declaration uses identifier '__rte_ring_rts_move_prod_head', which is a reserved identifier
- Line 74: variable 'n' is not initialized
- Line 75: multiple declarations in a single statement reduces readability
- Line 128: declaration uses identifier '__rte_ring_rts_move_cons_head', which is a reserved identifier
- Line 132: variable 'n' is not initialized
- Line 133: multiple declarations in a single statement reduces readability
- Line 202: declaration uses identifier '__rte_ring_do_rts_enqueue_elem', which is a reserved identifier
- Line 206: multiple declarations in a single statement reduces readability
- Line 206: variable 'head' is not initialized
- Line 215: use nullptr
- Line 243: declaration uses identifier '__rte_ring_do_rts_dequeue_elem', which is a reserved identifier
- Line 247: multiple declarations in a single statement reduces readability
- Line 247: variable 'head' is not initialized
- Line 256: use nullptr
- Line 6: declaration uses identifier '_RTE_RTM_H_', which is a reserved identifier
- Line 6: macro '_RTE_RTM_H_' used to declare a constant; consider using a 'constexpr' constant
- Line 26: function-like macro 'RTE_XABORT_CODE' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_RWLOCK_X86_64_H_', which is a reserved identifier
- Line 15: declaration uses identifier '_RTE_SCTP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_SPINLOCK_X86_64_H_', which is a reserved identifier
- Line 80: multiple declarations in a single statement reduces readability
- Line 80: variable 'retries' is not initialized
- Line 109: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type 'int' is implementation-defined
- Line 74: do not use pointer arithmetic
- Line 43: macro 'RTE_TCP_CWR_FLAG' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_TRACE_POINT_H_', which is a reserved identifier
- Line 78: variadic macro 'RTE_TRACE_POINT' used; consider using a 'constexpr' variadic template function
- Line 151: macro '__RTE_TRACE_EMIT_STRING_LEN_MAX' used to declare a constant; consider using a 'constexpr' constant
- Line 153: declaration uses identifier '__RTE_TRACE_EVENT_HEADER_SZ', which is a reserved identifier
- Line 211: declaration uses identifier '__rte_trace_point_fp_is_enabled', which is a reserved identifier
- Line 227: declaration uses identifier '__rte_trace_mem_per_thread_alloc', which is a reserved identifier
- Line 245: declaration uses identifier '__rte_trace_point_emit_field', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_trace_point_register', which is a reserved identifier
- Line 379: declaration uses identifier '__rte_trace_point_emit_header_generic', which is a reserved identifier
- Line 379: function-like macro '__rte_trace_point_emit_header_generic' used; consider a 'constexpr' template function
- Line 380: function-like macro '__rte_trace_point_emit_header_fp' used; consider a 'constexpr' template function
- Line 11: declaration uses identifier '_RTE_UUID_H_', which is a reserved identifier
- Line 24: do not declare C-style arrays, use std::array<> instead
- Line 6: declaration uses identifier '_RTE_VXLAN_H_', which is a reserved identifier
- Line 25: macro 'RTE_VXLAN_DEFAULT_PORT' used to declare a constant; consider using a 'constexpr' constant
- Line 18: nested namespaces can be concatenated
- Line 23: macro 'NUM_MBUFS' used to declare a constant; consider using a 'constexpr' constant
- Line 24: macro 'MBUF_CACHE_SIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 47: do not declare C-style arrays, use std::array<> instead
- Line 15: nested namespaces can be concatenated
- Line 37: use auto when initializing with a cast to avoid duplicating the type name
- Line 37: do not use C-style cast to convert between unrelated types
- Line 38: use auto when initializing with a cast to avoid duplicating the type name
- Line 38: do not use C-style cast to convert between unrelated types
- Line 39: variable 'v' is not initialized
- Line 48: use auto when initializing with a cast to avoid duplicating the type name
- Line 48: do not use C-style cast to convert between unrelated types
- Line 49: use auto when initializing with a cast to avoid duplicating the type name
- Line 49: do not use C-style cast to convert between unrelated types
- Line 50: do not use pointer arithmetic
- Line 50: do not use pointer arithmetic
- Line 51: do not use pointer arithmetic
- Line 51: do not use pointer arithmetic
- Line 58: use auto when initializing with a cast to avoid duplicating the type name
- Line 58: do not use C-style cast to convert between unrelated types
- Line 59: use auto when initializing with a cast to avoid duplicating the type name
- Line 59: do not use C-style cast to convert between unrelated types
- Line 60: variable 'v' is not initialized
- Line 69: use auto when initializing with a cast to avoid duplicating the type name
- Line 69: do not use C-style cast to convert between unrelated types
- Line 70: use auto when initializing with a cast to avoid duplicating the type name
- Line 70: do not use C-style cast to convert between unrelated types
- Line 2: declaration uses identifier '_IPV4_ADDR_H_', which is a reserved identifier
- Line 25: do not use array subscript when the index is not an integer constant expression
- Line 29: do not declare C-style arrays, use std::array<> instead
- Line 15: nested namespaces can be concatenated
- Line 20: do not declare C-style arrays, use std::array<> instead
- Line 19: nested namespaces can be concatenated
- Line 35: nested namespaces can be concatenated
- Line 4: inclusion of deprecated C++ header 'inttypes.h'; consider using 'cinttypes' instead
- Line 10: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead
- Line 39: macro 'RX_RING_SIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 40: macro 'TX_RING_SIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 42: macro 'NUM_MBUFS' used to declare a constant; consider using a 'constexpr' constant
- Line 43: macro 'MBUF_CACHE_SIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 45: macro 'NSTREAM' used to declare a constant; consider using a 'constexpr' constant
- Line 59: unused function 'operator<<'
- Line 105: unused variable 'expected_packet_type'
- Line 107: unused variable 'default_mbuf_size'
- Line 140: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long')
- Line 217: Value stored to 'stats' during its initialization is never read
- Line 249: C-style casts are discouraged; use constructor call syntax
- Line 251: narrowing conversion from 'double' to 'float'
- Line 251: C-style casts are discouraged; use static_cast/const_cast/reinterpret_cast
- Line 251: C-style casts are discouraged; use static_cast
- Line 291: use auto when initializing with a cast to avoid duplicating the type name
- Line 291: do not use C-style cast to convert between unrelated types
- Line 291: C-style casts are discouraged; use static_cast
- Line 291: do not manage memory manually; consider a container or a smart pointer
- Line 294: Value stored to 'garp' during its initialization is never read
- Line 310: use auto when initializing with a cast to avoid duplicating the type name
- Line 310: do not use C-style cast to convert between unrelated types
- Line 310: C-style casts are discouraged; use static_cast
- Line 310: do not manage memory manually; consider a container or a smart pointer
- Line 326: do not use pointer arithmetic
- Line 330: do not use pointer arithmetic
- Line 332: Value stored to 'dump_packet' is never read
- Line 337: do not use pointer arithmetic
- Line 338: use auto when initializing with a cast to avoid duplicating the type name
- Line 338: do not use reinterpret_cast
- Line 350: do not use pointer arithmetic
- Line 355: do not use pointer arithmetic
- Line 366: do not use pointer arithmetic
- Line 366: do not use pointer arithmetic
- Line 431: use emplace_back instead of push_back
- Line 433: use emplace_back instead of push_back
- Line 462: do not use C-style cast to convert between unrelated types
- Line 462: C-style casts are discouraged; use static_cast
- Line 462: do not manage memory manually; consider a container or a smart pointer
test/apps/test_frame_transmitter.cxx
Errors
- Line 16: Include the directory when naming .hh files
- Line 17: Include the directory when naming .hh files
- Line 18: Include the directory when naming .hh files
- Line 19: Include the directory when naming .hh files
- Line 20: Include the directory when naming .hh files
- Line 21: Include the directory when naming .hh files
- Line 42: Use int16/int64/etc, rather than the C type long
- Line 43: Use int16/int64/etc, rather than the C type long
- Line 44: Use int16/int64/etc, rather than the C type long
- Line 45: Anonymous namespace should be terminated with '// namespace "" '
- Line 53: An unsigned integer appears to be used here.
- Line 55: An unsigned integer appears to be used here.
- Line 69: Use of NULL #define found; prefer using the nullptr keyword
- Line 73: Using C-style cast. Use one of the C++ cast operators instead
- Line 74: Use of NULL #define found; prefer using the nullptr keyword
- Line 98: An unsigned integer appears to be used here.
- Line 144: An unsigned integer appears to be used here.
- Line 145: An unsigned integer appears to be used here.
- Line 146: An unsigned integer appears to be used here.
- Line 147: An unsigned integer appears to be used here.
- Line 149: An unsigned integer appears to be used here.
- Line 171: Use int16/int64/etc, rather than the C type long
- Line 181: Using C-style cast. Use one of the C++ cast operators instead
- Line 119: Add #include
for string - Line 100: Add #include
for numeric_limits<> - Line 150: Add #include
- Line 150: Add #include
for unique_ptr<>
Warnings
- Line 6: declaration uses identifier '_RTE_ATOMIC_H_', which is a reserved identifier
- Line 119: function-like macro 'rte_compiler_barrier' used; consider a 'constexpr' template function
- Line 30: macro 'RTE_BIG_ENDIAN' used to declare a constant; consider using a 'constexpr' constant
- Line 93: consider replacing 'unsigned long' with 'uint64'
- Line 19: macro 'MS_PER_S' used to declare a constant; consider using a 'constexpr' constant
- Line 132: function-like macro 'RTE_WAIT_UNTIL_MASKED' used; consider a 'constexpr' template function
- Line 135: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_POWER_INTRINSIC_H_', which is a reserved identifier
- Line 22: macro 'RTE_POWER_MONITOR_OPAQUE_SZ' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_RWLOCK_H_', which is a reserved identifier
- Line 52: macro 'RTE_RWLOCK_WAIT' used to declare a constant; consider using a 'constexpr' constant
- Line 90: converting integer literal to bool, use bool literal instead
- Line 123: variable 'x' is not initialized
- Line 170: variable 'x' is not initialized
- Line 175: converting integer literal to bool, use bool literal instead
- Line 190: variable 'x' is not initialized
- Line 192: converting integer literal to bool, use bool literal instead
- Line 198: converting integer literal to bool, use bool literal instead
- Line 6: declaration uses identifier '_RTE_SPINLOCK_H_', which is a reserved identifier
- Line 223: increment of object of volatile-qualified type 'volatile int' is deprecated
- Line 6: declaration uses identifier '_RTE_ATOMIC_X86_H_', which is a reserved identifier
- Line 21: macro 'MPLOCKED' used to declare a constant; consider using a 'constexpr' constant
- Line 133: do not use C-style cast to convert between unrelated types
- Line 174: variable 'ret' is not initialized
- Line 190: variable 'res' is not initialized
- Line 219: do not use C-style cast to convert between unrelated types
- Line 260: variable 'ret' is not initialized
- Line 17: declaration uses identifier '_RTE_ATOMIC_X86_64_H_', which is a reserved identifier
- Line 29: variable 'res' is not initialized
- Line 145: variable 'ret' is not initialized
- Line 160: variable 'ret' is not initialized
- Line 174: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_BITOPS_H_', which is a reserved identifier
- Line 30: function-like macro 'RTE_BIT64' used; consider a 'constexpr' template function
- Line 28: function-like macro 'likely' used; consider a 'constexpr' template function
- Line 51: function-like macro 'rte_bswap16' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_COMMON_H_', which is a reserved identifier
- Line 50: macro 'RTE_CC_IS_GNU' used to declare a constant; consider using a 'constexpr' constant
- Line 88: declaration uses identifier '__rte_may_alias', which is a reserved identifier
- Line 91: declaration uses identifier '__rte_deprecated', which is a reserved identifier
- Line 92: declaration uses identifier '__rte_deprecated_msg', which is a reserved identifier
- Line 92: function-like macro '__rte_deprecated_msg' used; consider a 'constexpr' template function
- Line 108: declaration uses identifier '__rte_weak', which is a reserved identifier
- Line 113: declaration uses identifier '__rte_used', which is a reserved identifier
- Line 120: declaration uses identifier '__rte_unused', which is a reserved identifier
- Line 126: declaration uses identifier '__rte_restrict', which is a reserved identifier
- Line 135: function-like macro 'RTE_SET_USED' used; consider a 'constexpr' template function
- Line 148: function-like macro '__rte_format_printf' used; consider a 'constexpr' template function
- Line 158: declaration uses identifier '__rte_alloc_size', which is a reserved identifier
- Line 158: variadic macro '__rte_alloc_size' used; consider using a 'constexpr' variadic template function
- Line 164: macro 'RTE_PRIORITY_LOG' used to declare a constant; consider using a 'constexpr' constant
- Line 250: declaration uses identifier '__rte_warn_unused_result', which is a reserved identifier
- Line 260: declaration uses identifier '__rte_noinline', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_hot', which is a reserved identifier
- Line 270: declaration uses identifier '__rte_cold', which is a reserved identifier
- Line 282: declaration uses identifier '__rte_no_asan', which is a reserved identifier
- Line 290: function-like macro 'RTE_PTR_ADD' used; consider a 'constexpr' template function
- Line 443: declaration uses identifier '__rte_cache_min_aligned', which is a reserved identifier
- Line 464: do not declare C-style arrays, use std::array<> instead
- Line 824: macro argument should be enclosed in parentheses
- Line 837: function-like macro 'RTE_SIZEOF_FIELD' used; consider a 'constexpr' template function
- Line 841: function-like macro 'RTE_STR' used; consider a 'constexpr' template function
- Line 15: declaration uses identifier '__rte_experimental', which is a reserved identifier
- Line 33: declaration uses identifier '__rte_internal', which is a reserved identifier
- Line 13: declaration uses identifier '_RTE_CONFIG_H_', which is a reserved identifier
- Line 19: macro 'RTE_EXEC_ENV_LINUXAPP' used to declare a constant; consider using a 'constexpr' constant
- Line 7: declaration uses identifier '_RTE_CYCLES_X86_64_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_DEBUG_H_', which is a reserved identifier
- Line 43: variadic macro 'rte_panic' used; consider using a 'constexpr' variadic template function
- Line 46: function-like macro 'RTE_FUNC_PTR_OR_ERR_RET' used; consider a 'constexpr' template function
- Line 384: macro argument should be enclosed in parentheses
- Line 385: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_DEV_INFO_H_', which is a reserved identifier
- Line 44: macro 'RTE_ETH_MODULE_SFF_8079' used to declare a constant; consider using a 'constexpr' constant
- Line 35: macro 'RTE_DEVARGS_KEY_BUS' used to declare a constant; consider using a 'constexpr' constant
- Line 265: macro argument should be enclosed in parentheses
- Line 266: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_EAL_H_', which is a reserved identifier
- Line 28: macro 'RTE_MAGIC' used to declare a constant; consider using a 'constexpr' constant
- Line 28: macro 'RTE_ECPRI_REV_UP_TO_20' used to declare a constant; consider using a 'constexpr' constant
- Line 21: macro 'RTE_INTR_EVENT_ADD' used to declare a constant; consider using a 'constexpr' constant
- Line 12: declaration uses identifier '_RTE_ERRNO_H_', which is a reserved identifier
- Line 49: declaration uses identifier '__ELASTERROR', which is a reserved identifier
- Line 49: macro '__ELASTERROR' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_ESP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETH_CTRL_H_', which is a reserved identifier
- Line 30: macro 'RTE_NTUPLE_FLAGS_DST_IP' used to declare a constant; consider using a 'constexpr' constant
- Line 246: function-like macro 'RTE_ETH_FOREACH_MATCHING_DEV' used; consider a 'constexpr' template function
- Line 249: macro argument should be enclosed in parentheses
- Line 250: macro argument should be enclosed in parentheses
- Line 290: macro 'RTE_ETH_LINK_SPEED_AUTONEG' used to declare a constant; consider using a 'constexpr' constant
- Line 795: macro 'RTE_ETH_RSS_RETA_SIZE_64' used to declare a constant; consider using a 'constexpr' constant
- Line 2070: macro argument should be enclosed in parentheses
- Line 2071: macro argument should be enclosed in parentheses
- Line 2071: macro argument should be enclosed in parentheses
- Line 2086: function-like macro 'RTE_ETH_FOREACH_DEV' used; consider a 'constexpr' template function
- Line 2114: macro argument should be enclosed in parentheses
- Line 2115: macro argument should be enclosed in parentheses
- Line 2115: macro argument should be enclosed in parentheses
- Line 2141: function-like macro 'RTE_ETH_FOREACH_DEV_SIBLING' used; consider a 'constexpr' template function
- Line 2143: macro argument should be enclosed in parentheses
- Line 2144: macro argument should be enclosed in parentheses
- Line 2144: macro argument should be enclosed in parentheses
- Line 3603: flexible array members are a C99 feature
- Line 5864: variable 'p' is not initialized
- Line 5865: variable 'qd' is not initialized
- Line 5878: do not use array subscript when the index is not an integer constant expression
- Line 5903: redundant cast to the same type
- Line 5911: do not use C-style cast to convert between unrelated types
- Line 5936: variable 'qd' is not initialized
- Line 5949: do not use array subscript when the index is not an integer constant expression
- Line 5966: macro 'RTE_ETH_RX_DESC_AVAIL' used to declare a constant; consider using a 'constexpr' constant
- Line 6009: variable 'qd' is not initialized
- Line 6022: do not use array subscript when the index is not an integer constant expression
- Line 6038: macro 'RTE_ETH_TX_DESC_FULL' used to declare a constant; consider using a 'constexpr' constant
- Line 6080: variable 'qd' is not initialized
- Line 6093: do not use array subscript when the index is not an integer constant expression
- Line 6203: variable 'p' is not initialized
- Line 6204: variable 'qd' is not initialized
- Line 6217: do not use array subscript when the index is not an integer constant expression
- Line 6240: redundant cast to the same type
- Line 6250: do not use C-style cast to convert between unrelated types
- Line 6315: variable 'qd' is not initialized
- Line 6329: do not use array subscript when the index is not an integer constant expression
- Line 6: declaration uses identifier '_RTE_ETHDEV_CORE_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETHDEV_TRACE_FP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETHER_H_', which is a reserved identifier
- Line 25: macro 'RTE_ETHER_ADDR_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 84: do not use C-style cast to convert between unrelated types
- Line 85: do not use C-style cast to convert between unrelated types
- Line 102: do not use C-style cast to convert between unrelated types
- Line 149: do not use C-style cast to convert between unrelated types
- Line 333: do not use C-style cast to convert between unrelated types
- Line 358: variable 'nh' is not initialized
- Line 359: variable 'vh' is not initialized
- Line 369: do not use pointer arithmetic
- Line 378: do not use C-style cast to convert between unrelated types
- Line 9: declaration uses identifier '_RTE_GTP_H_', which is a reserved identifier
- Line 147: macro 'RTE_GTP_TYPE_IPV4' used to declare a constant; consider using a 'constexpr' constant
- Line 9: declaration uses identifier '_RTE_ICMP_H_', which is a reserved identifier
- Line 37: macro 'RTE_IP_ICMP_ECHO_REPLY' used to declare a constant; consider using a 'constexpr' constant
- Line 38: macro 'RTE_MAX_RXTX_INTR_VEC_ID' used to declare a constant; consider using a 'constexpr' constant
- Line 68: function-like macro 'RTE_IPV4' used; consider a 'constexpr' template function
- Line 164: variable 'end' is not initialized
- Line 166: do not use C-style cast to convert between unrelated types
- Line 195: declaration uses identifier '__rte_raw_cksum_reduce', which is a reserved identifier
- Line 215: variable 'sum' is not initialized
- Line 239: variable 'seg' is not initialized
- Line 240: variable 'buf' is not initialized
- Line 241: multiple declarations in a single statement reduces readability
- Line 241: variable 'tmp' is not initialized
- Line 242: multiple declarations in a single statement reduces readability
- Line 242: variable 'done' is not initialized
- Line 246: do not use pointer arithmetic
- Line 263: use nullptr
- Line 266: do not use pointer arithmetic
- Line 342: variable 'l3_len' is not initialized
- Line 362: declaration uses identifier '__rte_ipv4_udptcp_cksum', which is a reserved identifier
- Line 364: variable 'cksum' is not initialized
- Line 365: multiple declarations in a single statement reduces readability
- Line 365: variable 'l4_len' is not initialized
- Line 366: variable 'ip_hdr_len' is not initialized
- Line 417: declaration uses identifier '__rte_ipv4_udptcp_cksum_mbuf', which is a reserved identifier
- Line 421: variable 'raw_cksum' is not initialized
- Line 422: variable 'cksum' is not initialized
- Line 543: macro 'RTE_IPV6_HDR_FL_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 596: declaration uses identifier '__rte_ipv6_udptcp_cksum', which is a reserved identifier
- Line 598: variable 'cksum' is not initialized
- Line 599: variable 'l4_len' is not initialized
- Line 646: declaration uses identifier '__rte_ipv6_udptcp_cksum_mbuf', which is a reserved identifier
- Line 650: variable 'raw_cksum' is not initialized
- Line 651: variable 'cksum' is not initialized
- Line 765: macro 'RTE_IPV6_EHDR_MF_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 813: do not use pointer arithmetic
- Line 84: macro 'RTE_L2TPV2_MSG_TYPE_CONTROL' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_LCORE_H_', which is a reserved identifier
- Line 218: function-like macro 'RTE_LCORE_FOREACH' used; consider a 'constexpr' template function
- Line 220: macro argument should be enclosed in parentheses
- Line 221: macro argument should be enclosed in parentheses
- Line 226: function-like macro 'RTE_LCORE_FOREACH_WORKER' used; consider a 'constexpr' template function
- Line 228: macro argument should be enclosed in parentheses
- Line 229: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_LOG_H_', which is a reserved identifier
- Line 29: macro 'RTE_LOGTYPE_EAL' used to declare a constant; consider using a 'constexpr' constant
- Line 370: macro argument should be enclosed in parentheses
- Line 371: macro argument should be enclosed in parentheses
- Line 387: function-like macro 'RTE_LOG_REGISTER' used; consider a 'constexpr' template function
- Line 218: do not use C-style cast to convert between unrelated types
- Line 318: do not use C-style cast to convert between unrelated types
- Line 348: declaration uses identifier '__rte_mbuf_sanity_check', which is a reserved identifier
- Line 348: function-like macro '__rte_mbuf_sanity_check' used; consider a 'constexpr' template function
- Line 382: declaration uses identifier '__rte_mbuf_refcnt_update', which is a reserved identifier
- Line 510: function-like macro 'RTE_MBUF_PREFETCH_TO_FREE' used; consider a 'constexpr' template function
- Line 575: function-like macro 'MBUF_RAW_ALLOC_CHECK' used; consider a 'constexpr' template function
- Line 600: do not use C-style cast to convert between unrelated types
- Line 825: variable 'mbp_priv' is not initialized
- Line 827: do not use C-style cast to convert between unrelated types
- Line 848: do not use C-style cast to convert between unrelated types
- Line 907: variable 'm' is not initialized
- Line 908: use nullptr
- Line 931: variable 'rc' is not initialized
- Line 933: do not use C-style cast to convert between unrelated types
- Line 1006: do not use C-style cast to convert between unrelated types
- Line 1009: do not use C-style cast to convert between unrelated types
- Line 1014: do not use C-style cast to convert between unrelated types
- Line 1184: use nullptr
- Line 1200: declaration uses identifier '__rte_pktmbuf_free_extbuf', which is a reserved identifier
- Line 1216: declaration uses identifier '__rte_pktmbuf_free_direct', which is a reserved identifier
- Line 1218: variable 'md' is not initialized
- Line 1225: use nullptr
- Line 1253: multiple declarations in a single statement reduces readability
- Line 1253: variable 'buf_len' is not initialized
- Line 1254: variable 'priv_size' is not initialized
- Line 1281: do not use C-style cast to convert between unrelated types
- Line 1304: variable 'shinfo' is not initialized
- Line 1353: use nullptr
- Line 1356: use nullptr
- Line 1357: use nullptr
- Line 1370: use nullptr
- Line 1373: use nullptr
- Line 1374: use nullptr
- Line 1381: use nullptr
- Line 1397: use nullptr
- Line 1412: variable 'm_next' is not initialized
- Line 1414: use nullptr
- Line 1417: use nullptr
- Line 1500: use nullptr
- Line 1543: use nullptr
- Line 1556: function-like macro 'rte_pktmbuf_pkt_len' used; consider a 'constexpr' template function
- Line 1598: do not use C-style cast to convert between unrelated types
- Line 1619: variable 'm_last' is not initialized
- Line 1625: use nullptr
- Line 1627: do not use C-style cast to convert between unrelated types
- Line 1660: do not use C-style cast to convert between unrelated types
- Line 1710: declaration uses identifier '__rte_pktmbuf_read', which is a reserved identifier
- Line 1737: do not use pointer arithmetic
- Line 1863: declaration uses identifier '__rte_pktmbuf_linearize', which is a reserved identifier
- Line 1996: compound literals are a C99-specific feature
- Line 81: macro 'RTE_MBUF_F_RX_IP_CKSUM_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 80: macro 'RTE_MBUF_DYN_NAMESIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 75: macro 'RTE_PTYPE_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 72: do not use C-style cast to convert between unrelated types
- Line 428: variable 'bits' is not initialized
- Line 441: do not use C-style cast to convert between unrelated types
- Line 38: macro replacement list should be enclosed in parentheses
- Line 609: macro 'RTE_MEM_EVENT_CALLBACK_NAME_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 57: macro 'RTE_MEMPOOL_HEADER_COOKIE1' used to declare a constant; consider using a 'constexpr' constant
- Line 773: variable 'ret' is not initialized
- Line 802: variable 'ops' is not initialized
- Line 827: variable 'ops' is not initialized
- Line 828: variable 'ret' is not initialized
- Line 970: macro argument should be enclosed in parentheses
- Line 1318: use nullptr
- Line 1321: use nullptr
- Line 1324: do not use pointer arithmetic
- Line 1342: use nullptr
- Line 1365: variable 'cache_objs' is not initialized
- Line 1368: use nullptr
- Line 1387: do not use array subscript when the index is not an integer constant expression
- Line 1494: variable 'ret' is not initialized
- Line 1496: multiple declarations in a single statement reduces readability
- Line 1496: variable 'len' is not initialized
- Line 1497: variable 'cache_objs' is not initialized
- Line 1500: use nullptr
- Line 1505: do not use array subscript when the index is not an integer constant expression
- Line 1567: use nullptr
- Line 1603: variable 'ret' is not initialized
- Line 1636: variable 'cache' is not initialized
- Line 1693: variable 'ret' is not initialized
- Line 1790: variable 'hdr' is not initialized
- Line 1791: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_MEMZONE_H_', which is a reserved identifier
- Line 33: macro 'RTE_MEMZONE_2MB' used to declare a constant; consider using a 'constexpr' constant
- Line 418: multiple declarations in a single statement reduces readability
- Line 418: variable 'n_periods' is not initialized
- Line 418: variable 'tc' is not initialized
- Line 418: variable 'te' is not initialized
- Line 460: multiple declarations in a single statement reduces readability
- Line 460: variable 'n_periods' is not initialized
- Line 460: variable 'tc' is not initialized
- Line 460: variable 'te' is not initialized
- Line 501: multiple declarations in a single statement reduces readability
- Line 501: variable 'time_diff_tp' is not initialized
- Line 501: variable 'n_periods_tc' is not initialized
- Line 501: variable 'n_periods_tp' is not initialized
- Line 501: variable 'tc' is not initialized
- Line 501: variable 'tp' is not initialized
- Line 544: multiple declarations in a single statement reduces readability
- Line 544: variable 'time_diff_tp' is not initialized
- Line 544: variable 'n_periods_tc' is not initialized
- Line 544: variable 'n_periods_tp' is not initialized
- Line 544: variable 'tc' is not initialized
- Line 544: variable 'tp' is not initialized
- Line 587: multiple declarations in a single statement reduces readability
- Line 587: variable 'time_diff_te' is not initialized
- Line 587: variable 'n_periods_tc' is not initialized
- Line 587: variable 'n_periods_te' is not initialized
- Line 587: variable 'tc' is not initialized
- Line 587: variable 'te' is not initialized
- Line 631: multiple declarations in a single statement reduces readability
- Line 631: variable 'time_diff_te' is not initialized
- Line 631: variable 'n_periods_tc' is not initialized
- Line 631: variable 'n_periods_te' is not initialized
- Line 631: variable 'tc' is not initialized
- Line 631: variable 'te' is not initialized
- Line 6: declaration uses identifier '_RTE_OS_H_', which is a reserved identifier
- Line 21: function-like macro 'RTE_TAILQ_HEAD' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_PCI_DEV_DEFS_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PER_LCORE_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_POWER_INTRINSIC_X86_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PPP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PREFETCH_X86_64_H_', which is a reserved identifier
- Line 18: do not use C-style cast to convert between unrelated types
- Line 11: declaration uses identifier '_RTE_RING_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_CORE_H_', which is a reserved identifier
- Line 40: macro 'RTE_TAILQ_RING_NAME' used to declare a constant; consider using a 'constexpr' constant
- Line 96: declaration uses identifier '__rte_ring_hts_pos', which is a reserved identifier
- Line 153: macro 'RING_F_SP_ENQ' used to declare a constant; consider using a 'constexpr' constant
- Line 214: use nullptr
- Line 240: use nullptr
- Line 264: use nullptr
- Line 290: use nullptr
- Line 396: use nullptr
- Line 424: use nullptr
- Line 448: use nullptr
- Line 475: use nullptr
- Line 582: use nullptr
- Line 692: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_ELEM_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_enqueue_elems_32', which is a reserved identifier
- Line 17: variable 'i' is not initialized
- Line 18: use auto when initializing with a cast to avoid duplicating the type name
- Line 18: do not use C-style cast to convert between unrelated types
- Line 19: do not use C-style cast to convert between unrelated types
- Line 60: variable 'i' is not initialized
- Line 63: use auto when initializing with a cast to avoid duplicating the type name
- Line 63: do not use C-style cast to convert between unrelated types
- Line 64: do not use C-style cast to convert between unrelated types
- Line 93: variable 'i' is not initialized
- Line 96: use auto when initializing with a cast to avoid duplicating the type name
- Line 96: do not use C-style cast to convert between unrelated types
- Line 97: do not use C-style cast to convert between unrelated types
- Line 134: multiple declarations in a single statement reduces readability
- Line 134: variable 'scale' is not initialized
- Line 134: variable 'nr_idx' is not initialized
- Line 134: variable 'nr_num' is not initialized
- Line 134: variable 'nr_size' is not initialized
- Line 148: declaration uses identifier '__rte_ring_dequeue_elems_32', which is a reserved identifier
- Line 151: variable 'i' is not initialized
- Line 152: use auto when initializing with a cast to avoid duplicating the type name
- Line 152: do not use C-style cast to convert between unrelated types
- Line 153: do not use C-style cast to convert between unrelated types
- Line 194: variable 'i' is not initialized
- Line 197: use auto when initializing with a cast to avoid duplicating the type name
- Line 197: do not use C-style cast to convert between unrelated types
- Line 198: do not use C-style cast to convert between unrelated types
- Line 227: variable 'i' is not initialized
- Line 230: use auto when initializing with a cast to avoid duplicating the type name
- Line 230: do not use C-style cast to convert between unrelated types
- Line 231: do not use C-style cast to convert between unrelated types
- Line 264: multiple declarations in a single statement reduces readability
- Line 264: variable 'scale' is not initialized
- Line 264: variable 'nr_idx' is not initialized
- Line 264: variable 'nr_num' is not initialized
- Line 264: variable 'nr_size' is not initialized
- Line 315: declaration uses identifier '__rte_ring_do_enqueue_elem', which is a reserved identifier
- Line 320: multiple declarations in a single statement reduces readability
- Line 320: variable 'prod_next' is not initialized
- Line 321: variable 'free_entries' is not initialized
- Line 332: use nullptr
- Line 362: declaration uses identifier '__rte_ring_do_dequeue_elem', which is a reserved identifier
- Line 367: multiple declarations in a single statement reduces readability
- Line 367: variable 'cons_next' is not initialized
- Line 368: variable 'entries' is not initialized
- Line 380: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_GENERIC_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_update_tail', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_move_prod_head', which is a reserved identifier
- Line 62: variable 'success' is not initialized
- Line 125: declaration uses identifier '__rte_ring_move_cons_head', which is a reserved identifier
- Line 131: variable 'success' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_HTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_HTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_hts_update_tail', which is a reserved identifier
- Line 28: variable 'tail' is not initialized
- Line 42: declaration uses identifier '__rte_ring_hts_head_wait', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_hts_move_prod_head', which is a reserved identifier
- Line 59: variable 'n' is not initialized
- Line 60: multiple declarations in a single statement reduces readability
- Line 113: declaration uses identifier '__rte_ring_hts_move_cons_head', which is a reserved identifier
- Line 117: variable 'n' is not initialized
- Line 118: multiple declarations in a single statement reduces readability
- Line 187: declaration uses identifier '__rte_ring_do_hts_enqueue_elem', which is a reserved identifier
- Line 191: multiple declarations in a single statement reduces readability
- Line 191: variable 'head' is not initialized
- Line 200: use nullptr
- Line 228: declaration uses identifier '__rte_ring_do_hts_dequeue_elem', which is a reserved identifier
- Line 232: multiple declarations in a single statement reduces readability
- Line 232: variable 'head' is not initialized
- Line 241: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_H_', which is a reserved identifier
- Line 170: variable 'tail' is not initialized
- Line 333: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ELEM_PVT_H_', which is a reserved identifier
- Line 31: declaration uses identifier '__rte_ring_st_get_tail', which is a reserved identifier
- Line 34: multiple declarations in a single statement reduces readability
- Line 34: variable 'n' is not initialized
- Line 34: variable 't' is not initialized
- Line 53: declaration uses identifier '__rte_ring_st_set_head_tail', which is a reserved identifier
- Line 56: variable 'pos' is not initialized
- Line 75: declaration uses identifier '__rte_ring_hts_get_tail', which is a reserved identifier
- Line 78: variable 'n' is not initialized
- Line 97: declaration uses identifier '__rte_ring_hts_set_head_tail', which is a reserved identifier
- Line 114: declaration uses identifier '__rte_ring_do_enqueue_start', which is a reserved identifier
- Line 117: multiple declarations in a single statement reduces readability
- Line 117: variable 'head' is not initialized
- Line 117: variable 'next' is not initialized
- Line 137: use nullptr
- Line 147: declaration uses identifier '__rte_ring_do_dequeue_start', which is a reserved identifier
- Line 151: multiple declarations in a single statement reduces readability
- Line 151: variable 'head' is not initialized
- Line 151: variable 'next' is not initialized
- Line 174: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ZC_H_', which is a reserved identifier
- Line 98: declaration uses identifier '__rte_ring_get_elem_addr', which is a reserved identifier
- Line 101: multiple declarations in a single statement reduces readability
- Line 101: variable 'scale' is not initialized
- Line 101: variable 'nr_idx' is not initialized
- Line 102: use auto when initializing with a cast to avoid duplicating the type name
- Line 102: do not use C-style cast to convert between unrelated types
- Line 124: declaration uses identifier '__rte_ring_do_enqueue_zc_elem_start', which is a reserved identifier
- Line 128: multiple declarations in a single statement reduces readability
- Line 128: variable 'head' is not initialized
- Line 128: variable 'next' is not initialized
- Line 151: use nullptr
- Line 291: variable 'tail' is not initialized
- Line 331: declaration uses identifier '__rte_ring_do_dequeue_zc_elem_start', which is a reserved identifier
- Line 335: multiple declarations in a single statement reduces readability
- Line 335: variable 'head' is not initialized
- Line 335: variable 'next' is not initialized
- Line 359: use nullptr
- Line 497: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_RTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_RTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_rts_update_tail', which is a reserved identifier
- Line 27: multiple declarations in a single statement reduces readability
- Line 53: declaration uses identifier '__rte_ring_rts_head_wait', which is a reserved identifier
- Line 56: variable 'max' is not initialized
- Line 70: declaration uses identifier '__rte_ring_rts_move_prod_head', which is a reserved identifier
- Line 74: variable 'n' is not initialized
- Line 75: multiple declarations in a single statement reduces readability
- Line 128: declaration uses identifier '__rte_ring_rts_move_cons_head', which is a reserved identifier
- Line 132: variable 'n' is not initialized
- Line 133: multiple declarations in a single statement reduces readability
- Line 202: declaration uses identifier '__rte_ring_do_rts_enqueue_elem', which is a reserved identifier
- Line 206: multiple declarations in a single statement reduces readability
- Line 206: variable 'head' is not initialized
- Line 215: use nullptr
- Line 243: declaration uses identifier '__rte_ring_do_rts_dequeue_elem', which is a reserved identifier
- Line 247: multiple declarations in a single statement reduces readability
- Line 247: variable 'head' is not initialized
- Line 256: use nullptr
- Line 6: declaration uses identifier '_RTE_RTM_H_', which is a reserved identifier
- Line 6: macro '_RTE_RTM_H_' used to declare a constant; consider using a 'constexpr' constant
- Line 26: function-like macro 'RTE_XABORT_CODE' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_RWLOCK_X86_64_H_', which is a reserved identifier
- Line 15: declaration uses identifier '_RTE_SCTP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_SPINLOCK_X86_64_H_', which is a reserved identifier
- Line 80: multiple declarations in a single statement reduces readability
- Line 80: variable 'retries' is not initialized
- Line 109: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type 'int' is implementation-defined
- Line 74: do not use pointer arithmetic
- Line 43: macro 'RTE_TCP_CWR_FLAG' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_TRACE_POINT_H_', which is a reserved identifier
- Line 78: variadic macro 'RTE_TRACE_POINT' used; consider using a 'constexpr' variadic template function
- Line 151: macro '__RTE_TRACE_EMIT_STRING_LEN_MAX' used to declare a constant; consider using a 'constexpr' constant
- Line 153: declaration uses identifier '__RTE_TRACE_EVENT_HEADER_SZ', which is a reserved identifier
- Line 211: declaration uses identifier '__rte_trace_point_fp_is_enabled', which is a reserved identifier
- Line 227: declaration uses identifier '__rte_trace_mem_per_thread_alloc', which is a reserved identifier
- Line 245: declaration uses identifier '__rte_trace_point_emit_field', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_trace_point_register', which is a reserved identifier
- Line 379: declaration uses identifier '__rte_trace_point_emit_header_generic', which is a reserved identifier
- Line 379: function-like macro '__rte_trace_point_emit_header_generic' used; consider a 'constexpr' template function
- Line 380: function-like macro '__rte_trace_point_emit_header_fp' used; consider a 'constexpr' template function
- Line 11: declaration uses identifier '_RTE_UUID_H_', which is a reserved identifier
- Line 24: do not declare C-style arrays, use std::array<> instead
- Line 6: declaration uses identifier '_RTE_VXLAN_H_', which is a reserved identifier
- Line 25: macro 'RTE_VXLAN_DEFAULT_PORT' used to declare a constant; consider using a 'constexpr' constant
- Line 18: nested namespaces can be concatenated
- Line 23: macro 'NUM_MBUFS' used to declare a constant; consider using a 'constexpr' constant
- Line 24: macro 'MBUF_CACHE_SIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 47: do not declare C-style arrays, use std::array<> instead
- Line 15: nested namespaces can be concatenated
- Line 20: do not declare C-style arrays, use std::array<> instead
- Line 19: nested namespaces can be concatenated
- Line 35: nested namespaces can be concatenated
- Line 39: initialization of 'dst_mac_addr' with static storage duration may throw an exception that cannot be caught
- Line 42: consider replacing 'long' with 'int64'
- Line 43: consider replacing 'long' with 'int64'
- Line 44: consider replacing 'long' with 'int64'
- Line 66: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined
- Line 69: use nullptr
- Line 73: use auto when initializing with a cast to avoid duplicating the type name
- Line 73: do not use C-style cast to convert between unrelated types
- Line 73: C-style casts are discouraged; use static_cast
- Line 73: do not manage memory manually; consider a container or a smart pointer
- Line 74: use nullptr
- Line 94: do not use pointer arithmetic
- Line 105: do not use pointer arithmetic
- Line 171: consider replacing 'long' with 'int64'
- Line 181: cast from 'void (*)(void *)' to 'lcore_function_t *' (aka 'int (*)(void *)') converts to incompatible function type
- Line 181: do not use C-style cast to convert between unrelated types
- Line 181: C-style casts are discouraged; use reinterpret_cast
test/apps/test_frames.hpp
Errors
- Line 0: The standard copyright message wasn't found.
- Line 38: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 4: Include the directory when naming .hh files
- Line 25: An unsigned integer appears to be used here.
- Line 27: An unsigned integer appears to be used here.
- Line 29: An unsigned integer appears to be used here.
- Line 30: An unsigned integer appears to be used here.
- Line 35: An unsigned integer appears to be used here.
- Line 38: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
test/apps/test_garp.cxx
Errors
- Line 0: The standard copyright message wasn't found.
- Line 1: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 25: Found other header after system header. Should be: test_garp.hh, other non-system headers, system headers.
- Line 26: Found other header after system header. Should be: test_garp.hh, other non-system headers, system headers.
- Line 27: Found other header after system header. Should be: test_garp.hh, other non-system headers, system headers.
- Line 53: An unsigned integer appears to be used here.
- Line 75: Using C-style cast. Use one of the C++ cast operators instead
- Line 93: Using C-style cast. Use one of the C++ cast operators instead
- Line 98: An unsigned integer appears to be used here.
- Line 114: Use operator ! instead of not
- Line 172: Use operator || instead of or
- Line 188: An unsigned integer appears to be used here.
- Line 189: An unsigned integer appears to be used here.
- Line 190: An unsigned integer appears to be used here.
- Line 191: An unsigned integer appears to be used here.
- Line 176: Add #include
for string - Line 176: Add #include
for vector<> - Line 193: Add #include
- Line 193: Add #include
for unique_ptr<>
Warnings
- Line 6: declaration uses identifier '_RTE_ATOMIC_H_', which is a reserved identifier
- Line 119: function-like macro 'rte_compiler_barrier' used; consider a 'constexpr' template function
- Line 30: macro 'RTE_BIG_ENDIAN' used to declare a constant; consider using a 'constexpr' constant
- Line 93: consider replacing 'unsigned long' with 'uint64'
- Line 19: macro 'MS_PER_S' used to declare a constant; consider using a 'constexpr' constant
- Line 132: function-like macro 'RTE_WAIT_UNTIL_MASKED' used; consider a 'constexpr' template function
- Line 135: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_POWER_INTRINSIC_H_', which is a reserved identifier
- Line 22: macro 'RTE_POWER_MONITOR_OPAQUE_SZ' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_RWLOCK_H_', which is a reserved identifier
- Line 52: macro 'RTE_RWLOCK_WAIT' used to declare a constant; consider using a 'constexpr' constant
- Line 90: converting integer literal to bool, use bool literal instead
- Line 123: variable 'x' is not initialized
- Line 170: variable 'x' is not initialized
- Line 175: converting integer literal to bool, use bool literal instead
- Line 190: variable 'x' is not initialized
- Line 192: converting integer literal to bool, use bool literal instead
- Line 198: converting integer literal to bool, use bool literal instead
- Line 6: declaration uses identifier '_RTE_SPINLOCK_H_', which is a reserved identifier
- Line 223: increment of object of volatile-qualified type 'volatile int' is deprecated
- Line 6: declaration uses identifier '_RTE_ATOMIC_X86_H_', which is a reserved identifier
- Line 21: macro 'MPLOCKED' used to declare a constant; consider using a 'constexpr' constant
- Line 133: do not use C-style cast to convert between unrelated types
- Line 174: variable 'ret' is not initialized
- Line 190: variable 'res' is not initialized
- Line 219: do not use C-style cast to convert between unrelated types
- Line 260: variable 'ret' is not initialized
- Line 17: declaration uses identifier '_RTE_ATOMIC_X86_64_H_', which is a reserved identifier
- Line 29: variable 'res' is not initialized
- Line 145: variable 'ret' is not initialized
- Line 160: variable 'ret' is not initialized
- Line 174: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_BITOPS_H_', which is a reserved identifier
- Line 30: function-like macro 'RTE_BIT64' used; consider a 'constexpr' template function
- Line 28: function-like macro 'likely' used; consider a 'constexpr' template function
- Line 51: function-like macro 'rte_bswap16' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_COMMON_H_', which is a reserved identifier
- Line 50: macro 'RTE_CC_IS_GNU' used to declare a constant; consider using a 'constexpr' constant
- Line 88: declaration uses identifier '__rte_may_alias', which is a reserved identifier
- Line 91: declaration uses identifier '__rte_deprecated', which is a reserved identifier
- Line 92: declaration uses identifier '__rte_deprecated_msg', which is a reserved identifier
- Line 92: function-like macro '__rte_deprecated_msg' used; consider a 'constexpr' template function
- Line 108: declaration uses identifier '__rte_weak', which is a reserved identifier
- Line 113: declaration uses identifier '__rte_used', which is a reserved identifier
- Line 120: declaration uses identifier '__rte_unused', which is a reserved identifier
- Line 126: declaration uses identifier '__rte_restrict', which is a reserved identifier
- Line 135: function-like macro 'RTE_SET_USED' used; consider a 'constexpr' template function
- Line 148: function-like macro '__rte_format_printf' used; consider a 'constexpr' template function
- Line 158: declaration uses identifier '__rte_alloc_size', which is a reserved identifier
- Line 158: variadic macro '__rte_alloc_size' used; consider using a 'constexpr' variadic template function
- Line 164: macro 'RTE_PRIORITY_LOG' used to declare a constant; consider using a 'constexpr' constant
- Line 250: declaration uses identifier '__rte_warn_unused_result', which is a reserved identifier
- Line 260: declaration uses identifier '__rte_noinline', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_hot', which is a reserved identifier
- Line 270: declaration uses identifier '__rte_cold', which is a reserved identifier
- Line 282: declaration uses identifier '__rte_no_asan', which is a reserved identifier
- Line 290: function-like macro 'RTE_PTR_ADD' used; consider a 'constexpr' template function
- Line 443: declaration uses identifier '__rte_cache_min_aligned', which is a reserved identifier
- Line 464: do not declare C-style arrays, use std::array<> instead
- Line 824: macro argument should be enclosed in parentheses
- Line 837: function-like macro 'RTE_SIZEOF_FIELD' used; consider a 'constexpr' template function
- Line 841: function-like macro 'RTE_STR' used; consider a 'constexpr' template function
- Line 15: declaration uses identifier '__rte_experimental', which is a reserved identifier
- Line 33: declaration uses identifier '__rte_internal', which is a reserved identifier
- Line 13: declaration uses identifier '_RTE_CONFIG_H_', which is a reserved identifier
- Line 19: macro 'RTE_EXEC_ENV_LINUXAPP' used to declare a constant; consider using a 'constexpr' constant
- Line 7: declaration uses identifier '_RTE_CYCLES_X86_64_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_DEBUG_H_', which is a reserved identifier
- Line 43: variadic macro 'rte_panic' used; consider using a 'constexpr' variadic template function
- Line 46: function-like macro 'RTE_FUNC_PTR_OR_ERR_RET' used; consider a 'constexpr' template function
- Line 384: macro argument should be enclosed in parentheses
- Line 385: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_DEV_INFO_H_', which is a reserved identifier
- Line 44: macro 'RTE_ETH_MODULE_SFF_8079' used to declare a constant; consider using a 'constexpr' constant
- Line 35: macro 'RTE_DEVARGS_KEY_BUS' used to declare a constant; consider using a 'constexpr' constant
- Line 265: macro argument should be enclosed in parentheses
- Line 266: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_EAL_H_', which is a reserved identifier
- Line 28: macro 'RTE_MAGIC' used to declare a constant; consider using a 'constexpr' constant
- Line 28: macro 'RTE_ECPRI_REV_UP_TO_20' used to declare a constant; consider using a 'constexpr' constant
- Line 21: macro 'RTE_INTR_EVENT_ADD' used to declare a constant; consider using a 'constexpr' constant
- Line 12: declaration uses identifier '_RTE_ERRNO_H_', which is a reserved identifier
- Line 49: declaration uses identifier '__ELASTERROR', which is a reserved identifier
- Line 49: macro '__ELASTERROR' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_ESP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETH_CTRL_H_', which is a reserved identifier
- Line 30: macro 'RTE_NTUPLE_FLAGS_DST_IP' used to declare a constant; consider using a 'constexpr' constant
- Line 246: function-like macro 'RTE_ETH_FOREACH_MATCHING_DEV' used; consider a 'constexpr' template function
- Line 249: macro argument should be enclosed in parentheses
- Line 250: macro argument should be enclosed in parentheses
- Line 290: macro 'RTE_ETH_LINK_SPEED_AUTONEG' used to declare a constant; consider using a 'constexpr' constant
- Line 795: macro 'RTE_ETH_RSS_RETA_SIZE_64' used to declare a constant; consider using a 'constexpr' constant
- Line 2070: macro argument should be enclosed in parentheses
- Line 2071: macro argument should be enclosed in parentheses
- Line 2071: macro argument should be enclosed in parentheses
- Line 2086: function-like macro 'RTE_ETH_FOREACH_DEV' used; consider a 'constexpr' template function
- Line 2114: macro argument should be enclosed in parentheses
- Line 2115: macro argument should be enclosed in parentheses
- Line 2115: macro argument should be enclosed in parentheses
- Line 2141: function-like macro 'RTE_ETH_FOREACH_DEV_SIBLING' used; consider a 'constexpr' template function
- Line 2143: macro argument should be enclosed in parentheses
- Line 2144: macro argument should be enclosed in parentheses
- Line 2144: macro argument should be enclosed in parentheses
- Line 3603: flexible array members are a C99 feature
- Line 5864: variable 'p' is not initialized
- Line 5865: variable 'qd' is not initialized
- Line 5878: do not use array subscript when the index is not an integer constant expression
- Line 5903: redundant cast to the same type
- Line 5911: do not use C-style cast to convert between unrelated types
- Line 5936: variable 'qd' is not initialized
- Line 5949: do not use array subscript when the index is not an integer constant expression
- Line 5966: macro 'RTE_ETH_RX_DESC_AVAIL' used to declare a constant; consider using a 'constexpr' constant
- Line 6009: variable 'qd' is not initialized
- Line 6022: do not use array subscript when the index is not an integer constant expression
- Line 6038: macro 'RTE_ETH_TX_DESC_FULL' used to declare a constant; consider using a 'constexpr' constant
- Line 6080: variable 'qd' is not initialized
- Line 6093: do not use array subscript when the index is not an integer constant expression
- Line 6203: variable 'p' is not initialized
- Line 6204: variable 'qd' is not initialized
- Line 6217: do not use array subscript when the index is not an integer constant expression
- Line 6240: redundant cast to the same type
- Line 6250: do not use C-style cast to convert between unrelated types
- Line 6315: variable 'qd' is not initialized
- Line 6329: do not use array subscript when the index is not an integer constant expression
- Line 6: declaration uses identifier '_RTE_ETHDEV_CORE_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETHDEV_TRACE_FP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETHER_H_', which is a reserved identifier
- Line 25: macro 'RTE_ETHER_ADDR_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 84: do not use C-style cast to convert between unrelated types
- Line 85: do not use C-style cast to convert between unrelated types
- Line 102: do not use C-style cast to convert between unrelated types
- Line 149: do not use C-style cast to convert between unrelated types
- Line 333: do not use C-style cast to convert between unrelated types
- Line 358: variable 'nh' is not initialized
- Line 359: variable 'vh' is not initialized
- Line 369: do not use pointer arithmetic
- Line 378: do not use C-style cast to convert between unrelated types
- Line 9: declaration uses identifier '_RTE_GTP_H_', which is a reserved identifier
- Line 147: macro 'RTE_GTP_TYPE_IPV4' used to declare a constant; consider using a 'constexpr' constant
- Line 9: declaration uses identifier '_RTE_ICMP_H_', which is a reserved identifier
- Line 37: macro 'RTE_IP_ICMP_ECHO_REPLY' used to declare a constant; consider using a 'constexpr' constant
- Line 38: macro 'RTE_MAX_RXTX_INTR_VEC_ID' used to declare a constant; consider using a 'constexpr' constant
- Line 68: function-like macro 'RTE_IPV4' used; consider a 'constexpr' template function
- Line 164: variable 'end' is not initialized
- Line 166: do not use C-style cast to convert between unrelated types
- Line 195: declaration uses identifier '__rte_raw_cksum_reduce', which is a reserved identifier
- Line 215: variable 'sum' is not initialized
- Line 239: variable 'seg' is not initialized
- Line 240: variable 'buf' is not initialized
- Line 241: multiple declarations in a single statement reduces readability
- Line 241: variable 'tmp' is not initialized
- Line 242: multiple declarations in a single statement reduces readability
- Line 242: variable 'done' is not initialized
- Line 246: do not use pointer arithmetic
- Line 263: use nullptr
- Line 266: do not use pointer arithmetic
- Line 342: variable 'l3_len' is not initialized
- Line 362: declaration uses identifier '__rte_ipv4_udptcp_cksum', which is a reserved identifier
- Line 364: variable 'cksum' is not initialized
- Line 365: multiple declarations in a single statement reduces readability
- Line 365: variable 'l4_len' is not initialized
- Line 366: variable 'ip_hdr_len' is not initialized
- Line 417: declaration uses identifier '__rte_ipv4_udptcp_cksum_mbuf', which is a reserved identifier
- Line 421: variable 'raw_cksum' is not initialized
- Line 422: variable 'cksum' is not initialized
- Line 543: macro 'RTE_IPV6_HDR_FL_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 596: declaration uses identifier '__rte_ipv6_udptcp_cksum', which is a reserved identifier
- Line 598: variable 'cksum' is not initialized
- Line 599: variable 'l4_len' is not initialized
- Line 646: declaration uses identifier '__rte_ipv6_udptcp_cksum_mbuf', which is a reserved identifier
- Line 650: variable 'raw_cksum' is not initialized
- Line 651: variable 'cksum' is not initialized
- Line 765: macro 'RTE_IPV6_EHDR_MF_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 813: do not use pointer arithmetic
- Line 84: macro 'RTE_L2TPV2_MSG_TYPE_CONTROL' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_LCORE_H_', which is a reserved identifier
- Line 218: function-like macro 'RTE_LCORE_FOREACH' used; consider a 'constexpr' template function
- Line 220: macro argument should be enclosed in parentheses
- Line 221: macro argument should be enclosed in parentheses
- Line 226: function-like macro 'RTE_LCORE_FOREACH_WORKER' used; consider a 'constexpr' template function
- Line 228: macro argument should be enclosed in parentheses
- Line 229: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_LOG_H_', which is a reserved identifier
- Line 29: macro 'RTE_LOGTYPE_EAL' used to declare a constant; consider using a 'constexpr' constant
- Line 370: macro argument should be enclosed in parentheses
- Line 371: macro argument should be enclosed in parentheses
- Line 387: function-like macro 'RTE_LOG_REGISTER' used; consider a 'constexpr' template function
- Line 218: do not use C-style cast to convert between unrelated types
- Line 318: do not use C-style cast to convert between unrelated types
- Line 348: declaration uses identifier '__rte_mbuf_sanity_check', which is a reserved identifier
- Line 348: function-like macro '__rte_mbuf_sanity_check' used; consider a 'constexpr' template function
- Line 382: declaration uses identifier '__rte_mbuf_refcnt_update', which is a reserved identifier
- Line 510: function-like macro 'RTE_MBUF_PREFETCH_TO_FREE' used; consider a 'constexpr' template function
- Line 575: function-like macro 'MBUF_RAW_ALLOC_CHECK' used; consider a 'constexpr' template function
- Line 600: do not use C-style cast to convert between unrelated types
- Line 825: variable 'mbp_priv' is not initialized
- Line 827: do not use C-style cast to convert between unrelated types
- Line 848: do not use C-style cast to convert between unrelated types
- Line 907: variable 'm' is not initialized
- Line 908: use nullptr
- Line 931: variable 'rc' is not initialized
- Line 933: do not use C-style cast to convert between unrelated types
- Line 1006: do not use C-style cast to convert between unrelated types
- Line 1009: do not use C-style cast to convert between unrelated types
- Line 1014: do not use C-style cast to convert between unrelated types
- Line 1184: use nullptr
- Line 1200: declaration uses identifier '__rte_pktmbuf_free_extbuf', which is a reserved identifier
- Line 1216: declaration uses identifier '__rte_pktmbuf_free_direct', which is a reserved identifier
- Line 1218: variable 'md' is not initialized
- Line 1225: use nullptr
- Line 1253: multiple declarations in a single statement reduces readability
- Line 1253: variable 'buf_len' is not initialized
- Line 1254: variable 'priv_size' is not initialized
- Line 1281: do not use C-style cast to convert between unrelated types
- Line 1304: variable 'shinfo' is not initialized
- Line 1353: use nullptr
- Line 1356: use nullptr
- Line 1357: use nullptr
- Line 1370: use nullptr
- Line 1373: use nullptr
- Line 1374: use nullptr
- Line 1381: use nullptr
- Line 1397: use nullptr
- Line 1412: variable 'm_next' is not initialized
- Line 1414: use nullptr
- Line 1417: use nullptr
- Line 1500: use nullptr
- Line 1543: use nullptr
- Line 1556: function-like macro 'rte_pktmbuf_pkt_len' used; consider a 'constexpr' template function
- Line 1598: do not use C-style cast to convert between unrelated types
- Line 1619: variable 'm_last' is not initialized
- Line 1625: use nullptr
- Line 1627: do not use C-style cast to convert between unrelated types
- Line 1660: do not use C-style cast to convert between unrelated types
- Line 1710: declaration uses identifier '__rte_pktmbuf_read', which is a reserved identifier
- Line 1737: do not use pointer arithmetic
- Line 1863: declaration uses identifier '__rte_pktmbuf_linearize', which is a reserved identifier
- Line 1996: compound literals are a C99-specific feature
- Line 81: macro 'RTE_MBUF_F_RX_IP_CKSUM_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 80: macro 'RTE_MBUF_DYN_NAMESIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 75: macro 'RTE_PTYPE_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 72: do not use C-style cast to convert between unrelated types
- Line 428: variable 'bits' is not initialized
- Line 441: do not use C-style cast to convert between unrelated types
- Line 38: macro replacement list should be enclosed in parentheses
- Line 609: macro 'RTE_MEM_EVENT_CALLBACK_NAME_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 57: macro 'RTE_MEMPOOL_HEADER_COOKIE1' used to declare a constant; consider using a 'constexpr' constant
- Line 773: variable 'ret' is not initialized
- Line 802: variable 'ops' is not initialized
- Line 827: variable 'ops' is not initialized
- Line 828: variable 'ret' is not initialized
- Line 970: macro argument should be enclosed in parentheses
- Line 1318: use nullptr
- Line 1321: use nullptr
- Line 1324: do not use pointer arithmetic
- Line 1342: use nullptr
- Line 1365: variable 'cache_objs' is not initialized
- Line 1368: use nullptr
- Line 1387: do not use array subscript when the index is not an integer constant expression
- Line 1494: variable 'ret' is not initialized
- Line 1496: multiple declarations in a single statement reduces readability
- Line 1496: variable 'len' is not initialized
- Line 1497: variable 'cache_objs' is not initialized
- Line 1500: use nullptr
- Line 1505: do not use array subscript when the index is not an integer constant expression
- Line 1567: use nullptr
- Line 1603: variable 'ret' is not initialized
- Line 1636: variable 'cache' is not initialized
- Line 1693: variable 'ret' is not initialized
- Line 1790: variable 'hdr' is not initialized
- Line 1791: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_MEMZONE_H_', which is a reserved identifier
- Line 33: macro 'RTE_MEMZONE_2MB' used to declare a constant; consider using a 'constexpr' constant
- Line 418: multiple declarations in a single statement reduces readability
- Line 418: variable 'n_periods' is not initialized
- Line 418: variable 'tc' is not initialized
- Line 418: variable 'te' is not initialized
- Line 460: multiple declarations in a single statement reduces readability
- Line 460: variable 'n_periods' is not initialized
- Line 460: variable 'tc' is not initialized
- Line 460: variable 'te' is not initialized
- Line 501: multiple declarations in a single statement reduces readability
- Line 501: variable 'time_diff_tp' is not initialized
- Line 501: variable 'n_periods_tc' is not initialized
- Line 501: variable 'n_periods_tp' is not initialized
- Line 501: variable 'tc' is not initialized
- Line 501: variable 'tp' is not initialized
- Line 544: multiple declarations in a single statement reduces readability
- Line 544: variable 'time_diff_tp' is not initialized
- Line 544: variable 'n_periods_tc' is not initialized
- Line 544: variable 'n_periods_tp' is not initialized
- Line 544: variable 'tc' is not initialized
- Line 544: variable 'tp' is not initialized
- Line 587: multiple declarations in a single statement reduces readability
- Line 587: variable 'time_diff_te' is not initialized
- Line 587: variable 'n_periods_tc' is not initialized
- Line 587: variable 'n_periods_te' is not initialized
- Line 587: variable 'tc' is not initialized
- Line 587: variable 'te' is not initialized
- Line 631: multiple declarations in a single statement reduces readability
- Line 631: variable 'time_diff_te' is not initialized
- Line 631: variable 'n_periods_tc' is not initialized
- Line 631: variable 'n_periods_te' is not initialized
- Line 631: variable 'tc' is not initialized
- Line 631: variable 'te' is not initialized
- Line 6: declaration uses identifier '_RTE_OS_H_', which is a reserved identifier
- Line 21: function-like macro 'RTE_TAILQ_HEAD' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_PCI_DEV_DEFS_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PER_LCORE_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_POWER_INTRINSIC_X86_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PPP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PREFETCH_X86_64_H_', which is a reserved identifier
- Line 18: do not use C-style cast to convert between unrelated types
- Line 11: declaration uses identifier '_RTE_RING_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_CORE_H_', which is a reserved identifier
- Line 40: macro 'RTE_TAILQ_RING_NAME' used to declare a constant; consider using a 'constexpr' constant
- Line 96: declaration uses identifier '__rte_ring_hts_pos', which is a reserved identifier
- Line 153: macro 'RING_F_SP_ENQ' used to declare a constant; consider using a 'constexpr' constant
- Line 214: use nullptr
- Line 240: use nullptr
- Line 264: use nullptr
- Line 290: use nullptr
- Line 396: use nullptr
- Line 424: use nullptr
- Line 448: use nullptr
- Line 475: use nullptr
- Line 582: use nullptr
- Line 692: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_ELEM_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_enqueue_elems_32', which is a reserved identifier
- Line 17: variable 'i' is not initialized
- Line 18: use auto when initializing with a cast to avoid duplicating the type name
- Line 18: do not use C-style cast to convert between unrelated types
- Line 19: do not use C-style cast to convert between unrelated types
- Line 60: variable 'i' is not initialized
- Line 63: use auto when initializing with a cast to avoid duplicating the type name
- Line 63: do not use C-style cast to convert between unrelated types
- Line 64: do not use C-style cast to convert between unrelated types
- Line 93: variable 'i' is not initialized
- Line 96: use auto when initializing with a cast to avoid duplicating the type name
- Line 96: do not use C-style cast to convert between unrelated types
- Line 97: do not use C-style cast to convert between unrelated types
- Line 134: multiple declarations in a single statement reduces readability
- Line 134: variable 'scale' is not initialized
- Line 134: variable 'nr_idx' is not initialized
- Line 134: variable 'nr_num' is not initialized
- Line 134: variable 'nr_size' is not initialized
- Line 148: declaration uses identifier '__rte_ring_dequeue_elems_32', which is a reserved identifier
- Line 151: variable 'i' is not initialized
- Line 152: use auto when initializing with a cast to avoid duplicating the type name
- Line 152: do not use C-style cast to convert between unrelated types
- Line 153: do not use C-style cast to convert between unrelated types
- Line 194: variable 'i' is not initialized
- Line 197: use auto when initializing with a cast to avoid duplicating the type name
- Line 197: do not use C-style cast to convert between unrelated types
- Line 198: do not use C-style cast to convert between unrelated types
- Line 227: variable 'i' is not initialized
- Line 230: use auto when initializing with a cast to avoid duplicating the type name
- Line 230: do not use C-style cast to convert between unrelated types
- Line 231: do not use C-style cast to convert between unrelated types
- Line 264: multiple declarations in a single statement reduces readability
- Line 264: variable 'scale' is not initialized
- Line 264: variable 'nr_idx' is not initialized
- Line 264: variable 'nr_num' is not initialized
- Line 264: variable 'nr_size' is not initialized
- Line 315: declaration uses identifier '__rte_ring_do_enqueue_elem', which is a reserved identifier
- Line 320: multiple declarations in a single statement reduces readability
- Line 320: variable 'prod_next' is not initialized
- Line 321: variable 'free_entries' is not initialized
- Line 332: use nullptr
- Line 362: declaration uses identifier '__rte_ring_do_dequeue_elem', which is a reserved identifier
- Line 367: multiple declarations in a single statement reduces readability
- Line 367: variable 'cons_next' is not initialized
- Line 368: variable 'entries' is not initialized
- Line 380: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_GENERIC_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_update_tail', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_move_prod_head', which is a reserved identifier
- Line 62: variable 'success' is not initialized
- Line 125: declaration uses identifier '__rte_ring_move_cons_head', which is a reserved identifier
- Line 131: variable 'success' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_HTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_HTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_hts_update_tail', which is a reserved identifier
- Line 28: variable 'tail' is not initialized
- Line 42: declaration uses identifier '__rte_ring_hts_head_wait', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_hts_move_prod_head', which is a reserved identifier
- Line 59: variable 'n' is not initialized
- Line 60: multiple declarations in a single statement reduces readability
- Line 113: declaration uses identifier '__rte_ring_hts_move_cons_head', which is a reserved identifier
- Line 117: variable 'n' is not initialized
- Line 118: multiple declarations in a single statement reduces readability
- Line 187: declaration uses identifier '__rte_ring_do_hts_enqueue_elem', which is a reserved identifier
- Line 191: multiple declarations in a single statement reduces readability
- Line 191: variable 'head' is not initialized
- Line 200: use nullptr
- Line 228: declaration uses identifier '__rte_ring_do_hts_dequeue_elem', which is a reserved identifier
- Line 232: multiple declarations in a single statement reduces readability
- Line 232: variable 'head' is not initialized
- Line 241: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_H_', which is a reserved identifier
- Line 170: variable 'tail' is not initialized
- Line 333: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ELEM_PVT_H_', which is a reserved identifier
- Line 31: declaration uses identifier '__rte_ring_st_get_tail', which is a reserved identifier
- Line 34: multiple declarations in a single statement reduces readability
- Line 34: variable 'n' is not initialized
- Line 34: variable 't' is not initialized
- Line 53: declaration uses identifier '__rte_ring_st_set_head_tail', which is a reserved identifier
- Line 56: variable 'pos' is not initialized
- Line 75: declaration uses identifier '__rte_ring_hts_get_tail', which is a reserved identifier
- Line 78: variable 'n' is not initialized
- Line 97: declaration uses identifier '__rte_ring_hts_set_head_tail', which is a reserved identifier
- Line 114: declaration uses identifier '__rte_ring_do_enqueue_start', which is a reserved identifier
- Line 117: multiple declarations in a single statement reduces readability
- Line 117: variable 'head' is not initialized
- Line 117: variable 'next' is not initialized
- Line 137: use nullptr
- Line 147: declaration uses identifier '__rte_ring_do_dequeue_start', which is a reserved identifier
- Line 151: multiple declarations in a single statement reduces readability
- Line 151: variable 'head' is not initialized
- Line 151: variable 'next' is not initialized
- Line 174: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ZC_H_', which is a reserved identifier
- Line 98: declaration uses identifier '__rte_ring_get_elem_addr', which is a reserved identifier
- Line 101: multiple declarations in a single statement reduces readability
- Line 101: variable 'scale' is not initialized
- Line 101: variable 'nr_idx' is not initialized
- Line 102: use auto when initializing with a cast to avoid duplicating the type name
- Line 102: do not use C-style cast to convert between unrelated types
- Line 124: declaration uses identifier '__rte_ring_do_enqueue_zc_elem_start', which is a reserved identifier
- Line 128: multiple declarations in a single statement reduces readability
- Line 128: variable 'head' is not initialized
- Line 128: variable 'next' is not initialized
- Line 151: use nullptr
- Line 291: variable 'tail' is not initialized
- Line 331: declaration uses identifier '__rte_ring_do_dequeue_zc_elem_start', which is a reserved identifier
- Line 335: multiple declarations in a single statement reduces readability
- Line 335: variable 'head' is not initialized
- Line 335: variable 'next' is not initialized
- Line 359: use nullptr
- Line 497: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_RTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_RTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_rts_update_tail', which is a reserved identifier
- Line 27: multiple declarations in a single statement reduces readability
- Line 53: declaration uses identifier '__rte_ring_rts_head_wait', which is a reserved identifier
- Line 56: variable 'max' is not initialized
- Line 70: declaration uses identifier '__rte_ring_rts_move_prod_head', which is a reserved identifier
- Line 74: variable 'n' is not initialized
- Line 75: multiple declarations in a single statement reduces readability
- Line 128: declaration uses identifier '__rte_ring_rts_move_cons_head', which is a reserved identifier
- Line 132: variable 'n' is not initialized
- Line 133: multiple declarations in a single statement reduces readability
- Line 202: declaration uses identifier '__rte_ring_do_rts_enqueue_elem', which is a reserved identifier
- Line 206: multiple declarations in a single statement reduces readability
- Line 206: variable 'head' is not initialized
- Line 215: use nullptr
- Line 243: declaration uses identifier '__rte_ring_do_rts_dequeue_elem', which is a reserved identifier
- Line 247: multiple declarations in a single statement reduces readability
- Line 247: variable 'head' is not initialized
- Line 256: use nullptr
- Line 6: declaration uses identifier '_RTE_RTM_H_', which is a reserved identifier
- Line 6: macro '_RTE_RTM_H_' used to declare a constant; consider using a 'constexpr' constant
- Line 26: function-like macro 'RTE_XABORT_CODE' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_RWLOCK_X86_64_H_', which is a reserved identifier
- Line 15: declaration uses identifier '_RTE_SCTP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_SPINLOCK_X86_64_H_', which is a reserved identifier
- Line 80: multiple declarations in a single statement reduces readability
- Line 80: variable 'retries' is not initialized
- Line 109: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type 'int' is implementation-defined
- Line 74: do not use pointer arithmetic
- Line 43: macro 'RTE_TCP_CWR_FLAG' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_TRACE_POINT_H_', which is a reserved identifier
- Line 78: variadic macro 'RTE_TRACE_POINT' used; consider using a 'constexpr' variadic template function
- Line 151: macro '__RTE_TRACE_EMIT_STRING_LEN_MAX' used to declare a constant; consider using a 'constexpr' constant
- Line 153: declaration uses identifier '__RTE_TRACE_EVENT_HEADER_SZ', which is a reserved identifier
- Line 211: declaration uses identifier '__rte_trace_point_fp_is_enabled', which is a reserved identifier
- Line 227: declaration uses identifier '__rte_trace_mem_per_thread_alloc', which is a reserved identifier
- Line 245: declaration uses identifier '__rte_trace_point_emit_field', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_trace_point_register', which is a reserved identifier
- Line 379: declaration uses identifier '__rte_trace_point_emit_header_generic', which is a reserved identifier
- Line 379: function-like macro '__rte_trace_point_emit_header_generic' used; consider a 'constexpr' template function
- Line 380: function-like macro '__rte_trace_point_emit_header_fp' used; consider a 'constexpr' template function
- Line 11: declaration uses identifier '_RTE_UUID_H_', which is a reserved identifier
- Line 24: do not declare C-style arrays, use std::array<> instead
- Line 6: declaration uses identifier '_RTE_VXLAN_H_', which is a reserved identifier
- Line 25: macro 'RTE_VXLAN_DEFAULT_PORT' used to declare a constant; consider using a 'constexpr' constant
- Line 18: nested namespaces can be concatenated
- Line 23: macro 'NUM_MBUFS' used to declare a constant; consider using a 'constexpr' constant
- Line 24: macro 'MBUF_CACHE_SIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 47: do not declare C-style arrays, use std::array<> instead
- Line 15: nested namespaces can be concatenated
- Line 37: use auto when initializing with a cast to avoid duplicating the type name
- Line 37: do not use C-style cast to convert between unrelated types
- Line 38: use auto when initializing with a cast to avoid duplicating the type name
- Line 38: do not use C-style cast to convert between unrelated types
- Line 39: variable 'v' is not initialized
- Line 48: use auto when initializing with a cast to avoid duplicating the type name
- Line 48: do not use C-style cast to convert between unrelated types
- Line 49: use auto when initializing with a cast to avoid duplicating the type name
- Line 49: do not use C-style cast to convert between unrelated types
- Line 50: do not use pointer arithmetic
- Line 50: do not use pointer arithmetic
- Line 51: do not use pointer arithmetic
- Line 51: do not use pointer arithmetic
- Line 58: use auto when initializing with a cast to avoid duplicating the type name
- Line 58: do not use C-style cast to convert between unrelated types
- Line 59: use auto when initializing with a cast to avoid duplicating the type name
- Line 59: do not use C-style cast to convert between unrelated types
- Line 60: variable 'v' is not initialized
- Line 69: use auto when initializing with a cast to avoid duplicating the type name
- Line 69: do not use C-style cast to convert between unrelated types
- Line 70: use auto when initializing with a cast to avoid duplicating the type name
- Line 70: do not use C-style cast to convert between unrelated types
- Line 2: declaration uses identifier '_IPV4_ADDR_H_', which is a reserved identifier
- Line 25: do not use array subscript when the index is not an integer constant expression
- Line 29: do not declare C-style arrays, use std::array<> instead
- Line 15: nested namespaces can be concatenated
- Line 20: do not declare C-style arrays, use std::array<> instead
- Line 19: nested namespaces can be concatenated
- Line 35: nested namespaces can be concatenated
- Line 10: inclusion of deprecated C++ header 'inttypes.h'; consider using 'cinttypes' instead
- Line 18: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead
- Line 75: use auto when initializing with a cast to avoid duplicating the type name
- Line 75: do not use C-style cast to convert between unrelated types
- Line 75: C-style casts are discouraged; use static_cast
- Line 75: do not manage memory manually; consider a container or a smart pointer
- Line 78: Value stored to 'garp' during its initialization is never read
- Line 93: use auto when initializing with a cast to avoid duplicating the type name
- Line 93: do not use C-style cast to convert between unrelated types
- Line 93: C-style casts are discouraged; use static_cast
- Line 93: do not manage memory manually; consider a container or a smart pointer
- Line 96: unused variable 'once'
- Line 103: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type '__int_type' (aka 'int') is implementation-defined
- Line 103: do not use pointer arithmetic
- Line 106: do not use pointer arithmetic
- Line 112: do not use pointer arithmetic
- Line 118: do not use pointer arithmetic
- Line 118: do not use pointer arithmetic
- Line 122: do not use pointer arithmetic
- Line 122: do not use pointer arithmetic
- Line 125: do not use pointer arithmetic
- Line 125: do not use pointer arithmetic
- Line 177: use emplace_back instead of push_back
- Line 179: use emplace_back instead of push_back
- Line 198: narrowing conversion from 'unsigned int' to signed type 'key_type' (aka 'int') is implementation-defined
test/apps/test_multi_proc.cxx
Errors
- Line 0: The standard copyright message wasn't found.
- Line 2: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 49: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 205: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 283: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 6: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 24: Found other header after system header. Should be: test_multi_proc.hh, other non-system headers, system headers.
- Line 25: Found other header after system header. Should be: test_multi_proc.hh, other non-system headers, system headers.
- Line 26: Found other header after system header. Should be: test_multi_proc.hh, other non-system headers, system headers.
- Line 30: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 32: Found other header after system header. Should be: test_multi_proc.hh, other non-system headers, system headers.
- Line 33: Found other header after system header. Should be: test_multi_proc.hh, other non-system headers, system headers.
- Line 34: Found other header after system header. Should be: test_multi_proc.hh, other non-system headers, system headers.
- Line 35: Found other header after system header. Should be: test_multi_proc.hh, other non-system headers, system headers.
- Line 36: Found other header after system header. Should be: test_multi_proc.hh, other non-system headers, system headers.
- Line 37: Found other header after system header. Should be: test_multi_proc.hh, other non-system headers, system headers.
- Line 39: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 40: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 42: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 43: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 45: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 47: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 49: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 65: An unsigned integer appears to be used here.
- Line 66: An unsigned integer appears to be used here.
- Line 67: An unsigned integer appears to be used here.
- Line 68: An unsigned integer appears to be used here.
- Line 69: An unsigned integer appears to be used here.
- Line 70: An unsigned integer appears to be used here.
- Line 71: An unsigned integer appears to be used here.
- Line 72: An unsigned integer appears to be used here.
- Line 73: An unsigned integer appears to be used here.
- Line 74: An unsigned integer appears to be used here.
- Line 75: An unsigned integer appears to be used here.
- Line 76: An unsigned integer appears to be used here.
- Line 106: An unsigned integer appears to be used here.
- Line 113: An unsigned integer appears to be used here.
- Line 115: An unsigned integer appears to be used here.
- Line 116: An unsigned integer appears to be used here.
- Line 117: An unsigned integer appears to be used here.
- Line 118: An unsigned integer appears to be used here.
- Line 119: An unsigned integer appears to be used here.
- Line 120: An unsigned integer appears to be used here.
- Line 121: An unsigned integer appears to be used here.
- Line 122: An unsigned integer appears to be used here.
- Line 123: An unsigned integer appears to be used here.
- Line 124: An unsigned integer appears to be used here.
- Line 125: An unsigned integer appears to be used here.
- Line 126: An unsigned integer appears to be used here.
- Line 127: An unsigned integer appears to be used here.
- Line 128: An unsigned integer appears to be used here.
- Line 129: An unsigned integer appears to be used here.
- Line 135: Anonymous namespace should be terminated with '// namespace "" '
- Line 145: An unsigned integer appears to be used here.
- Line 148: An unsigned integer appears to be used here.
- Line 149: An unsigned integer appears to be used here.
- Line 156: An unsigned integer appears to be used here.
- Line 158: An unsigned integer appears to be used here.
- Line 171: An unsigned integer appears to be used here.
- Line 173: An unsigned integer appears to be used here.
- Line 174: An unsigned integer appears to be used here.
- Line 175: An unsigned integer appears to be used here.
- Line 195: Use operator && instead of and
- Line 204: An unsigned integer appears to be used here.
- Line 218: An unsigned integer appears to be used here.
- Line 219: An unsigned integer appears to be used here.
- Line 250: Using C-style cast. Use static_cast
(...) instead - Line 274: Using C-style cast. Use one of the C++ cast operators instead
- Line 284: An unsigned integer appears to be used here.
- Line 294: Use operator ! instead of not
- Line 302: Use of reinterpret_cast can be dangerous. If there's no way to avoid its use add " // NOLINT" to the end of this line so this script will ignore it next time
- Line 338: Small and focused functions are preferred: lcore_main() has 101 non-comment lines (error triggered by exceeding 80 lines) (disable this by putting "// NOLINT" after the function's closing brace.)
- Line 356: An unsigned integer appears to be used here.
- Line 357: An unsigned integer appears to be used here.
- Line 403: "cout" should not be used for output in DUNE DAQ software.
- Line 418: An unsigned integer appears to be used here.
- Line 419: An unsigned integer appears to be used here.
- Line 420: An unsigned integer appears to be used here.
- Line 422: "cout" should not be used for output in DUNE DAQ software.
- Line 428: Using C-style cast. Use one of the C++ cast operators instead
- Line 440: An unsigned integer appears to be used here.
- Line 437: Add #include
for string - Line 417: Add #include
- Line 440: Add #include
for vector<> - Line 416: Add #include
for unique_ptr<>
Warnings
- Line 6: declaration uses identifier '_RTE_ATOMIC_H_', which is a reserved identifier
- Line 119: function-like macro 'rte_compiler_barrier' used; consider a 'constexpr' template function
- Line 30: macro 'RTE_BIG_ENDIAN' used to declare a constant; consider using a 'constexpr' constant
- Line 93: consider replacing 'unsigned long' with 'uint64'
- Line 19: macro 'MS_PER_S' used to declare a constant; consider using a 'constexpr' constant
- Line 132: function-like macro 'RTE_WAIT_UNTIL_MASKED' used; consider a 'constexpr' template function
- Line 135: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_POWER_INTRINSIC_H_', which is a reserved identifier
- Line 22: macro 'RTE_POWER_MONITOR_OPAQUE_SZ' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_RWLOCK_H_', which is a reserved identifier
- Line 52: macro 'RTE_RWLOCK_WAIT' used to declare a constant; consider using a 'constexpr' constant
- Line 90: converting integer literal to bool, use bool literal instead
- Line 123: variable 'x' is not initialized
- Line 170: variable 'x' is not initialized
- Line 175: converting integer literal to bool, use bool literal instead
- Line 190: variable 'x' is not initialized
- Line 192: converting integer literal to bool, use bool literal instead
- Line 198: converting integer literal to bool, use bool literal instead
- Line 6: declaration uses identifier '_RTE_SPINLOCK_H_', which is a reserved identifier
- Line 223: increment of object of volatile-qualified type 'volatile int' is deprecated
- Line 6: declaration uses identifier '_RTE_ATOMIC_X86_H_', which is a reserved identifier
- Line 21: macro 'MPLOCKED' used to declare a constant; consider using a 'constexpr' constant
- Line 133: do not use C-style cast to convert between unrelated types
- Line 174: variable 'ret' is not initialized
- Line 190: variable 'res' is not initialized
- Line 219: do not use C-style cast to convert between unrelated types
- Line 260: variable 'ret' is not initialized
- Line 17: declaration uses identifier '_RTE_ATOMIC_X86_64_H_', which is a reserved identifier
- Line 29: variable 'res' is not initialized
- Line 145: variable 'ret' is not initialized
- Line 160: variable 'ret' is not initialized
- Line 174: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_BITOPS_H_', which is a reserved identifier
- Line 30: function-like macro 'RTE_BIT64' used; consider a 'constexpr' template function
- Line 28: function-like macro 'likely' used; consider a 'constexpr' template function
- Line 51: function-like macro 'rte_bswap16' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_COMMON_H_', which is a reserved identifier
- Line 50: macro 'RTE_CC_IS_GNU' used to declare a constant; consider using a 'constexpr' constant
- Line 88: declaration uses identifier '__rte_may_alias', which is a reserved identifier
- Line 91: declaration uses identifier '__rte_deprecated', which is a reserved identifier
- Line 92: declaration uses identifier '__rte_deprecated_msg', which is a reserved identifier
- Line 92: function-like macro '__rte_deprecated_msg' used; consider a 'constexpr' template function
- Line 108: declaration uses identifier '__rte_weak', which is a reserved identifier
- Line 113: declaration uses identifier '__rte_used', which is a reserved identifier
- Line 120: declaration uses identifier '__rte_unused', which is a reserved identifier
- Line 126: declaration uses identifier '__rte_restrict', which is a reserved identifier
- Line 135: function-like macro 'RTE_SET_USED' used; consider a 'constexpr' template function
- Line 148: function-like macro '__rte_format_printf' used; consider a 'constexpr' template function
- Line 158: declaration uses identifier '__rte_alloc_size', which is a reserved identifier
- Line 158: variadic macro '__rte_alloc_size' used; consider using a 'constexpr' variadic template function
- Line 164: macro 'RTE_PRIORITY_LOG' used to declare a constant; consider using a 'constexpr' constant
- Line 250: declaration uses identifier '__rte_warn_unused_result', which is a reserved identifier
- Line 260: declaration uses identifier '__rte_noinline', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_hot', which is a reserved identifier
- Line 270: declaration uses identifier '__rte_cold', which is a reserved identifier
- Line 282: declaration uses identifier '__rte_no_asan', which is a reserved identifier
- Line 290: function-like macro 'RTE_PTR_ADD' used; consider a 'constexpr' template function
- Line 443: declaration uses identifier '__rte_cache_min_aligned', which is a reserved identifier
- Line 464: do not declare C-style arrays, use std::array<> instead
- Line 824: macro argument should be enclosed in parentheses
- Line 837: function-like macro 'RTE_SIZEOF_FIELD' used; consider a 'constexpr' template function
- Line 841: function-like macro 'RTE_STR' used; consider a 'constexpr' template function
- Line 15: declaration uses identifier '__rte_experimental', which is a reserved identifier
- Line 33: declaration uses identifier '__rte_internal', which is a reserved identifier
- Line 13: declaration uses identifier '_RTE_CONFIG_H_', which is a reserved identifier
- Line 19: macro 'RTE_EXEC_ENV_LINUXAPP' used to declare a constant; consider using a 'constexpr' constant
- Line 7: declaration uses identifier '_RTE_CYCLES_X86_64_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_DEBUG_H_', which is a reserved identifier
- Line 43: variadic macro 'rte_panic' used; consider using a 'constexpr' variadic template function
- Line 46: function-like macro 'RTE_FUNC_PTR_OR_ERR_RET' used; consider a 'constexpr' template function
- Line 384: macro argument should be enclosed in parentheses
- Line 385: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_DEV_INFO_H_', which is a reserved identifier
- Line 44: macro 'RTE_ETH_MODULE_SFF_8079' used to declare a constant; consider using a 'constexpr' constant
- Line 35: macro 'RTE_DEVARGS_KEY_BUS' used to declare a constant; consider using a 'constexpr' constant
- Line 265: macro argument should be enclosed in parentheses
- Line 266: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_EAL_H_', which is a reserved identifier
- Line 28: macro 'RTE_MAGIC' used to declare a constant; consider using a 'constexpr' constant
- Line 28: macro 'RTE_ECPRI_REV_UP_TO_20' used to declare a constant; consider using a 'constexpr' constant
- Line 21: macro 'RTE_INTR_EVENT_ADD' used to declare a constant; consider using a 'constexpr' constant
- Line 12: declaration uses identifier '_RTE_ERRNO_H_', which is a reserved identifier
- Line 49: declaration uses identifier '__ELASTERROR', which is a reserved identifier
- Line 49: macro '__ELASTERROR' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_ESP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETH_CTRL_H_', which is a reserved identifier
- Line 30: macro 'RTE_NTUPLE_FLAGS_DST_IP' used to declare a constant; consider using a 'constexpr' constant
- Line 246: function-like macro 'RTE_ETH_FOREACH_MATCHING_DEV' used; consider a 'constexpr' template function
- Line 249: macro argument should be enclosed in parentheses
- Line 250: macro argument should be enclosed in parentheses
- Line 290: macro 'RTE_ETH_LINK_SPEED_AUTONEG' used to declare a constant; consider using a 'constexpr' constant
- Line 795: macro 'RTE_ETH_RSS_RETA_SIZE_64' used to declare a constant; consider using a 'constexpr' constant
- Line 2070: macro argument should be enclosed in parentheses
- Line 2071: macro argument should be enclosed in parentheses
- Line 2071: macro argument should be enclosed in parentheses
- Line 2086: function-like macro 'RTE_ETH_FOREACH_DEV' used; consider a 'constexpr' template function
- Line 2114: macro argument should be enclosed in parentheses
- Line 2115: macro argument should be enclosed in parentheses
- Line 2115: macro argument should be enclosed in parentheses
- Line 2141: function-like macro 'RTE_ETH_FOREACH_DEV_SIBLING' used; consider a 'constexpr' template function
- Line 2143: macro argument should be enclosed in parentheses
- Line 2144: macro argument should be enclosed in parentheses
- Line 2144: macro argument should be enclosed in parentheses
- Line 3603: flexible array members are a C99 feature
- Line 5864: variable 'p' is not initialized
- Line 5865: variable 'qd' is not initialized
- Line 5878: do not use array subscript when the index is not an integer constant expression
- Line 5903: redundant cast to the same type
- Line 5911: do not use C-style cast to convert between unrelated types
- Line 5936: variable 'qd' is not initialized
- Line 5949: do not use array subscript when the index is not an integer constant expression
- Line 5966: macro 'RTE_ETH_RX_DESC_AVAIL' used to declare a constant; consider using a 'constexpr' constant
- Line 6009: variable 'qd' is not initialized
- Line 6022: do not use array subscript when the index is not an integer constant expression
- Line 6038: macro 'RTE_ETH_TX_DESC_FULL' used to declare a constant; consider using a 'constexpr' constant
- Line 6080: variable 'qd' is not initialized
- Line 6093: do not use array subscript when the index is not an integer constant expression
- Line 6203: variable 'p' is not initialized
- Line 6204: variable 'qd' is not initialized
- Line 6217: do not use array subscript when the index is not an integer constant expression
- Line 6240: redundant cast to the same type
- Line 6250: do not use C-style cast to convert between unrelated types
- Line 6315: variable 'qd' is not initialized
- Line 6329: do not use array subscript when the index is not an integer constant expression
- Line 6: declaration uses identifier '_RTE_ETHDEV_CORE_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETHDEV_TRACE_FP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETHER_H_', which is a reserved identifier
- Line 25: macro 'RTE_ETHER_ADDR_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 84: do not use C-style cast to convert between unrelated types
- Line 85: do not use C-style cast to convert between unrelated types
- Line 102: do not use C-style cast to convert between unrelated types
- Line 149: do not use C-style cast to convert between unrelated types
- Line 333: do not use C-style cast to convert between unrelated types
- Line 358: variable 'nh' is not initialized
- Line 359: variable 'vh' is not initialized
- Line 369: do not use pointer arithmetic
- Line 378: do not use C-style cast to convert between unrelated types
- Line 9: declaration uses identifier '_RTE_GTP_H_', which is a reserved identifier
- Line 147: macro 'RTE_GTP_TYPE_IPV4' used to declare a constant; consider using a 'constexpr' constant
- Line 9: declaration uses identifier '_RTE_ICMP_H_', which is a reserved identifier
- Line 37: macro 'RTE_IP_ICMP_ECHO_REPLY' used to declare a constant; consider using a 'constexpr' constant
- Line 38: macro 'RTE_MAX_RXTX_INTR_VEC_ID' used to declare a constant; consider using a 'constexpr' constant
- Line 68: function-like macro 'RTE_IPV4' used; consider a 'constexpr' template function
- Line 164: variable 'end' is not initialized
- Line 166: do not use C-style cast to convert between unrelated types
- Line 195: declaration uses identifier '__rte_raw_cksum_reduce', which is a reserved identifier
- Line 215: variable 'sum' is not initialized
- Line 239: variable 'seg' is not initialized
- Line 240: variable 'buf' is not initialized
- Line 241: multiple declarations in a single statement reduces readability
- Line 241: variable 'tmp' is not initialized
- Line 242: multiple declarations in a single statement reduces readability
- Line 242: variable 'done' is not initialized
- Line 246: do not use pointer arithmetic
- Line 263: use nullptr
- Line 266: do not use pointer arithmetic
- Line 342: variable 'l3_len' is not initialized
- Line 362: declaration uses identifier '__rte_ipv4_udptcp_cksum', which is a reserved identifier
- Line 364: variable 'cksum' is not initialized
- Line 365: multiple declarations in a single statement reduces readability
- Line 365: variable 'l4_len' is not initialized
- Line 366: variable 'ip_hdr_len' is not initialized
- Line 417: declaration uses identifier '__rte_ipv4_udptcp_cksum_mbuf', which is a reserved identifier
- Line 421: variable 'raw_cksum' is not initialized
- Line 422: variable 'cksum' is not initialized
- Line 543: macro 'RTE_IPV6_HDR_FL_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 596: declaration uses identifier '__rte_ipv6_udptcp_cksum', which is a reserved identifier
- Line 598: variable 'cksum' is not initialized
- Line 599: variable 'l4_len' is not initialized
- Line 646: declaration uses identifier '__rte_ipv6_udptcp_cksum_mbuf', which is a reserved identifier
- Line 650: variable 'raw_cksum' is not initialized
- Line 651: variable 'cksum' is not initialized
- Line 765: macro 'RTE_IPV6_EHDR_MF_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 813: do not use pointer arithmetic
- Line 84: macro 'RTE_L2TPV2_MSG_TYPE_CONTROL' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_LCORE_H_', which is a reserved identifier
- Line 218: function-like macro 'RTE_LCORE_FOREACH' used; consider a 'constexpr' template function
- Line 220: macro argument should be enclosed in parentheses
- Line 221: macro argument should be enclosed in parentheses
- Line 226: function-like macro 'RTE_LCORE_FOREACH_WORKER' used; consider a 'constexpr' template function
- Line 228: macro argument should be enclosed in parentheses
- Line 229: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_LOG_H_', which is a reserved identifier
- Line 29: macro 'RTE_LOGTYPE_EAL' used to declare a constant; consider using a 'constexpr' constant
- Line 370: macro argument should be enclosed in parentheses
- Line 371: macro argument should be enclosed in parentheses
- Line 387: function-like macro 'RTE_LOG_REGISTER' used; consider a 'constexpr' template function
- Line 218: do not use C-style cast to convert between unrelated types
- Line 318: do not use C-style cast to convert between unrelated types
- Line 348: declaration uses identifier '__rte_mbuf_sanity_check', which is a reserved identifier
- Line 348: function-like macro '__rte_mbuf_sanity_check' used; consider a 'constexpr' template function
- Line 382: declaration uses identifier '__rte_mbuf_refcnt_update', which is a reserved identifier
- Line 510: function-like macro 'RTE_MBUF_PREFETCH_TO_FREE' used; consider a 'constexpr' template function
- Line 575: function-like macro 'MBUF_RAW_ALLOC_CHECK' used; consider a 'constexpr' template function
- Line 600: do not use C-style cast to convert between unrelated types
- Line 825: variable 'mbp_priv' is not initialized
- Line 827: do not use C-style cast to convert between unrelated types
- Line 848: do not use C-style cast to convert between unrelated types
- Line 907: variable 'm' is not initialized
- Line 908: use nullptr
- Line 931: variable 'rc' is not initialized
- Line 933: do not use C-style cast to convert between unrelated types
- Line 1006: do not use C-style cast to convert between unrelated types
- Line 1009: do not use C-style cast to convert between unrelated types
- Line 1014: do not use C-style cast to convert between unrelated types
- Line 1184: use nullptr
- Line 1200: declaration uses identifier '__rte_pktmbuf_free_extbuf', which is a reserved identifier
- Line 1216: declaration uses identifier '__rte_pktmbuf_free_direct', which is a reserved identifier
- Line 1218: variable 'md' is not initialized
- Line 1225: use nullptr
- Line 1253: multiple declarations in a single statement reduces readability
- Line 1253: variable 'buf_len' is not initialized
- Line 1254: variable 'priv_size' is not initialized
- Line 1281: do not use C-style cast to convert between unrelated types
- Line 1304: variable 'shinfo' is not initialized
- Line 1353: use nullptr
- Line 1356: use nullptr
- Line 1357: use nullptr
- Line 1370: use nullptr
- Line 1373: use nullptr
- Line 1374: use nullptr
- Line 1381: use nullptr
- Line 1397: use nullptr
- Line 1412: variable 'm_next' is not initialized
- Line 1414: use nullptr
- Line 1417: use nullptr
- Line 1500: use nullptr
- Line 1543: use nullptr
- Line 1556: function-like macro 'rte_pktmbuf_pkt_len' used; consider a 'constexpr' template function
- Line 1598: do not use C-style cast to convert between unrelated types
- Line 1619: variable 'm_last' is not initialized
- Line 1625: use nullptr
- Line 1627: do not use C-style cast to convert between unrelated types
- Line 1660: do not use C-style cast to convert between unrelated types
- Line 1710: declaration uses identifier '__rte_pktmbuf_read', which is a reserved identifier
- Line 1737: do not use pointer arithmetic
- Line 1863: declaration uses identifier '__rte_pktmbuf_linearize', which is a reserved identifier
- Line 1996: compound literals are a C99-specific feature
- Line 81: macro 'RTE_MBUF_F_RX_IP_CKSUM_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 80: macro 'RTE_MBUF_DYN_NAMESIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 75: macro 'RTE_PTYPE_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 72: do not use C-style cast to convert between unrelated types
- Line 428: variable 'bits' is not initialized
- Line 441: do not use C-style cast to convert between unrelated types
- Line 38: macro replacement list should be enclosed in parentheses
- Line 609: macro 'RTE_MEM_EVENT_CALLBACK_NAME_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 57: macro 'RTE_MEMPOOL_HEADER_COOKIE1' used to declare a constant; consider using a 'constexpr' constant
- Line 773: variable 'ret' is not initialized
- Line 802: variable 'ops' is not initialized
- Line 827: variable 'ops' is not initialized
- Line 828: variable 'ret' is not initialized
- Line 970: macro argument should be enclosed in parentheses
- Line 1318: use nullptr
- Line 1321: use nullptr
- Line 1324: do not use pointer arithmetic
- Line 1342: use nullptr
- Line 1365: variable 'cache_objs' is not initialized
- Line 1368: use nullptr
- Line 1387: do not use array subscript when the index is not an integer constant expression
- Line 1494: variable 'ret' is not initialized
- Line 1496: multiple declarations in a single statement reduces readability
- Line 1496: variable 'len' is not initialized
- Line 1497: variable 'cache_objs' is not initialized
- Line 1500: use nullptr
- Line 1505: do not use array subscript when the index is not an integer constant expression
- Line 1567: use nullptr
- Line 1603: variable 'ret' is not initialized
- Line 1636: variable 'cache' is not initialized
- Line 1693: variable 'ret' is not initialized
- Line 1790: variable 'hdr' is not initialized
- Line 1791: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_MEMZONE_H_', which is a reserved identifier
- Line 33: macro 'RTE_MEMZONE_2MB' used to declare a constant; consider using a 'constexpr' constant
- Line 418: multiple declarations in a single statement reduces readability
- Line 418: variable 'n_periods' is not initialized
- Line 418: variable 'tc' is not initialized
- Line 418: variable 'te' is not initialized
- Line 460: multiple declarations in a single statement reduces readability
- Line 460: variable 'n_periods' is not initialized
- Line 460: variable 'tc' is not initialized
- Line 460: variable 'te' is not initialized
- Line 501: multiple declarations in a single statement reduces readability
- Line 501: variable 'time_diff_tp' is not initialized
- Line 501: variable 'n_periods_tc' is not initialized
- Line 501: variable 'n_periods_tp' is not initialized
- Line 501: variable 'tc' is not initialized
- Line 501: variable 'tp' is not initialized
- Line 544: multiple declarations in a single statement reduces readability
- Line 544: variable 'time_diff_tp' is not initialized
- Line 544: variable 'n_periods_tc' is not initialized
- Line 544: variable 'n_periods_tp' is not initialized
- Line 544: variable 'tc' is not initialized
- Line 544: variable 'tp' is not initialized
- Line 587: multiple declarations in a single statement reduces readability
- Line 587: variable 'time_diff_te' is not initialized
- Line 587: variable 'n_periods_tc' is not initialized
- Line 587: variable 'n_periods_te' is not initialized
- Line 587: variable 'tc' is not initialized
- Line 587: variable 'te' is not initialized
- Line 631: multiple declarations in a single statement reduces readability
- Line 631: variable 'time_diff_te' is not initialized
- Line 631: variable 'n_periods_tc' is not initialized
- Line 631: variable 'n_periods_te' is not initialized
- Line 631: variable 'tc' is not initialized
- Line 631: variable 'te' is not initialized
- Line 6: declaration uses identifier '_RTE_OS_H_', which is a reserved identifier
- Line 21: function-like macro 'RTE_TAILQ_HEAD' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_PCI_DEV_DEFS_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PER_LCORE_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_POWER_INTRINSIC_X86_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PPP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PREFETCH_X86_64_H_', which is a reserved identifier
- Line 18: do not use C-style cast to convert between unrelated types
- Line 11: declaration uses identifier '_RTE_RING_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_CORE_H_', which is a reserved identifier
- Line 40: macro 'RTE_TAILQ_RING_NAME' used to declare a constant; consider using a 'constexpr' constant
- Line 96: declaration uses identifier '__rte_ring_hts_pos', which is a reserved identifier
- Line 153: macro 'RING_F_SP_ENQ' used to declare a constant; consider using a 'constexpr' constant
- Line 214: use nullptr
- Line 240: use nullptr
- Line 264: use nullptr
- Line 290: use nullptr
- Line 396: use nullptr
- Line 424: use nullptr
- Line 448: use nullptr
- Line 475: use nullptr
- Line 582: use nullptr
- Line 692: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_ELEM_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_enqueue_elems_32', which is a reserved identifier
- Line 17: variable 'i' is not initialized
- Line 18: use auto when initializing with a cast to avoid duplicating the type name
- Line 18: do not use C-style cast to convert between unrelated types
- Line 19: do not use C-style cast to convert between unrelated types
- Line 60: variable 'i' is not initialized
- Line 63: use auto when initializing with a cast to avoid duplicating the type name
- Line 63: do not use C-style cast to convert between unrelated types
- Line 64: do not use C-style cast to convert between unrelated types
- Line 93: variable 'i' is not initialized
- Line 96: use auto when initializing with a cast to avoid duplicating the type name
- Line 96: do not use C-style cast to convert between unrelated types
- Line 97: do not use C-style cast to convert between unrelated types
- Line 134: multiple declarations in a single statement reduces readability
- Line 134: variable 'scale' is not initialized
- Line 134: variable 'nr_idx' is not initialized
- Line 134: variable 'nr_num' is not initialized
- Line 134: variable 'nr_size' is not initialized
- Line 148: declaration uses identifier '__rte_ring_dequeue_elems_32', which is a reserved identifier
- Line 151: variable 'i' is not initialized
- Line 152: use auto when initializing with a cast to avoid duplicating the type name
- Line 152: do not use C-style cast to convert between unrelated types
- Line 153: do not use C-style cast to convert between unrelated types
- Line 194: variable 'i' is not initialized
- Line 197: use auto when initializing with a cast to avoid duplicating the type name
- Line 197: do not use C-style cast to convert between unrelated types
- Line 198: do not use C-style cast to convert between unrelated types
- Line 227: variable 'i' is not initialized
- Line 230: use auto when initializing with a cast to avoid duplicating the type name
- Line 230: do not use C-style cast to convert between unrelated types
- Line 231: do not use C-style cast to convert between unrelated types
- Line 264: multiple declarations in a single statement reduces readability
- Line 264: variable 'scale' is not initialized
- Line 264: variable 'nr_idx' is not initialized
- Line 264: variable 'nr_num' is not initialized
- Line 264: variable 'nr_size' is not initialized
- Line 315: declaration uses identifier '__rte_ring_do_enqueue_elem', which is a reserved identifier
- Line 320: multiple declarations in a single statement reduces readability
- Line 320: variable 'prod_next' is not initialized
- Line 321: variable 'free_entries' is not initialized
- Line 332: use nullptr
- Line 362: declaration uses identifier '__rte_ring_do_dequeue_elem', which is a reserved identifier
- Line 367: multiple declarations in a single statement reduces readability
- Line 367: variable 'cons_next' is not initialized
- Line 368: variable 'entries' is not initialized
- Line 380: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_GENERIC_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_update_tail', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_move_prod_head', which is a reserved identifier
- Line 62: variable 'success' is not initialized
- Line 125: declaration uses identifier '__rte_ring_move_cons_head', which is a reserved identifier
- Line 131: variable 'success' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_HTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_HTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_hts_update_tail', which is a reserved identifier
- Line 28: variable 'tail' is not initialized
- Line 42: declaration uses identifier '__rte_ring_hts_head_wait', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_hts_move_prod_head', which is a reserved identifier
- Line 59: variable 'n' is not initialized
- Line 60: multiple declarations in a single statement reduces readability
- Line 113: declaration uses identifier '__rte_ring_hts_move_cons_head', which is a reserved identifier
- Line 117: variable 'n' is not initialized
- Line 118: multiple declarations in a single statement reduces readability
- Line 187: declaration uses identifier '__rte_ring_do_hts_enqueue_elem', which is a reserved identifier
- Line 191: multiple declarations in a single statement reduces readability
- Line 191: variable 'head' is not initialized
- Line 200: use nullptr
- Line 228: declaration uses identifier '__rte_ring_do_hts_dequeue_elem', which is a reserved identifier
- Line 232: multiple declarations in a single statement reduces readability
- Line 232: variable 'head' is not initialized
- Line 241: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_H_', which is a reserved identifier
- Line 170: variable 'tail' is not initialized
- Line 333: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ELEM_PVT_H_', which is a reserved identifier
- Line 31: declaration uses identifier '__rte_ring_st_get_tail', which is a reserved identifier
- Line 34: multiple declarations in a single statement reduces readability
- Line 34: variable 'n' is not initialized
- Line 34: variable 't' is not initialized
- Line 53: declaration uses identifier '__rte_ring_st_set_head_tail', which is a reserved identifier
- Line 56: variable 'pos' is not initialized
- Line 75: declaration uses identifier '__rte_ring_hts_get_tail', which is a reserved identifier
- Line 78: variable 'n' is not initialized
- Line 97: declaration uses identifier '__rte_ring_hts_set_head_tail', which is a reserved identifier
- Line 114: declaration uses identifier '__rte_ring_do_enqueue_start', which is a reserved identifier
- Line 117: multiple declarations in a single statement reduces readability
- Line 117: variable 'head' is not initialized
- Line 117: variable 'next' is not initialized
- Line 137: use nullptr
- Line 147: declaration uses identifier '__rte_ring_do_dequeue_start', which is a reserved identifier
- Line 151: multiple declarations in a single statement reduces readability
- Line 151: variable 'head' is not initialized
- Line 151: variable 'next' is not initialized
- Line 174: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ZC_H_', which is a reserved identifier
- Line 98: declaration uses identifier '__rte_ring_get_elem_addr', which is a reserved identifier
- Line 101: multiple declarations in a single statement reduces readability
- Line 101: variable 'scale' is not initialized
- Line 101: variable 'nr_idx' is not initialized
- Line 102: use auto when initializing with a cast to avoid duplicating the type name
- Line 102: do not use C-style cast to convert between unrelated types
- Line 124: declaration uses identifier '__rte_ring_do_enqueue_zc_elem_start', which is a reserved identifier
- Line 128: multiple declarations in a single statement reduces readability
- Line 128: variable 'head' is not initialized
- Line 128: variable 'next' is not initialized
- Line 151: use nullptr
- Line 291: variable 'tail' is not initialized
- Line 331: declaration uses identifier '__rte_ring_do_dequeue_zc_elem_start', which is a reserved identifier
- Line 335: multiple declarations in a single statement reduces readability
- Line 335: variable 'head' is not initialized
- Line 335: variable 'next' is not initialized
- Line 359: use nullptr
- Line 497: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_RTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_RTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_rts_update_tail', which is a reserved identifier
- Line 27: multiple declarations in a single statement reduces readability
- Line 53: declaration uses identifier '__rte_ring_rts_head_wait', which is a reserved identifier
- Line 56: variable 'max' is not initialized
- Line 70: declaration uses identifier '__rte_ring_rts_move_prod_head', which is a reserved identifier
- Line 74: variable 'n' is not initialized
- Line 75: multiple declarations in a single statement reduces readability
- Line 128: declaration uses identifier '__rte_ring_rts_move_cons_head', which is a reserved identifier
- Line 132: variable 'n' is not initialized
- Line 133: multiple declarations in a single statement reduces readability
- Line 202: declaration uses identifier '__rte_ring_do_rts_enqueue_elem', which is a reserved identifier
- Line 206: multiple declarations in a single statement reduces readability
- Line 206: variable 'head' is not initialized
- Line 215: use nullptr
- Line 243: declaration uses identifier '__rte_ring_do_rts_dequeue_elem', which is a reserved identifier
- Line 247: multiple declarations in a single statement reduces readability
- Line 247: variable 'head' is not initialized
- Line 256: use nullptr
- Line 6: declaration uses identifier '_RTE_RTM_H_', which is a reserved identifier
- Line 6: macro '_RTE_RTM_H_' used to declare a constant; consider using a 'constexpr' constant
- Line 26: function-like macro 'RTE_XABORT_CODE' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_RWLOCK_X86_64_H_', which is a reserved identifier
- Line 15: declaration uses identifier '_RTE_SCTP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_SPINLOCK_X86_64_H_', which is a reserved identifier
- Line 80: multiple declarations in a single statement reduces readability
- Line 80: variable 'retries' is not initialized
- Line 109: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type 'int' is implementation-defined
- Line 74: do not use pointer arithmetic
- Line 43: macro 'RTE_TCP_CWR_FLAG' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_TRACE_POINT_H_', which is a reserved identifier
- Line 78: variadic macro 'RTE_TRACE_POINT' used; consider using a 'constexpr' variadic template function
- Line 151: macro '__RTE_TRACE_EMIT_STRING_LEN_MAX' used to declare a constant; consider using a 'constexpr' constant
- Line 153: declaration uses identifier '__RTE_TRACE_EVENT_HEADER_SZ', which is a reserved identifier
- Line 211: declaration uses identifier '__rte_trace_point_fp_is_enabled', which is a reserved identifier
- Line 227: declaration uses identifier '__rte_trace_mem_per_thread_alloc', which is a reserved identifier
- Line 245: declaration uses identifier '__rte_trace_point_emit_field', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_trace_point_register', which is a reserved identifier
- Line 379: declaration uses identifier '__rte_trace_point_emit_header_generic', which is a reserved identifier
- Line 379: function-like macro '__rte_trace_point_emit_header_generic' used; consider a 'constexpr' template function
- Line 380: function-like macro '__rte_trace_point_emit_header_fp' used; consider a 'constexpr' template function
- Line 11: declaration uses identifier '_RTE_UUID_H_', which is a reserved identifier
- Line 24: do not declare C-style arrays, use std::array<> instead
- Line 6: declaration uses identifier '_RTE_VXLAN_H_', which is a reserved identifier
- Line 25: macro 'RTE_VXLAN_DEFAULT_PORT' used to declare a constant; consider using a 'constexpr' constant
- Line 18: nested namespaces can be concatenated
- Line 23: macro 'NUM_MBUFS' used to declare a constant; consider using a 'constexpr' constant
- Line 24: macro 'MBUF_CACHE_SIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 47: do not declare C-style arrays, use std::array<> instead
- Line 15: nested namespaces can be concatenated
- Line 15: nested namespaces can be concatenated
- Line 20: do not declare C-style arrays, use std::array<> instead
- Line 19: nested namespaces can be concatenated
- Line 35: nested namespaces can be concatenated
- Line 6: macro 'RTE_ETH_DEV_FLOW_OPS_THREAD_SAFE' used to declare a constant; consider using a 'constexpr' constant
- Line 9: inclusion of deprecated C++ header 'inttypes.h'; consider using 'cinttypes' instead
- Line 15: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead
- Line 30: macro 'RTE_ETH_DEV_FLOW_OPS_THREAD_SAFE' used to declare a constant; consider using a 'constexpr' constant
- Line 39: macro 'RX_RING_SIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 40: macro 'TX_RING_SIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 42: macro 'NUM_MBUFS' used to declare a constant; consider using a 'constexpr' constant
- Line 43: macro 'MBUF_CACHE_SIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 45: macro 'NSTREAM' used to declare a constant; consider using a 'constexpr' constant
- Line 60: unused function 'operator<<'
- Line 106: unused variable 'expected_packet_type'
- Line 108: unused variable 'default_mbuf_size'
- Line 131: initialization of 'datafile' with static storage duration may throw an exception that cannot be caught
- Line 132: initialization of 'output_data_filename' with static storage duration may throw an exception that cannot be caught
- Line 139: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long')
- Line 216: Value stored to 'stats' during its initialization is never read
- Line 248: C-style casts are discouraged; use constructor call syntax
- Line 250: narrowing conversion from 'double' to 'float'
- Line 250: C-style casts are discouraged; use static_cast/const_cast/reinterpret_cast
- Line 250: C-style casts are discouraged; use static_cast
- Line 274: use auto when initializing with a cast to avoid duplicating the type name
- Line 274: do not use C-style cast to convert between unrelated types
- Line 274: C-style casts are discouraged; use static_cast
- Line 274: do not manage memory manually; consider a container or a smart pointer
- Line 290: do not use pointer arithmetic
- Line 294: do not use pointer arithmetic
- Line 296: Value stored to 'dump_packet' is never read
- Line 301: do not use pointer arithmetic
- Line 302: use auto when initializing with a cast to avoid duplicating the type name
- Line 302: do not use reinterpret_cast
- Line 314: do not use pointer arithmetic
- Line 319: do not use pointer arithmetic
- Line 330: do not use pointer arithmetic
- Line 330: do not use pointer arithmetic
- Line 374: use emplace_back instead of push_back
- Line 375: use emplace_back instead of push_back
- Line 428: do not use C-style cast to convert between unrelated types
- Line 428: C-style casts are discouraged; use static_cast
- Line 428: do not manage memory manually; consider a container or a smart pointer
- Line 439: multiple declarations in a single statement reduces readability
- Line 446: Value stored to 'flow' during its initialization is never read
- Line 446: unused variable 'flow'
test/apps/test_transmit_and_receive.cxx
Errors
- Line 23: Include the directory when naming .hh files
- Line 24: Include the directory when naming .hh files
- Line 25: Include the directory when naming .hh files
- Line 45: Use int16/int64/etc, rather than the C type long
- Line 46: Use int16/int64/etc, rather than the C type long
- Line 47: Use int16/int64/etc, rather than the C type long
- Line 48: Use int16/int64/etc, rather than the C type long
- Line 49: Use int16/int64/etc, rather than the C type long
- Line 50: Use int16/int64/etc, rather than the C type long
- Line 52: Anonymous namespace should be terminated with '// namespace "" '
- Line 74: An unsigned integer appears to be used here.
- Line 98: Use of NULL #define found; prefer using the nullptr keyword
- Line 114: An unsigned integer appears to be used here.
- Line 162: An unsigned integer appears to be used here.
- Line 188: An unsigned integer appears to be used here.
- Line 207: Small and focused functions are preferred: lcore_main() has 86 non-comment lines (error triggered by exceeding 80 lines) (disable this by putting "// NOLINT" after the function's closing brace.)
- Line 235: Use int16/int64/etc, rather than the C type long
- Line 249: An unsigned integer appears to be used here.
- Line 252: An unsigned integer appears to be used here.
- Line 253: An unsigned integer appears to be used here.
- Line 256: Add #include
for vector<> - Line 177: Add #include
for string - Line 255: Add #include
- Line 255: Add #include
for unique_ptr<>
Warnings
- Line 6: declaration uses identifier '_RTE_ATOMIC_H_', which is a reserved identifier
- Line 119: function-like macro 'rte_compiler_barrier' used; consider a 'constexpr' template function
- Line 30: macro 'RTE_BIG_ENDIAN' used to declare a constant; consider using a 'constexpr' constant
- Line 93: consider replacing 'unsigned long' with 'uint64'
- Line 19: macro 'MS_PER_S' used to declare a constant; consider using a 'constexpr' constant
- Line 132: function-like macro 'RTE_WAIT_UNTIL_MASKED' used; consider a 'constexpr' template function
- Line 135: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_POWER_INTRINSIC_H_', which is a reserved identifier
- Line 22: macro 'RTE_POWER_MONITOR_OPAQUE_SZ' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_RWLOCK_H_', which is a reserved identifier
- Line 52: macro 'RTE_RWLOCK_WAIT' used to declare a constant; consider using a 'constexpr' constant
- Line 90: converting integer literal to bool, use bool literal instead
- Line 123: variable 'x' is not initialized
- Line 170: variable 'x' is not initialized
- Line 175: converting integer literal to bool, use bool literal instead
- Line 190: variable 'x' is not initialized
- Line 192: converting integer literal to bool, use bool literal instead
- Line 198: converting integer literal to bool, use bool literal instead
- Line 6: declaration uses identifier '_RTE_SPINLOCK_H_', which is a reserved identifier
- Line 223: increment of object of volatile-qualified type 'volatile int' is deprecated
- Line 6: declaration uses identifier '_RTE_ATOMIC_X86_H_', which is a reserved identifier
- Line 21: macro 'MPLOCKED' used to declare a constant; consider using a 'constexpr' constant
- Line 133: do not use C-style cast to convert between unrelated types
- Line 174: variable 'ret' is not initialized
- Line 190: variable 'res' is not initialized
- Line 219: do not use C-style cast to convert between unrelated types
- Line 260: variable 'ret' is not initialized
- Line 17: declaration uses identifier '_RTE_ATOMIC_X86_64_H_', which is a reserved identifier
- Line 29: variable 'res' is not initialized
- Line 145: variable 'ret' is not initialized
- Line 160: variable 'ret' is not initialized
- Line 174: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_BITOPS_H_', which is a reserved identifier
- Line 30: function-like macro 'RTE_BIT64' used; consider a 'constexpr' template function
- Line 28: function-like macro 'likely' used; consider a 'constexpr' template function
- Line 51: function-like macro 'rte_bswap16' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_COMMON_H_', which is a reserved identifier
- Line 50: macro 'RTE_CC_IS_GNU' used to declare a constant; consider using a 'constexpr' constant
- Line 88: declaration uses identifier '__rte_may_alias', which is a reserved identifier
- Line 91: declaration uses identifier '__rte_deprecated', which is a reserved identifier
- Line 92: declaration uses identifier '__rte_deprecated_msg', which is a reserved identifier
- Line 92: function-like macro '__rte_deprecated_msg' used; consider a 'constexpr' template function
- Line 108: declaration uses identifier '__rte_weak', which is a reserved identifier
- Line 113: declaration uses identifier '__rte_used', which is a reserved identifier
- Line 120: declaration uses identifier '__rte_unused', which is a reserved identifier
- Line 126: declaration uses identifier '__rte_restrict', which is a reserved identifier
- Line 135: function-like macro 'RTE_SET_USED' used; consider a 'constexpr' template function
- Line 148: function-like macro '__rte_format_printf' used; consider a 'constexpr' template function
- Line 158: declaration uses identifier '__rte_alloc_size', which is a reserved identifier
- Line 158: variadic macro '__rte_alloc_size' used; consider using a 'constexpr' variadic template function
- Line 164: macro 'RTE_PRIORITY_LOG' used to declare a constant; consider using a 'constexpr' constant
- Line 250: declaration uses identifier '__rte_warn_unused_result', which is a reserved identifier
- Line 260: declaration uses identifier '__rte_noinline', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_hot', which is a reserved identifier
- Line 270: declaration uses identifier '__rte_cold', which is a reserved identifier
- Line 282: declaration uses identifier '__rte_no_asan', which is a reserved identifier
- Line 290: function-like macro 'RTE_PTR_ADD' used; consider a 'constexpr' template function
- Line 443: declaration uses identifier '__rte_cache_min_aligned', which is a reserved identifier
- Line 464: do not declare C-style arrays, use std::array<> instead
- Line 824: macro argument should be enclosed in parentheses
- Line 837: function-like macro 'RTE_SIZEOF_FIELD' used; consider a 'constexpr' template function
- Line 841: function-like macro 'RTE_STR' used; consider a 'constexpr' template function
- Line 15: declaration uses identifier '__rte_experimental', which is a reserved identifier
- Line 33: declaration uses identifier '__rte_internal', which is a reserved identifier
- Line 13: declaration uses identifier '_RTE_CONFIG_H_', which is a reserved identifier
- Line 19: macro 'RTE_EXEC_ENV_LINUXAPP' used to declare a constant; consider using a 'constexpr' constant
- Line 7: declaration uses identifier '_RTE_CYCLES_X86_64_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_DEBUG_H_', which is a reserved identifier
- Line 43: variadic macro 'rte_panic' used; consider using a 'constexpr' variadic template function
- Line 46: function-like macro 'RTE_FUNC_PTR_OR_ERR_RET' used; consider a 'constexpr' template function
- Line 384: macro argument should be enclosed in parentheses
- Line 385: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_DEV_INFO_H_', which is a reserved identifier
- Line 44: macro 'RTE_ETH_MODULE_SFF_8079' used to declare a constant; consider using a 'constexpr' constant
- Line 35: macro 'RTE_DEVARGS_KEY_BUS' used to declare a constant; consider using a 'constexpr' constant
- Line 265: macro argument should be enclosed in parentheses
- Line 266: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_EAL_H_', which is a reserved identifier
- Line 28: macro 'RTE_MAGIC' used to declare a constant; consider using a 'constexpr' constant
- Line 28: macro 'RTE_ECPRI_REV_UP_TO_20' used to declare a constant; consider using a 'constexpr' constant
- Line 21: macro 'RTE_INTR_EVENT_ADD' used to declare a constant; consider using a 'constexpr' constant
- Line 12: declaration uses identifier '_RTE_ERRNO_H_', which is a reserved identifier
- Line 49: declaration uses identifier '__ELASTERROR', which is a reserved identifier
- Line 49: macro '__ELASTERROR' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_ESP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETH_CTRL_H_', which is a reserved identifier
- Line 30: macro 'RTE_NTUPLE_FLAGS_DST_IP' used to declare a constant; consider using a 'constexpr' constant
- Line 246: function-like macro 'RTE_ETH_FOREACH_MATCHING_DEV' used; consider a 'constexpr' template function
- Line 249: macro argument should be enclosed in parentheses
- Line 250: macro argument should be enclosed in parentheses
- Line 290: macro 'RTE_ETH_LINK_SPEED_AUTONEG' used to declare a constant; consider using a 'constexpr' constant
- Line 795: macro 'RTE_ETH_RSS_RETA_SIZE_64' used to declare a constant; consider using a 'constexpr' constant
- Line 2070: macro argument should be enclosed in parentheses
- Line 2071: macro argument should be enclosed in parentheses
- Line 2071: macro argument should be enclosed in parentheses
- Line 2086: function-like macro 'RTE_ETH_FOREACH_DEV' used; consider a 'constexpr' template function
- Line 2114: macro argument should be enclosed in parentheses
- Line 2115: macro argument should be enclosed in parentheses
- Line 2115: macro argument should be enclosed in parentheses
- Line 2141: function-like macro 'RTE_ETH_FOREACH_DEV_SIBLING' used; consider a 'constexpr' template function
- Line 2143: macro argument should be enclosed in parentheses
- Line 2144: macro argument should be enclosed in parentheses
- Line 2144: macro argument should be enclosed in parentheses
- Line 3603: flexible array members are a C99 feature
- Line 5864: variable 'p' is not initialized
- Line 5865: variable 'qd' is not initialized
- Line 5878: do not use array subscript when the index is not an integer constant expression
- Line 5903: redundant cast to the same type
- Line 5911: do not use C-style cast to convert between unrelated types
- Line 5936: variable 'qd' is not initialized
- Line 5949: do not use array subscript when the index is not an integer constant expression
- Line 5966: macro 'RTE_ETH_RX_DESC_AVAIL' used to declare a constant; consider using a 'constexpr' constant
- Line 6009: variable 'qd' is not initialized
- Line 6022: do not use array subscript when the index is not an integer constant expression
- Line 6038: macro 'RTE_ETH_TX_DESC_FULL' used to declare a constant; consider using a 'constexpr' constant
- Line 6080: variable 'qd' is not initialized
- Line 6093: do not use array subscript when the index is not an integer constant expression
- Line 6203: variable 'p' is not initialized
- Line 6204: variable 'qd' is not initialized
- Line 6217: do not use array subscript when the index is not an integer constant expression
- Line 6240: redundant cast to the same type
- Line 6250: do not use C-style cast to convert between unrelated types
- Line 6315: variable 'qd' is not initialized
- Line 6329: do not use array subscript when the index is not an integer constant expression
- Line 6: declaration uses identifier '_RTE_ETHDEV_CORE_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETHDEV_TRACE_FP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_ETHER_H_', which is a reserved identifier
- Line 25: macro 'RTE_ETHER_ADDR_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 84: do not use C-style cast to convert between unrelated types
- Line 85: do not use C-style cast to convert between unrelated types
- Line 102: do not use C-style cast to convert between unrelated types
- Line 149: do not use C-style cast to convert between unrelated types
- Line 333: do not use C-style cast to convert between unrelated types
- Line 358: variable 'nh' is not initialized
- Line 359: variable 'vh' is not initialized
- Line 369: do not use pointer arithmetic
- Line 378: do not use C-style cast to convert between unrelated types
- Line 9: declaration uses identifier '_RTE_GTP_H_', which is a reserved identifier
- Line 147: macro 'RTE_GTP_TYPE_IPV4' used to declare a constant; consider using a 'constexpr' constant
- Line 9: declaration uses identifier '_RTE_ICMP_H_', which is a reserved identifier
- Line 37: macro 'RTE_IP_ICMP_ECHO_REPLY' used to declare a constant; consider using a 'constexpr' constant
- Line 38: macro 'RTE_MAX_RXTX_INTR_VEC_ID' used to declare a constant; consider using a 'constexpr' constant
- Line 68: function-like macro 'RTE_IPV4' used; consider a 'constexpr' template function
- Line 164: variable 'end' is not initialized
- Line 166: do not use C-style cast to convert between unrelated types
- Line 195: declaration uses identifier '__rte_raw_cksum_reduce', which is a reserved identifier
- Line 215: variable 'sum' is not initialized
- Line 239: variable 'seg' is not initialized
- Line 240: variable 'buf' is not initialized
- Line 241: multiple declarations in a single statement reduces readability
- Line 241: variable 'tmp' is not initialized
- Line 242: multiple declarations in a single statement reduces readability
- Line 242: variable 'done' is not initialized
- Line 246: do not use pointer arithmetic
- Line 263: use nullptr
- Line 266: do not use pointer arithmetic
- Line 342: variable 'l3_len' is not initialized
- Line 362: declaration uses identifier '__rte_ipv4_udptcp_cksum', which is a reserved identifier
- Line 364: variable 'cksum' is not initialized
- Line 365: multiple declarations in a single statement reduces readability
- Line 365: variable 'l4_len' is not initialized
- Line 366: variable 'ip_hdr_len' is not initialized
- Line 417: declaration uses identifier '__rte_ipv4_udptcp_cksum_mbuf', which is a reserved identifier
- Line 421: variable 'raw_cksum' is not initialized
- Line 422: variable 'cksum' is not initialized
- Line 543: macro 'RTE_IPV6_HDR_FL_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 596: declaration uses identifier '__rte_ipv6_udptcp_cksum', which is a reserved identifier
- Line 598: variable 'cksum' is not initialized
- Line 599: variable 'l4_len' is not initialized
- Line 646: declaration uses identifier '__rte_ipv6_udptcp_cksum_mbuf', which is a reserved identifier
- Line 650: variable 'raw_cksum' is not initialized
- Line 651: variable 'cksum' is not initialized
- Line 765: macro 'RTE_IPV6_EHDR_MF_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 813: do not use pointer arithmetic
- Line 84: macro 'RTE_L2TPV2_MSG_TYPE_CONTROL' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_LCORE_H_', which is a reserved identifier
- Line 218: function-like macro 'RTE_LCORE_FOREACH' used; consider a 'constexpr' template function
- Line 220: macro argument should be enclosed in parentheses
- Line 221: macro argument should be enclosed in parentheses
- Line 226: function-like macro 'RTE_LCORE_FOREACH_WORKER' used; consider a 'constexpr' template function
- Line 228: macro argument should be enclosed in parentheses
- Line 229: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_LOG_H_', which is a reserved identifier
- Line 29: macro 'RTE_LOGTYPE_EAL' used to declare a constant; consider using a 'constexpr' constant
- Line 370: macro argument should be enclosed in parentheses
- Line 371: macro argument should be enclosed in parentheses
- Line 387: function-like macro 'RTE_LOG_REGISTER' used; consider a 'constexpr' template function
- Line 218: do not use C-style cast to convert between unrelated types
- Line 318: do not use C-style cast to convert between unrelated types
- Line 348: declaration uses identifier '__rte_mbuf_sanity_check', which is a reserved identifier
- Line 348: function-like macro '__rte_mbuf_sanity_check' used; consider a 'constexpr' template function
- Line 382: declaration uses identifier '__rte_mbuf_refcnt_update', which is a reserved identifier
- Line 510: function-like macro 'RTE_MBUF_PREFETCH_TO_FREE' used; consider a 'constexpr' template function
- Line 575: function-like macro 'MBUF_RAW_ALLOC_CHECK' used; consider a 'constexpr' template function
- Line 600: do not use C-style cast to convert between unrelated types
- Line 825: variable 'mbp_priv' is not initialized
- Line 827: do not use C-style cast to convert between unrelated types
- Line 848: do not use C-style cast to convert between unrelated types
- Line 907: variable 'm' is not initialized
- Line 908: use nullptr
- Line 931: variable 'rc' is not initialized
- Line 933: do not use C-style cast to convert between unrelated types
- Line 1006: do not use C-style cast to convert between unrelated types
- Line 1009: do not use C-style cast to convert between unrelated types
- Line 1014: do not use C-style cast to convert between unrelated types
- Line 1184: use nullptr
- Line 1200: declaration uses identifier '__rte_pktmbuf_free_extbuf', which is a reserved identifier
- Line 1216: declaration uses identifier '__rte_pktmbuf_free_direct', which is a reserved identifier
- Line 1218: variable 'md' is not initialized
- Line 1225: use nullptr
- Line 1253: multiple declarations in a single statement reduces readability
- Line 1253: variable 'buf_len' is not initialized
- Line 1254: variable 'priv_size' is not initialized
- Line 1281: do not use C-style cast to convert between unrelated types
- Line 1304: variable 'shinfo' is not initialized
- Line 1353: use nullptr
- Line 1356: use nullptr
- Line 1357: use nullptr
- Line 1370: use nullptr
- Line 1373: use nullptr
- Line 1374: use nullptr
- Line 1381: use nullptr
- Line 1397: use nullptr
- Line 1412: variable 'm_next' is not initialized
- Line 1414: use nullptr
- Line 1417: use nullptr
- Line 1500: use nullptr
- Line 1543: use nullptr
- Line 1556: function-like macro 'rte_pktmbuf_pkt_len' used; consider a 'constexpr' template function
- Line 1598: do not use C-style cast to convert between unrelated types
- Line 1619: variable 'm_last' is not initialized
- Line 1625: use nullptr
- Line 1627: do not use C-style cast to convert between unrelated types
- Line 1660: do not use C-style cast to convert between unrelated types
- Line 1710: declaration uses identifier '__rte_pktmbuf_read', which is a reserved identifier
- Line 1737: do not use pointer arithmetic
- Line 1863: declaration uses identifier '__rte_pktmbuf_linearize', which is a reserved identifier
- Line 1996: compound literals are a C99-specific feature
- Line 81: macro 'RTE_MBUF_F_RX_IP_CKSUM_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 80: macro 'RTE_MBUF_DYN_NAMESIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 75: macro 'RTE_PTYPE_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 72: do not use C-style cast to convert between unrelated types
- Line 428: variable 'bits' is not initialized
- Line 441: do not use C-style cast to convert between unrelated types
- Line 38: macro replacement list should be enclosed in parentheses
- Line 609: macro 'RTE_MEM_EVENT_CALLBACK_NAME_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 57: macro 'RTE_MEMPOOL_HEADER_COOKIE1' used to declare a constant; consider using a 'constexpr' constant
- Line 773: variable 'ret' is not initialized
- Line 802: variable 'ops' is not initialized
- Line 827: variable 'ops' is not initialized
- Line 828: variable 'ret' is not initialized
- Line 970: macro argument should be enclosed in parentheses
- Line 1318: use nullptr
- Line 1321: use nullptr
- Line 1324: do not use pointer arithmetic
- Line 1342: use nullptr
- Line 1365: variable 'cache_objs' is not initialized
- Line 1368: use nullptr
- Line 1387: do not use array subscript when the index is not an integer constant expression
- Line 1494: variable 'ret' is not initialized
- Line 1496: multiple declarations in a single statement reduces readability
- Line 1496: variable 'len' is not initialized
- Line 1497: variable 'cache_objs' is not initialized
- Line 1500: use nullptr
- Line 1505: do not use array subscript when the index is not an integer constant expression
- Line 1567: use nullptr
- Line 1603: variable 'ret' is not initialized
- Line 1636: variable 'cache' is not initialized
- Line 1693: variable 'ret' is not initialized
- Line 1790: variable 'hdr' is not initialized
- Line 1791: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_MEMZONE_H_', which is a reserved identifier
- Line 33: macro 'RTE_MEMZONE_2MB' used to declare a constant; consider using a 'constexpr' constant
- Line 418: multiple declarations in a single statement reduces readability
- Line 418: variable 'n_periods' is not initialized
- Line 418: variable 'tc' is not initialized
- Line 418: variable 'te' is not initialized
- Line 460: multiple declarations in a single statement reduces readability
- Line 460: variable 'n_periods' is not initialized
- Line 460: variable 'tc' is not initialized
- Line 460: variable 'te' is not initialized
- Line 501: multiple declarations in a single statement reduces readability
- Line 501: variable 'time_diff_tp' is not initialized
- Line 501: variable 'n_periods_tc' is not initialized
- Line 501: variable 'n_periods_tp' is not initialized
- Line 501: variable 'tc' is not initialized
- Line 501: variable 'tp' is not initialized
- Line 544: multiple declarations in a single statement reduces readability
- Line 544: variable 'time_diff_tp' is not initialized
- Line 544: variable 'n_periods_tc' is not initialized
- Line 544: variable 'n_periods_tp' is not initialized
- Line 544: variable 'tc' is not initialized
- Line 544: variable 'tp' is not initialized
- Line 587: multiple declarations in a single statement reduces readability
- Line 587: variable 'time_diff_te' is not initialized
- Line 587: variable 'n_periods_tc' is not initialized
- Line 587: variable 'n_periods_te' is not initialized
- Line 587: variable 'tc' is not initialized
- Line 587: variable 'te' is not initialized
- Line 631: multiple declarations in a single statement reduces readability
- Line 631: variable 'time_diff_te' is not initialized
- Line 631: variable 'n_periods_tc' is not initialized
- Line 631: variable 'n_periods_te' is not initialized
- Line 631: variable 'tc' is not initialized
- Line 631: variable 'te' is not initialized
- Line 6: declaration uses identifier '_RTE_OS_H_', which is a reserved identifier
- Line 21: function-like macro 'RTE_TAILQ_HEAD' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_PCI_DEV_DEFS_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PER_LCORE_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_POWER_INTRINSIC_X86_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PPP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PREFETCH_X86_64_H_', which is a reserved identifier
- Line 18: do not use C-style cast to convert between unrelated types
- Line 11: declaration uses identifier '_RTE_RING_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_CORE_H_', which is a reserved identifier
- Line 40: macro 'RTE_TAILQ_RING_NAME' used to declare a constant; consider using a 'constexpr' constant
- Line 96: declaration uses identifier '__rte_ring_hts_pos', which is a reserved identifier
- Line 153: macro 'RING_F_SP_ENQ' used to declare a constant; consider using a 'constexpr' constant
- Line 214: use nullptr
- Line 240: use nullptr
- Line 264: use nullptr
- Line 290: use nullptr
- Line 396: use nullptr
- Line 424: use nullptr
- Line 448: use nullptr
- Line 475: use nullptr
- Line 582: use nullptr
- Line 692: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_ELEM_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_enqueue_elems_32', which is a reserved identifier
- Line 17: variable 'i' is not initialized
- Line 18: use auto when initializing with a cast to avoid duplicating the type name
- Line 18: do not use C-style cast to convert between unrelated types
- Line 19: do not use C-style cast to convert between unrelated types
- Line 60: variable 'i' is not initialized
- Line 63: use auto when initializing with a cast to avoid duplicating the type name
- Line 63: do not use C-style cast to convert between unrelated types
- Line 64: do not use C-style cast to convert between unrelated types
- Line 93: variable 'i' is not initialized
- Line 96: use auto when initializing with a cast to avoid duplicating the type name
- Line 96: do not use C-style cast to convert between unrelated types
- Line 97: do not use C-style cast to convert between unrelated types
- Line 134: multiple declarations in a single statement reduces readability
- Line 134: variable 'scale' is not initialized
- Line 134: variable 'nr_idx' is not initialized
- Line 134: variable 'nr_num' is not initialized
- Line 134: variable 'nr_size' is not initialized
- Line 148: declaration uses identifier '__rte_ring_dequeue_elems_32', which is a reserved identifier
- Line 151: variable 'i' is not initialized
- Line 152: use auto when initializing with a cast to avoid duplicating the type name
- Line 152: do not use C-style cast to convert between unrelated types
- Line 153: do not use C-style cast to convert between unrelated types
- Line 194: variable 'i' is not initialized
- Line 197: use auto when initializing with a cast to avoid duplicating the type name
- Line 197: do not use C-style cast to convert between unrelated types
- Line 198: do not use C-style cast to convert between unrelated types
- Line 227: variable 'i' is not initialized
- Line 230: use auto when initializing with a cast to avoid duplicating the type name
- Line 230: do not use C-style cast to convert between unrelated types
- Line 231: do not use C-style cast to convert between unrelated types
- Line 264: multiple declarations in a single statement reduces readability
- Line 264: variable 'scale' is not initialized
- Line 264: variable 'nr_idx' is not initialized
- Line 264: variable 'nr_num' is not initialized
- Line 264: variable 'nr_size' is not initialized
- Line 315: declaration uses identifier '__rte_ring_do_enqueue_elem', which is a reserved identifier
- Line 320: multiple declarations in a single statement reduces readability
- Line 320: variable 'prod_next' is not initialized
- Line 321: variable 'free_entries' is not initialized
- Line 332: use nullptr
- Line 362: declaration uses identifier '__rte_ring_do_dequeue_elem', which is a reserved identifier
- Line 367: multiple declarations in a single statement reduces readability
- Line 367: variable 'cons_next' is not initialized
- Line 368: variable 'entries' is not initialized
- Line 380: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_GENERIC_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_update_tail', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_move_prod_head', which is a reserved identifier
- Line 62: variable 'success' is not initialized
- Line 125: declaration uses identifier '__rte_ring_move_cons_head', which is a reserved identifier
- Line 131: variable 'success' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_HTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_HTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_hts_update_tail', which is a reserved identifier
- Line 28: variable 'tail' is not initialized
- Line 42: declaration uses identifier '__rte_ring_hts_head_wait', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_hts_move_prod_head', which is a reserved identifier
- Line 59: variable 'n' is not initialized
- Line 60: multiple declarations in a single statement reduces readability
- Line 113: declaration uses identifier '__rte_ring_hts_move_cons_head', which is a reserved identifier
- Line 117: variable 'n' is not initialized
- Line 118: multiple declarations in a single statement reduces readability
- Line 187: declaration uses identifier '__rte_ring_do_hts_enqueue_elem', which is a reserved identifier
- Line 191: multiple declarations in a single statement reduces readability
- Line 191: variable 'head' is not initialized
- Line 200: use nullptr
- Line 228: declaration uses identifier '__rte_ring_do_hts_dequeue_elem', which is a reserved identifier
- Line 232: multiple declarations in a single statement reduces readability
- Line 232: variable 'head' is not initialized
- Line 241: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_H_', which is a reserved identifier
- Line 170: variable 'tail' is not initialized
- Line 333: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ELEM_PVT_H_', which is a reserved identifier
- Line 31: declaration uses identifier '__rte_ring_st_get_tail', which is a reserved identifier
- Line 34: multiple declarations in a single statement reduces readability
- Line 34: variable 'n' is not initialized
- Line 34: variable 't' is not initialized
- Line 53: declaration uses identifier '__rte_ring_st_set_head_tail', which is a reserved identifier
- Line 56: variable 'pos' is not initialized
- Line 75: declaration uses identifier '__rte_ring_hts_get_tail', which is a reserved identifier
- Line 78: variable 'n' is not initialized
- Line 97: declaration uses identifier '__rte_ring_hts_set_head_tail', which is a reserved identifier
- Line 114: declaration uses identifier '__rte_ring_do_enqueue_start', which is a reserved identifier
- Line 117: multiple declarations in a single statement reduces readability
- Line 117: variable 'head' is not initialized
- Line 117: variable 'next' is not initialized
- Line 137: use nullptr
- Line 147: declaration uses identifier '__rte_ring_do_dequeue_start', which is a reserved identifier
- Line 151: multiple declarations in a single statement reduces readability
- Line 151: variable 'head' is not initialized
- Line 151: variable 'next' is not initialized
- Line 174: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ZC_H_', which is a reserved identifier
- Line 98: declaration uses identifier '__rte_ring_get_elem_addr', which is a reserved identifier
- Line 101: multiple declarations in a single statement reduces readability
- Line 101: variable 'scale' is not initialized
- Line 101: variable 'nr_idx' is not initialized
- Line 102: use auto when initializing with a cast to avoid duplicating the type name
- Line 102: do not use C-style cast to convert between unrelated types
- Line 124: declaration uses identifier '__rte_ring_do_enqueue_zc_elem_start', which is a reserved identifier
- Line 128: multiple declarations in a single statement reduces readability
- Line 128: variable 'head' is not initialized
- Line 128: variable 'next' is not initialized
- Line 151: use nullptr
- Line 291: variable 'tail' is not initialized
- Line 331: declaration uses identifier '__rte_ring_do_dequeue_zc_elem_start', which is a reserved identifier
- Line 335: multiple declarations in a single statement reduces readability
- Line 335: variable 'head' is not initialized
- Line 335: variable 'next' is not initialized
- Line 359: use nullptr
- Line 497: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_RTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_RTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_rts_update_tail', which is a reserved identifier
- Line 27: multiple declarations in a single statement reduces readability
- Line 53: declaration uses identifier '__rte_ring_rts_head_wait', which is a reserved identifier
- Line 56: variable 'max' is not initialized
- Line 70: declaration uses identifier '__rte_ring_rts_move_prod_head', which is a reserved identifier
- Line 74: variable 'n' is not initialized
- Line 75: multiple declarations in a single statement reduces readability
- Line 128: declaration uses identifier '__rte_ring_rts_move_cons_head', which is a reserved identifier
- Line 132: variable 'n' is not initialized
- Line 133: multiple declarations in a single statement reduces readability
- Line 202: declaration uses identifier '__rte_ring_do_rts_enqueue_elem', which is a reserved identifier
- Line 206: multiple declarations in a single statement reduces readability
- Line 206: variable 'head' is not initialized
- Line 215: use nullptr
- Line 243: declaration uses identifier '__rte_ring_do_rts_dequeue_elem', which is a reserved identifier
- Line 247: multiple declarations in a single statement reduces readability
- Line 247: variable 'head' is not initialized
- Line 256: use nullptr
- Line 6: declaration uses identifier '_RTE_RTM_H_', which is a reserved identifier
- Line 6: macro '_RTE_RTM_H_' used to declare a constant; consider using a 'constexpr' constant
- Line 26: function-like macro 'RTE_XABORT_CODE' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_RWLOCK_X86_64_H_', which is a reserved identifier
- Line 15: declaration uses identifier '_RTE_SCTP_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_SPINLOCK_X86_64_H_', which is a reserved identifier
- Line 80: multiple declarations in a single statement reduces readability
- Line 80: variable 'retries' is not initialized
- Line 109: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type 'int' is implementation-defined
- Line 74: do not use pointer arithmetic
- Line 43: macro 'RTE_TCP_CWR_FLAG' used to declare a constant; consider using a 'constexpr' constant
- Line 6: declaration uses identifier '_RTE_TRACE_POINT_H_', which is a reserved identifier
- Line 78: variadic macro 'RTE_TRACE_POINT' used; consider using a 'constexpr' variadic template function
- Line 151: macro '__RTE_TRACE_EMIT_STRING_LEN_MAX' used to declare a constant; consider using a 'constexpr' constant
- Line 153: declaration uses identifier '__RTE_TRACE_EVENT_HEADER_SZ', which is a reserved identifier
- Line 211: declaration uses identifier '__rte_trace_point_fp_is_enabled', which is a reserved identifier
- Line 227: declaration uses identifier '__rte_trace_mem_per_thread_alloc', which is a reserved identifier
- Line 245: declaration uses identifier '__rte_trace_point_emit_field', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_trace_point_register', which is a reserved identifier
- Line 379: declaration uses identifier '__rte_trace_point_emit_header_generic', which is a reserved identifier
- Line 379: function-like macro '__rte_trace_point_emit_header_generic' used; consider a 'constexpr' template function
- Line 380: function-like macro '__rte_trace_point_emit_header_fp' used; consider a 'constexpr' template function
- Line 11: declaration uses identifier '_RTE_UUID_H_', which is a reserved identifier
- Line 24: do not declare C-style arrays, use std::array<> instead
- Line 6: declaration uses identifier '_RTE_VXLAN_H_', which is a reserved identifier
- Line 25: macro 'RTE_VXLAN_DEFAULT_PORT' used to declare a constant; consider using a 'constexpr' constant
- Line 18: nested namespaces can be concatenated
- Line 23: macro 'NUM_MBUFS' used to declare a constant; consider using a 'constexpr' constant
- Line 24: macro 'MBUF_CACHE_SIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 47: do not declare C-style arrays, use std::array<> instead
- Line 15: nested namespaces can be concatenated
- Line 20: do not declare C-style arrays, use std::array<> instead
- Line 19: nested namespaces can be concatenated
- Line 35: nested namespaces can be concatenated
- Line 45: consider replacing 'long' with 'int64'
- Line 46: consider replacing 'long' with 'int64'
- Line 47: consider replacing 'long' with 'int64'
- Line 48: consider replacing 'long' with 'int64'
- Line 49: consider replacing 'long' with 'int64'
- Line 50: consider replacing 'long' with 'int64'
- Line 96: do not manage memory manually; consider a container or a smart pointer
- Line 98: use nullptr
- Line 137: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined
- Line 137: do not use pointer arithmetic
- Line 140: do not use pointer arithmetic
- Line 140: do not use C-style cast to convert between unrelated types
- Line 140: do not use pointer arithmetic
- Line 186: do not use pointer arithmetic
- Line 196: do not use pointer arithmetic
- Line 235: consider replacing 'long' with 'int64'
- Line 290: format string is not a string literal (potentially insecure)
unittest/Conversions_test.cxx
Warnings
- Line 6: declaration uses identifier '_RTE_ATOMIC_H_', which is a reserved identifier
- Line 119: function-like macro 'rte_compiler_barrier' used; consider a 'constexpr' template function
- Line 30: macro 'RTE_BIG_ENDIAN' used to declare a constant; consider using a 'constexpr' constant
- Line 93: consider replacing 'unsigned long' with 'uint64'
- Line 19: macro 'MS_PER_S' used to declare a constant; consider using a 'constexpr' constant
- Line 132: function-like macro 'RTE_WAIT_UNTIL_MASKED' used; consider a 'constexpr' template function
- Line 135: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_PREFETCH_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_RWLOCK_H_', which is a reserved identifier
- Line 52: macro 'RTE_RWLOCK_WAIT' used to declare a constant; consider using a 'constexpr' constant
- Line 90: converting integer literal to bool, use bool literal instead
- Line 123: variable 'x' is not initialized
- Line 170: variable 'x' is not initialized
- Line 175: converting integer literal to bool, use bool literal instead
- Line 190: variable 'x' is not initialized
- Line 192: converting integer literal to bool, use bool literal instead
- Line 198: converting integer literal to bool, use bool literal instead
- Line 6: declaration uses identifier '_RTE_SPINLOCK_H_', which is a reserved identifier
- Line 223: increment of object of volatile-qualified type 'volatile int' is deprecated
- Line 6: declaration uses identifier '_RTE_ATOMIC_X86_H_', which is a reserved identifier
- Line 21: macro 'MPLOCKED' used to declare a constant; consider using a 'constexpr' constant
- Line 133: do not use C-style cast to convert between unrelated types
- Line 174: variable 'ret' is not initialized
- Line 190: variable 'res' is not initialized
- Line 219: do not use C-style cast to convert between unrelated types
- Line 260: variable 'ret' is not initialized
- Line 17: declaration uses identifier '_RTE_ATOMIC_X86_64_H_', which is a reserved identifier
- Line 29: variable 'res' is not initialized
- Line 145: variable 'ret' is not initialized
- Line 160: variable 'ret' is not initialized
- Line 174: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_BITOPS_H_', which is a reserved identifier
- Line 30: function-like macro 'RTE_BIT64' used; consider a 'constexpr' template function
- Line 28: function-like macro 'likely' used; consider a 'constexpr' template function
- Line 51: function-like macro 'rte_bswap16' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_COMMON_H_', which is a reserved identifier
- Line 50: macro 'RTE_CC_IS_GNU' used to declare a constant; consider using a 'constexpr' constant
- Line 88: declaration uses identifier '__rte_may_alias', which is a reserved identifier
- Line 91: declaration uses identifier '__rte_deprecated', which is a reserved identifier
- Line 92: declaration uses identifier '__rte_deprecated_msg', which is a reserved identifier
- Line 92: function-like macro '__rte_deprecated_msg' used; consider a 'constexpr' template function
- Line 108: declaration uses identifier '__rte_weak', which is a reserved identifier
- Line 113: declaration uses identifier '__rte_used', which is a reserved identifier
- Line 120: declaration uses identifier '__rte_unused', which is a reserved identifier
- Line 126: declaration uses identifier '__rte_restrict', which is a reserved identifier
- Line 135: function-like macro 'RTE_SET_USED' used; consider a 'constexpr' template function
- Line 148: function-like macro '__rte_format_printf' used; consider a 'constexpr' template function
- Line 158: declaration uses identifier '__rte_alloc_size', which is a reserved identifier
- Line 158: variadic macro '__rte_alloc_size' used; consider using a 'constexpr' variadic template function
- Line 164: macro 'RTE_PRIORITY_LOG' used to declare a constant; consider using a 'constexpr' constant
- Line 250: declaration uses identifier '__rte_warn_unused_result', which is a reserved identifier
- Line 260: declaration uses identifier '__rte_noinline', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_hot', which is a reserved identifier
- Line 270: declaration uses identifier '__rte_cold', which is a reserved identifier
- Line 282: declaration uses identifier '__rte_no_asan', which is a reserved identifier
- Line 290: function-like macro 'RTE_PTR_ADD' used; consider a 'constexpr' template function
- Line 443: declaration uses identifier '__rte_cache_min_aligned', which is a reserved identifier
- Line 464: do not declare C-style arrays, use std::array<> instead
- Line 824: macro argument should be enclosed in parentheses
- Line 837: function-like macro 'RTE_SIZEOF_FIELD' used; consider a 'constexpr' template function
- Line 841: function-like macro 'RTE_STR' used; consider a 'constexpr' template function
- Line 15: declaration uses identifier '__rte_experimental', which is a reserved identifier
- Line 33: declaration uses identifier '__rte_internal', which is a reserved identifier
- Line 13: declaration uses identifier '_RTE_CONFIG_H_', which is a reserved identifier
- Line 19: macro 'RTE_EXEC_ENV_LINUXAPP' used to declare a constant; consider using a 'constexpr' constant
- Line 7: declaration uses identifier '_RTE_CYCLES_X86_64_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_DEBUG_H_', which is a reserved identifier
- Line 43: variadic macro 'rte_panic' used; consider using a 'constexpr' variadic template function
- Line 28: macro 'RTE_MAGIC' used to declare a constant; consider using a 'constexpr' constant
- Line 25: macro 'RTE_ETHER_ADDR_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 84: do not use C-style cast to convert between unrelated types
- Line 85: do not use C-style cast to convert between unrelated types
- Line 102: do not use C-style cast to convert between unrelated types
- Line 149: do not use C-style cast to convert between unrelated types
- Line 333: do not use C-style cast to convert between unrelated types
- Line 358: variable 'nh' is not initialized
- Line 359: variable 'vh' is not initialized
- Line 369: do not use pointer arithmetic
- Line 378: do not use C-style cast to convert between unrelated types
- Line 68: function-like macro 'RTE_IPV4' used; consider a 'constexpr' template function
- Line 164: variable 'end' is not initialized
- Line 166: do not use C-style cast to convert between unrelated types
- Line 195: declaration uses identifier '__rte_raw_cksum_reduce', which is a reserved identifier
- Line 215: variable 'sum' is not initialized
- Line 239: variable 'seg' is not initialized
- Line 240: variable 'buf' is not initialized
- Line 241: multiple declarations in a single statement reduces readability
- Line 241: variable 'tmp' is not initialized
- Line 242: multiple declarations in a single statement reduces readability
- Line 242: variable 'done' is not initialized
- Line 246: do not use pointer arithmetic
- Line 263: use nullptr
- Line 266: do not use pointer arithmetic
- Line 342: variable 'l3_len' is not initialized
- Line 362: declaration uses identifier '__rte_ipv4_udptcp_cksum', which is a reserved identifier
- Line 364: variable 'cksum' is not initialized
- Line 365: multiple declarations in a single statement reduces readability
- Line 365: variable 'l4_len' is not initialized
- Line 366: variable 'ip_hdr_len' is not initialized
- Line 417: declaration uses identifier '__rte_ipv4_udptcp_cksum_mbuf', which is a reserved identifier
- Line 421: variable 'raw_cksum' is not initialized
- Line 422: variable 'cksum' is not initialized
- Line 543: macro 'RTE_IPV6_HDR_FL_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 596: declaration uses identifier '__rte_ipv6_udptcp_cksum', which is a reserved identifier
- Line 598: variable 'cksum' is not initialized
- Line 599: variable 'l4_len' is not initialized
- Line 646: declaration uses identifier '__rte_ipv6_udptcp_cksum_mbuf', which is a reserved identifier
- Line 650: variable 'raw_cksum' is not initialized
- Line 651: variable 'cksum' is not initialized
- Line 765: macro 'RTE_IPV6_EHDR_MF_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 813: do not use pointer arithmetic
- Line 6: declaration uses identifier '_RTE_LCORE_H_', which is a reserved identifier
- Line 218: function-like macro 'RTE_LCORE_FOREACH' used; consider a 'constexpr' template function
- Line 220: macro argument should be enclosed in parentheses
- Line 221: macro argument should be enclosed in parentheses
- Line 226: function-like macro 'RTE_LCORE_FOREACH_WORKER' used; consider a 'constexpr' template function
- Line 228: macro argument should be enclosed in parentheses
- Line 229: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_LOG_H_', which is a reserved identifier
- Line 29: macro 'RTE_LOGTYPE_EAL' used to declare a constant; consider using a 'constexpr' constant
- Line 370: macro argument should be enclosed in parentheses
- Line 371: macro argument should be enclosed in parentheses
- Line 387: function-like macro 'RTE_LOG_REGISTER' used; consider a 'constexpr' template function
- Line 218: do not use C-style cast to convert between unrelated types
- Line 318: do not use C-style cast to convert between unrelated types
- Line 348: declaration uses identifier '__rte_mbuf_sanity_check', which is a reserved identifier
- Line 348: function-like macro '__rte_mbuf_sanity_check' used; consider a 'constexpr' template function
- Line 382: declaration uses identifier '__rte_mbuf_refcnt_update', which is a reserved identifier
- Line 510: function-like macro 'RTE_MBUF_PREFETCH_TO_FREE' used; consider a 'constexpr' template function
- Line 575: function-like macro 'MBUF_RAW_ALLOC_CHECK' used; consider a 'constexpr' template function
- Line 600: do not use C-style cast to convert between unrelated types
- Line 825: variable 'mbp_priv' is not initialized
- Line 827: do not use C-style cast to convert between unrelated types
- Line 848: do not use C-style cast to convert between unrelated types
- Line 907: variable 'm' is not initialized
- Line 908: use nullptr
- Line 931: variable 'rc' is not initialized
- Line 933: do not use C-style cast to convert between unrelated types
- Line 1006: do not use C-style cast to convert between unrelated types
- Line 1009: do not use C-style cast to convert between unrelated types
- Line 1014: do not use C-style cast to convert between unrelated types
- Line 1184: use nullptr
- Line 1200: declaration uses identifier '__rte_pktmbuf_free_extbuf', which is a reserved identifier
- Line 1216: declaration uses identifier '__rte_pktmbuf_free_direct', which is a reserved identifier
- Line 1218: variable 'md' is not initialized
- Line 1225: use nullptr
- Line 1253: multiple declarations in a single statement reduces readability
- Line 1253: variable 'buf_len' is not initialized
- Line 1254: variable 'priv_size' is not initialized
- Line 1281: do not use C-style cast to convert between unrelated types
- Line 1304: variable 'shinfo' is not initialized
- Line 1353: use nullptr
- Line 1356: use nullptr
- Line 1357: use nullptr
- Line 1370: use nullptr
- Line 1373: use nullptr
- Line 1374: use nullptr
- Line 1381: use nullptr
- Line 1397: use nullptr
- Line 1412: variable 'm_next' is not initialized
- Line 1414: use nullptr
- Line 1417: use nullptr
- Line 1500: use nullptr
- Line 1543: use nullptr
- Line 1556: function-like macro 'rte_pktmbuf_pkt_len' used; consider a 'constexpr' template function
- Line 1598: do not use C-style cast to convert between unrelated types
- Line 1619: variable 'm_last' is not initialized
- Line 1625: use nullptr
- Line 1627: do not use C-style cast to convert between unrelated types
- Line 1660: do not use C-style cast to convert between unrelated types
- Line 1710: declaration uses identifier '__rte_pktmbuf_read', which is a reserved identifier
- Line 1737: do not use pointer arithmetic
- Line 1863: declaration uses identifier '__rte_pktmbuf_linearize', which is a reserved identifier
- Line 1996: compound literals are a C99-specific feature
- Line 81: macro 'RTE_MBUF_F_RX_IP_CKSUM_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 75: macro 'RTE_PTYPE_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 72: do not use C-style cast to convert between unrelated types
- Line 428: variable 'bits' is not initialized
- Line 441: do not use C-style cast to convert between unrelated types
- Line 38: macro replacement list should be enclosed in parentheses
- Line 609: macro 'RTE_MEM_EVENT_CALLBACK_NAME_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 57: macro 'RTE_MEMPOOL_HEADER_COOKIE1' used to declare a constant; consider using a 'constexpr' constant
- Line 773: variable 'ret' is not initialized
- Line 802: variable 'ops' is not initialized
- Line 827: variable 'ops' is not initialized
- Line 828: variable 'ret' is not initialized
- Line 970: macro argument should be enclosed in parentheses
- Line 1318: use nullptr
- Line 1321: use nullptr
- Line 1324: do not use pointer arithmetic
- Line 1342: use nullptr
- Line 1365: variable 'cache_objs' is not initialized
- Line 1368: use nullptr
- Line 1387: do not use array subscript when the index is not an integer constant expression
- Line 1494: variable 'ret' is not initialized
- Line 1496: multiple declarations in a single statement reduces readability
- Line 1496: variable 'len' is not initialized
- Line 1497: variable 'cache_objs' is not initialized
- Line 1500: use nullptr
- Line 1505: do not use array subscript when the index is not an integer constant expression
- Line 1567: use nullptr
- Line 1603: variable 'ret' is not initialized
- Line 1636: variable 'cache' is not initialized
- Line 1693: variable 'ret' is not initialized
- Line 1790: variable 'hdr' is not initialized
- Line 1791: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_MEMZONE_H_', which is a reserved identifier
- Line 33: macro 'RTE_MEMZONE_2MB' used to declare a constant; consider using a 'constexpr' constant
- Line 21: function-like macro 'RTE_TAILQ_HEAD' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_PCI_DEV_DEFS_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PER_LCORE_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PREFETCH_X86_64_H_', which is a reserved identifier
- Line 18: do not use C-style cast to convert between unrelated types
- Line 11: declaration uses identifier '_RTE_RING_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_CORE_H_', which is a reserved identifier
- Line 40: macro 'RTE_TAILQ_RING_NAME' used to declare a constant; consider using a 'constexpr' constant
- Line 96: declaration uses identifier '__rte_ring_hts_pos', which is a reserved identifier
- Line 153: macro 'RING_F_SP_ENQ' used to declare a constant; consider using a 'constexpr' constant
- Line 214: use nullptr
- Line 240: use nullptr
- Line 264: use nullptr
- Line 290: use nullptr
- Line 396: use nullptr
- Line 424: use nullptr
- Line 448: use nullptr
- Line 475: use nullptr
- Line 582: use nullptr
- Line 692: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_ELEM_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_enqueue_elems_32', which is a reserved identifier
- Line 17: variable 'i' is not initialized
- Line 18: use auto when initializing with a cast to avoid duplicating the type name
- Line 18: do not use C-style cast to convert between unrelated types
- Line 19: do not use C-style cast to convert between unrelated types
- Line 60: variable 'i' is not initialized
- Line 63: use auto when initializing with a cast to avoid duplicating the type name
- Line 63: do not use C-style cast to convert between unrelated types
- Line 64: do not use C-style cast to convert between unrelated types
- Line 93: variable 'i' is not initialized
- Line 96: use auto when initializing with a cast to avoid duplicating the type name
- Line 96: do not use C-style cast to convert between unrelated types
- Line 97: do not use C-style cast to convert between unrelated types
- Line 134: multiple declarations in a single statement reduces readability
- Line 134: variable 'scale' is not initialized
- Line 134: variable 'nr_idx' is not initialized
- Line 134: variable 'nr_num' is not initialized
- Line 134: variable 'nr_size' is not initialized
- Line 148: declaration uses identifier '__rte_ring_dequeue_elems_32', which is a reserved identifier
- Line 151: variable 'i' is not initialized
- Line 152: use auto when initializing with a cast to avoid duplicating the type name
- Line 152: do not use C-style cast to convert between unrelated types
- Line 153: do not use C-style cast to convert between unrelated types
- Line 194: variable 'i' is not initialized
- Line 197: use auto when initializing with a cast to avoid duplicating the type name
- Line 197: do not use C-style cast to convert between unrelated types
- Line 198: do not use C-style cast to convert between unrelated types
- Line 227: variable 'i' is not initialized
- Line 230: use auto when initializing with a cast to avoid duplicating the type name
- Line 230: do not use C-style cast to convert between unrelated types
- Line 231: do not use C-style cast to convert between unrelated types
- Line 264: multiple declarations in a single statement reduces readability
- Line 264: variable 'scale' is not initialized
- Line 264: variable 'nr_idx' is not initialized
- Line 264: variable 'nr_num' is not initialized
- Line 264: variable 'nr_size' is not initialized
- Line 315: declaration uses identifier '__rte_ring_do_enqueue_elem', which is a reserved identifier
- Line 320: multiple declarations in a single statement reduces readability
- Line 320: variable 'prod_next' is not initialized
- Line 321: variable 'free_entries' is not initialized
- Line 332: use nullptr
- Line 362: declaration uses identifier '__rte_ring_do_dequeue_elem', which is a reserved identifier
- Line 367: multiple declarations in a single statement reduces readability
- Line 367: variable 'cons_next' is not initialized
- Line 368: variable 'entries' is not initialized
- Line 380: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_GENERIC_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_update_tail', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_move_prod_head', which is a reserved identifier
- Line 62: variable 'success' is not initialized
- Line 125: declaration uses identifier '__rte_ring_move_cons_head', which is a reserved identifier
- Line 131: variable 'success' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_HTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_HTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_hts_update_tail', which is a reserved identifier
- Line 28: variable 'tail' is not initialized
- Line 42: declaration uses identifier '__rte_ring_hts_head_wait', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_hts_move_prod_head', which is a reserved identifier
- Line 59: variable 'n' is not initialized
- Line 60: multiple declarations in a single statement reduces readability
- Line 113: declaration uses identifier '__rte_ring_hts_move_cons_head', which is a reserved identifier
- Line 117: variable 'n' is not initialized
- Line 118: multiple declarations in a single statement reduces readability
- Line 187: declaration uses identifier '__rte_ring_do_hts_enqueue_elem', which is a reserved identifier
- Line 191: multiple declarations in a single statement reduces readability
- Line 191: variable 'head' is not initialized
- Line 200: use nullptr
- Line 228: declaration uses identifier '__rte_ring_do_hts_dequeue_elem', which is a reserved identifier
- Line 232: multiple declarations in a single statement reduces readability
- Line 232: variable 'head' is not initialized
- Line 241: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_H_', which is a reserved identifier
- Line 170: variable 'tail' is not initialized
- Line 333: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ELEM_PVT_H_', which is a reserved identifier
- Line 31: declaration uses identifier '__rte_ring_st_get_tail', which is a reserved identifier
- Line 34: multiple declarations in a single statement reduces readability
- Line 34: variable 'n' is not initialized
- Line 34: variable 't' is not initialized
- Line 53: declaration uses identifier '__rte_ring_st_set_head_tail', which is a reserved identifier
- Line 56: variable 'pos' is not initialized
- Line 75: declaration uses identifier '__rte_ring_hts_get_tail', which is a reserved identifier
- Line 78: variable 'n' is not initialized
- Line 97: declaration uses identifier '__rte_ring_hts_set_head_tail', which is a reserved identifier
- Line 114: declaration uses identifier '__rte_ring_do_enqueue_start', which is a reserved identifier
- Line 117: multiple declarations in a single statement reduces readability
- Line 117: variable 'head' is not initialized
- Line 117: variable 'next' is not initialized
- Line 137: use nullptr
- Line 147: declaration uses identifier '__rte_ring_do_dequeue_start', which is a reserved identifier
- Line 151: multiple declarations in a single statement reduces readability
- Line 151: variable 'head' is not initialized
- Line 151: variable 'next' is not initialized
- Line 174: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ZC_H_', which is a reserved identifier
- Line 98: declaration uses identifier '__rte_ring_get_elem_addr', which is a reserved identifier
- Line 101: multiple declarations in a single statement reduces readability
- Line 101: variable 'scale' is not initialized
- Line 101: variable 'nr_idx' is not initialized
- Line 102: use auto when initializing with a cast to avoid duplicating the type name
- Line 102: do not use C-style cast to convert between unrelated types
- Line 124: declaration uses identifier '__rte_ring_do_enqueue_zc_elem_start', which is a reserved identifier
- Line 128: multiple declarations in a single statement reduces readability
- Line 128: variable 'head' is not initialized
- Line 128: variable 'next' is not initialized
- Line 151: use nullptr
- Line 291: variable 'tail' is not initialized
- Line 331: declaration uses identifier '__rte_ring_do_dequeue_zc_elem_start', which is a reserved identifier
- Line 335: multiple declarations in a single statement reduces readability
- Line 335: variable 'head' is not initialized
- Line 335: variable 'next' is not initialized
- Line 359: use nullptr
- Line 497: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_RTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_RTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_rts_update_tail', which is a reserved identifier
- Line 27: multiple declarations in a single statement reduces readability
- Line 53: declaration uses identifier '__rte_ring_rts_head_wait', which is a reserved identifier
- Line 56: variable 'max' is not initialized
- Line 70: declaration uses identifier '__rte_ring_rts_move_prod_head', which is a reserved identifier
- Line 74: variable 'n' is not initialized
- Line 75: multiple declarations in a single statement reduces readability
- Line 128: declaration uses identifier '__rte_ring_rts_move_cons_head', which is a reserved identifier
- Line 132: variable 'n' is not initialized
- Line 133: multiple declarations in a single statement reduces readability
- Line 202: declaration uses identifier '__rte_ring_do_rts_enqueue_elem', which is a reserved identifier
- Line 206: multiple declarations in a single statement reduces readability
- Line 206: variable 'head' is not initialized
- Line 215: use nullptr
- Line 243: declaration uses identifier '__rte_ring_do_rts_dequeue_elem', which is a reserved identifier
- Line 247: multiple declarations in a single statement reduces readability
- Line 247: variable 'head' is not initialized
- Line 256: use nullptr
- Line 6: declaration uses identifier '_RTE_RTM_H_', which is a reserved identifier
- Line 6: macro '_RTE_RTM_H_' used to declare a constant; consider using a 'constexpr' constant
- Line 26: function-like macro 'RTE_XABORT_CODE' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_RWLOCK_X86_64_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_SPINLOCK_X86_64_H_', which is a reserved identifier
- Line 80: multiple declarations in a single statement reduces readability
- Line 80: variable 'retries' is not initialized
- Line 109: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type 'int' is implementation-defined
- Line 74: do not use pointer arithmetic
- Line 6: declaration uses identifier '_RTE_TRACE_POINT_H_', which is a reserved identifier
- Line 78: variadic macro 'RTE_TRACE_POINT' used; consider using a 'constexpr' variadic template function
- Line 151: macro '__RTE_TRACE_EMIT_STRING_LEN_MAX' used to declare a constant; consider using a 'constexpr' constant
- Line 153: declaration uses identifier '__RTE_TRACE_EVENT_HEADER_SZ', which is a reserved identifier
- Line 211: declaration uses identifier '__rte_trace_point_fp_is_enabled', which is a reserved identifier
- Line 227: declaration uses identifier '__rte_trace_mem_per_thread_alloc', which is a reserved identifier
- Line 245: declaration uses identifier '__rte_trace_point_emit_field', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_trace_point_register', which is a reserved identifier
- Line 379: declaration uses identifier '__rte_trace_point_emit_header_generic', which is a reserved identifier
- Line 379: function-like macro '__rte_trace_point_emit_header_generic' used; consider a 'constexpr' template function
- Line 380: function-like macro '__rte_trace_point_emit_header_fp' used; consider a 'constexpr' template function
- Line 11: declaration uses identifier '_RTE_UUID_H_', which is a reserved identifier
- Line 24: do not declare C-style arrays, use std::array<> instead
- Line 11: macro 'TRACE_REV' used to declare a constant; consider using a 'constexpr' constant
- Line 338: variadic macro 'TRACE_REV_FROM_REVb' used; consider using a 'constexpr' variadic template function
- Line 428: function-like macro 'TRACE_ATOMIC_LOAD' used; consider a 'constexpr' template function
- Line 640: declaration uses identifier 'TRACE_PRINT__', which is a reserved identifier
- Line 648: macro 'TRACE_PAGESIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 1139: function-like macro 'TRACE_TID2NAME' used; consider a 'constexpr' template function
- Line 1144: function-like macro 'TRACE_entSiz' used; consider a 'constexpr' template function
- Line 1211: multiple declarations in a single statement reduces readability
- Line 1253: do not use pointer arithmetic
- Line 1277: multiple declarations in a single statement reduces readability
- Line 1277: variable 'extp' is not initialized
- Line 1277: variable 'file_or_hdrf' is not initialized
- Line 1278: multiple declarations in a single statement reduces readability
- Line 1279: multiple declarations in a single statement reduces readability
- Line 1280: do not declare C-style arrays, use std::array<> instead
- Line 1364: do not use pointer arithmetic
- Line 1374: do not use pointer arithmetic
- Line 1378: do not use pointer arithmetic
- Line 1444: variable 'spec' is not initialized
- Line 1469: variable 'ret' is not initialized
- Line 1470: variable 'spec' is not initialized
- Line 1473: C-style casts are discouraged; use static_cast
- Line 1475: use nullptr
- Line 1476: use nullptr
- Line 1480: variable 'xx' is not initialized
- Line 1498: do not use pointer arithmetic
- Line 1503: C-style casts are discouraged; use static_cast
- Line 1515: multiple declarations in a single statement reduces readability
- Line 1515: variable 'tnow_ms' is not initialized
- Line 1516: variable 'do_print' is not initialized
- Line 1525: C-style casts are discouraged; use static_cast
- Line 1612: do not declare C-style arrays, use std::array<> instead
- Line 1614: multiple declarations in a single statement reduces readability
- Line 1614: variable 'ncpylen' is not initialized
- Line 1614: variable 'segment_len' is not initialized
- Line 1615: multiple declarations in a single statement reduces readability
- Line 1638: do not use pointer arithmetic
- Line 1651: do not use pointer arithmetic
- Line 1720: variable 'ii' is not initialized
- Line 1721: do not use pointer arithmetic
- Line 1730: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 1757: do not use pointer arithmetic
- Line 1786: do not declare C-style arrays, use std::array<> instead
- Line 1789: variable 'default_unknown_sav' is not initialized
- Line 1790: variable 'endptr' is not initialized
- Line 1792: variable 'print_cntl' is not initialized
- Line 1794: variable 'size' is not initialized
- Line 1795: multiple declarations in a single statement reduces readability
- Line 1798: do not declare C-style arrays, use std::array<> instead
- Line 1802: variable 'useconds' is not initialized
- Line 1815: function-like macro 'TRACE_PRINTSIZE' used; consider a 'constexpr' template function
- Line 1817: macro replacement list should be enclosed in parentheses
- Line 1817: macro argument should be enclosed in parentheses
- Line 1819: do not use pointer arithmetic
- Line 1852: do not use pointer arithmetic
- Line 1858: do not use pointer arithmetic
- Line 1951: consider replacing 'unsigned long' with 'uint64'
- Line 1951: C-style casts are discouraged; use static_cast
- Line 1951: consider replacing 'unsigned long' with 'uint64'
- Line 1987: do not use array subscript when the index is not an integer constant expression
- Line 2057: use nullptr
- Line 2066: C-style casts are discouraged; use static_cast (if needed, the cast may be redundant)
- Line 2071: C-style casts are discouraged; use static_cast
- Line 2072: do not use pointer arithmetic
- Line 2077: do not use pointer arithmetic
- Line 2086: casting (double + 0.5) to integer leads to incorrect rounding; consider using lround (#include
) instead - Line 2094: do not use array subscript when the index is not an integer constant expression
- Line 2124: do not use array subscript when the index is not an integer constant expression
- Line 2209: declaration uses identifier '___THROW', which is a reserved identifier
- Line 2221: variable 'rp' is not initialized
- Line 2222: do not declare C-style arrays, use std::array<> instead
- Line 2235: do not use pointer arithmetic
- Line 2254: variable 'msg_p' is not initialized
- Line 2255: variable 'params_p' is not initialized
- Line 2256: variable 'argIdx' is not initialized
- Line 2258: variable 'myIdxCnt' is not initialized
- Line 2259: variable 'desired' is not initialized
- Line 2260: multiple declarations in a single statement reduces readability
- Line 2260: variable 'len' is not initialized
- Line 2261: variable 'out' is not initialized
- Line 2265: variable 'chkpid' is not initialized
- Line 2316: macro 'TRACE_TSC_EXPERIMENT' used to declare a constant; consider using a 'constexpr' constant
- Line 2392: consider replacing 'long' with 'int64'
- Line 2394: do not use pointer arithmetic
- Line 2405: do not use pointer arithmetic
- Line 2414: do not use pointer arithmetic
- Line 2442: do not use pointer arithmetic
- Line 2459: C-style casts are discouraged; use static_cast
- Line 2480: do not use pointer arithmetic
- Line 2529: do not use pointer arithmetic
- Line 2539: multiple declarations in a single statement reduces readability
- Line 2539: variable 'ii' is not initialized
- Line 2539: variable 'len' is not initialized
- Line 2540: do not use pointer arithmetic
- Line 2572: do not use pointer arithmetic
- Line 2592: do not use pointer arithmetic
- Line 2623: variable 'sts' is not initialized
- Line 2629: variable 'ign' is not initialized
- Line 2630: do not declare C-style arrays, use std::array<> instead
- Line 2632: variable 'len' is not initialized
- Line 2633: consider replacing 'unsigned long long' with 'uint64'
- Line 2633: variable 'S' is not initialized
- Line 2638: C-style casts are discouraged; use static_cast
- Line 2643: do not use array subscript when the index is not an integer constant expression
- Line 2651: C-style casts are discouraged; use static_cast
- Line 2653: do not use pointer arithmetic
- Line 2661: do not use pointer arithmetic
- Line 2667: do not use array subscript when the index is not an integer constant expression
- Line 2674: C-style casts are discouraged; use static_cast
- Line 2674: use nullptr
- Line 2676: variable 'cnt' is not initialized
- Line 2677: multiple declarations in a single statement reduces readability
- Line 2677: variable 'off_ms' is not initialized
- Line 2713: potential uncovered code path; add a default label
- Line 2764: do not declare C-style arrays, use std::array<> instead
- Line 2816: variable 'tnam' is not initialized
- Line 2826: C-style casts are discouraged; use static_cast
- Line 2828: C-style casts are discouraged; use static_cast
- Line 2831: do not use pointer arithmetic
- Line 2836: C-style casts are discouraged; use static_cast
- Line 2871: multiple declarations in a single statement reduces readability
- Line 2871: variable 'lvlm' is not initialized
- Line 2871: variable 'lvls' is not initialized
- Line 2871: variable 'lvlt' is not initialized
- Line 2872: variable 'ee' is not initialized
- Line 2873: variable 'op' is not initialized
- Line 2874: do not use pointer arithmetic
- Line 2876: do not use pointer arithmetic
- Line 2903: consider replacing 'long' with 'int64'
- Line 2912: consider replacing 'long' with 'int64'
- Line 2921: consider replacing 'long' with 'int64'
- Line 2948: variable 'lvlm' is not initialized
- Line 2948: variable 'lvls' is not initialized
- Line 2948: variable 'lvlt' is not initialized
- Line 2949: multiple declarations in a single statement reduces readability
- Line 2950: variable 'op' is not initialized
- Line 2951: do not use pointer arithmetic
- Line 2967: C-style casts are discouraged; use static_cast
- Line 2970: do not use pointer arithmetic
- Line 3036: C-style casts are discouraged; use static_cast
- Line 3037: C-style casts are discouraged; use static_cast
- Line 3039: C-style casts are discouraged; use static_cast
- Line 3051: do not declare C-style arrays, use std::array<> instead
- Line 3057: do not use array subscript when the index is not an integer constant expression
- Line 3095: C-style casts are discouraged; use static_cast
- Line 3095: C-style casts are discouraged; use static_cast
- Line 3097: C-style casts are discouraged; use static_cast
- Line 3099: C-style casts are discouraged; use static_cast
- Line 3100: C-style casts are discouraged; use static_cast
- Line 3117: do not use C-style cast to convert between unrelated types
- Line 3117: do not use pointer arithmetic
- Line 3118: do not use pointer arithmetic
- Line 3146: variable 'ii' is not initialized
- Line 3148: do not declare C-style arrays, use std::array<> instead
- Line 3155: use nullptr
- Line 3155: use nullptr
- Line 3157: do not use pointer arithmetic
- Line 3164: use nullptr
- Line 3164: use nullptr
- Line 3165: use nullptr
- Line 3166: do not use C-style cast to cast away constness
- Line 3175: do not use pointer arithmetic
- Line 3180: use nullptr
- Line 3182: variable 'period' is not initialized
- Line 3188: do not use pointer arithmetic
- Line 3222: use nullptr
- Line 3223: variable 'rw_rwp' is not initialized
- Line 3224: variable 'off' is not initialized
- Line 3225: do not declare C-style arrays, use std::array<> instead
- Line 3272: C-style casts are discouraged; use static_cast
- Line 3283: do not use C-style cast to convert between unrelated types
- Line 3283: use nullptr
- Line 3284: do not use C-style cast to convert between unrelated types
- Line 3313: do not use C-style cast to convert between unrelated types
- Line 3313: use nullptr
- Line 3313: C-style casts are discouraged; use static_cast
- Line 3314: do not use C-style cast to convert between unrelated types
- Line 3325: use nullptr
- Line 3326: do not use C-style cast to convert between unrelated types
- Line 3341: do not use C-style cast to convert between unrelated types
- Line 3341: use nullptr
- Line 3342: do not use C-style cast to convert between unrelated types
- Line 3353: do not use C-style cast to convert between unrelated types
- Line 3353: do not use pointer arithmetic
- Line 3354: do not use pointer arithmetic
- Line 3378: multiple declarations in a single statement reduces readability
- Line 3378: variable 'argsmax_' is not initialized
- Line 3378: variable 'numents_' is not initialized
- Line 3378: variable 'namtblents_' is not initialized
- Line 3378: variable 'nammax_' is not initialized
- Line 3379: variable 'cp' is not initialized
- Line 3381: multiple declarations in a single statement reduces readability
- Line 3382: variable 'lvlM_endptr' is not initialized
- Line 3383: variable 'sts' is not initialized
- Line 3385: variable '_file' is not initialized
- Line 3393: use nullptr
- Line 3395: do not declare C-style arrays, use std::array<> instead
- Line 3399: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead
- Line 3403: use nullptr
- Line 3413: use nullptr
- Line 3415: variable 'scratch_name' is not initialized
- Line 3424: C-style casts are discouraged; use static_cast
- Line 3424: use nullptr
- Line 3429: C-style casts are discouraged; use static_cast
- Line 3429: use nullptr
- Line 3431: C-style casts are discouraged; use static_cast
- Line 3431: use nullptr
- Line 3433: C-style casts are discouraged; use static_cast
- Line 3433: use nullptr
- Line 3435: C-style casts are discouraged; use static_cast
- Line 3435: use nullptr
- Line 3442: multiple declarations in a single statement reduces readability
- Line 3449: do not use array subscript when the index is not an integer constant expression
- Line 3453: do not use pointer arithmetic
- Line 3464: C-style casts are discouraged; use static_cast
- Line 3466: C-style casts are discouraged; use static_cast
- Line 3470: C-style casts are discouraged; use static_cast
- Line 3475: multiple declarations in a single statement reduces readability
- Line 3513: do not use array subscript when the index is not an integer constant expression
- Line 3529: do not use pointer arithmetic
- Line 3536: C-style casts are discouraged; use static_cast
- Line 3543: C-style casts are discouraged; use static_cast
- Line 3544: use nullptr
- Line 3554: macro 'TRACE_DISABLED_ENTS' used to declare a constant; consider using a 'constexpr' constant
- Line 3565: use nullptr
- Line 3572: use nullptr
- Line 3576: C-style casts are discouraged; use static_cast
- Line 3601: variable 'endptr' is not initialized
- Line 3606: do not use pointer arithmetic
- Line 3616: do not use pointer arithmetic
- Line 3670: variable 'ii' is not initialized
- Line 3671: variable 'TrcId' is not initialized
- Line 3673: do not use pointer arithmetic
- Line 3696: variable 'idx' is not initialized
- Line 3697: variable 'off' is not initialized
- Line 3700: either cast from 'uint32_t' (aka 'unsigned int') to 'off_t' (aka 'long') is ineffective, or there is loss of precision before the conversion
- Line 3701: do not use C-style cast to convert between unrelated types
- Line 3701: do not use C-style cast to convert between unrelated types
- Line 3701: do not use pointer arithmetic
- Line 3707: C-style casts are discouraged; use static_cast
- Line 3707: C-style casts are discouraged; use static_cast
- Line 3708: do not use pointer arithmetic
- Line 3807: function-like macro 'TRACE_STREAMER_SCOPED' used; consider a 'constexpr' template function
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3868: macro argument should be enclosed in parentheses
- Line 3884: consider replacing 'unsigned long long' with 'uint64'
- Line 3940: converting integer literal to bool, use bool literal instead
- Line 3962: declaration uses identifier '_TRACE_M_flags', which is a reserved identifier
- Line 3970: do not use array subscript when the index is not an integer constant expression
- Line 4002: C-style casts are discouraged; use static_cast
- Line 4011: use nullptr
- Line 4012: use nullptr
- Line 4022: do not use array subscript when the index is not an integer constant expression
- Line 4031: do not use array subscript when the index is not an integer constant expression
- Line 4041: macro argument should be enclosed in parentheses
- Line 4047: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 4219: consider replacing 'long' with 'int64'
- Line 4220: consider replacing 'long' with 'int64'
- Line 4246: do not use C-style cast to convert between unrelated types
- Line 4246: consider replacing 'unsigned long' with 'uint64'
- Line 4247: consider replacing 'unsigned long' with 'uint64'
- Line 4251: do not use array subscript when the index is not an integer constant expression
- Line 4273: consider replacing 'long' with 'int64'
- Line 4273: consider replacing 'long' with 'int64'
- Line 4274: consider replacing 'long' with 'int64'
- Line 4282: use nullptr
- Line 4284: do not use pointer arithmetic
- Line 4297: consider replacing 'long' with 'int64'
- Line 4298: consider replacing 'long' with 'int64'
- Line 4320: do not use C-style cast to convert between unrelated types
- Line 4320: consider replacing 'long' with 'int64'
- Line 4321: consider replacing 'long' with 'int64'
- Line 4343: do not use C-style cast to convert between unrelated types
- Line 4343: consider replacing 'unsigned long' with 'uint64'
- Line 4344: consider replacing 'unsigned long' with 'uint64'
- Line 4366: do not use C-style cast to convert between unrelated types
- Line 4366: consider replacing 'unsigned long' with 'uint64'
- Line 4367: consider replacing 'unsigned long' with 'uint64'
- Line 4374: use nullptr
- Line 4376: do not use pointer arithmetic
- Line 4389: do not use C-style cast to convert between unrelated types
- Line 4389: consider replacing 'unsigned long' with 'uint64'
- Line 4390: consider replacing 'unsigned long' with 'uint64'
- Line 4412: do not use C-style cast to convert between unrelated types
- Line 4413: do not use C-style cast to convert between unrelated types
- Line 4417: consider replacing 'unsigned long long' with 'uint64'
- Line 4439: do not use C-style cast to convert between unrelated types
- Line 4440: do not use C-style cast to convert between unrelated types
- Line 4444: consider replacing 'long long' with 'int64'
- Line 4466: do not use C-style cast to convert between unrelated types
- Line 4467: do not use C-style cast to convert between unrelated types
- Line 4471: do not use array subscript when the index is not an integer constant expression
- Line 4478: use nullptr
- Line 4480: do not use pointer arithmetic
- Line 4493: do not use C-style cast to convert between unrelated types
- Line 4496: do not use C-style cast to convert between unrelated types
- Line 4496: consider replacing 'unsigned long' with 'uint64'
- Line 4499: do not use array subscript when the index is not an integer constant expression
- Line 4522: do not use C-style cast to convert between unrelated types
- Line 4523: do not use C-style cast to convert between unrelated types
- Line 4527: do not use array subscript when the index is not an integer constant expression
- Line 4534: use nullptr
- Line 4536: do not use pointer arithmetic
- Line 4549: consider replacing 'long' with 'int64'
- Line 4551: consider replacing 'long' with 'int64'
- Line 4609: do not use C-style cast to convert between unrelated types
- Line 4610: do not use pointer arithmetic
- Line 4610: do not use array subscript when the index is not an integer constant expression
- Line 4689: use auto when initializing with a cast to avoid duplicating the type name
- Line 4689: do not use C-style cast to convert between unrelated types
- Line 4690: do not use pointer arithmetic
- Line 4690: do not use array subscript when the index is not an integer constant expression
- Line 4714: declaration uses identifier '__tstreamer', which is a reserved identifier
- Line 4714: initialization of '__tstreamer' with thread_local storage duration may throw an exception that cannot be caught
- Line 4733: use nullptr
- Line 4745: C-style casts are discouraged; use static_cast/const_cast/reinterpret_cast
- Line 4759: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 4795: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 4827: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 4859: function-like macro 'TRACENATE' used; consider a 'constexpr' template function
- Line 2: declaration uses identifier '_IPV4_ADDR_H_', which is a reserved identifier
- Line 25: do not use array subscript when the index is not an integer constant expression
- Line 29: do not declare C-style arrays, use std::array<> instead
- Line 15: nested namespaces can be concatenated
- Line 20: do not declare C-style arrays, use std::array<> instead
unittest/Utils_test.cxx
Errors
- Line 43: An unsigned integer appears to be used here.
- Line 44: An unsigned integer appears to be used here.
- Line 45: An unsigned integer appears to be used here.
- Line 47: An unsigned integer appears to be used here.
- Line 77: An unsigned integer appears to be used here.
- Line 78: An unsigned integer appears to be used here.
- Line 77: Add #include
for vector<> - Line 72: Add #include
for pair<>
Warnings
- Line 6: declaration uses identifier '_RTE_ATOMIC_H_', which is a reserved identifier
- Line 119: function-like macro 'rte_compiler_barrier' used; consider a 'constexpr' template function
- Line 30: macro 'RTE_BIG_ENDIAN' used to declare a constant; consider using a 'constexpr' constant
- Line 93: consider replacing 'unsigned long' with 'uint64'
- Line 19: macro 'MS_PER_S' used to declare a constant; consider using a 'constexpr' constant
- Line 132: function-like macro 'RTE_WAIT_UNTIL_MASKED' used; consider a 'constexpr' template function
- Line 135: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_PREFETCH_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_RWLOCK_H_', which is a reserved identifier
- Line 52: macro 'RTE_RWLOCK_WAIT' used to declare a constant; consider using a 'constexpr' constant
- Line 90: converting integer literal to bool, use bool literal instead
- Line 123: variable 'x' is not initialized
- Line 170: variable 'x' is not initialized
- Line 175: converting integer literal to bool, use bool literal instead
- Line 190: variable 'x' is not initialized
- Line 192: converting integer literal to bool, use bool literal instead
- Line 198: converting integer literal to bool, use bool literal instead
- Line 6: declaration uses identifier '_RTE_SPINLOCK_H_', which is a reserved identifier
- Line 223: increment of object of volatile-qualified type 'volatile int' is deprecated
- Line 6: declaration uses identifier '_RTE_ATOMIC_X86_H_', which is a reserved identifier
- Line 21: macro 'MPLOCKED' used to declare a constant; consider using a 'constexpr' constant
- Line 133: do not use C-style cast to convert between unrelated types
- Line 174: variable 'ret' is not initialized
- Line 190: variable 'res' is not initialized
- Line 219: do not use C-style cast to convert between unrelated types
- Line 260: variable 'ret' is not initialized
- Line 17: declaration uses identifier '_RTE_ATOMIC_X86_64_H_', which is a reserved identifier
- Line 29: variable 'res' is not initialized
- Line 145: variable 'ret' is not initialized
- Line 160: variable 'ret' is not initialized
- Line 174: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_BITOPS_H_', which is a reserved identifier
- Line 30: function-like macro 'RTE_BIT64' used; consider a 'constexpr' template function
- Line 28: function-like macro 'likely' used; consider a 'constexpr' template function
- Line 51: function-like macro 'rte_bswap16' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_COMMON_H_', which is a reserved identifier
- Line 50: macro 'RTE_CC_IS_GNU' used to declare a constant; consider using a 'constexpr' constant
- Line 88: declaration uses identifier '__rte_may_alias', which is a reserved identifier
- Line 91: declaration uses identifier '__rte_deprecated', which is a reserved identifier
- Line 92: declaration uses identifier '__rte_deprecated_msg', which is a reserved identifier
- Line 92: function-like macro '__rte_deprecated_msg' used; consider a 'constexpr' template function
- Line 108: declaration uses identifier '__rte_weak', which is a reserved identifier
- Line 113: declaration uses identifier '__rte_used', which is a reserved identifier
- Line 120: declaration uses identifier '__rte_unused', which is a reserved identifier
- Line 126: declaration uses identifier '__rte_restrict', which is a reserved identifier
- Line 135: function-like macro 'RTE_SET_USED' used; consider a 'constexpr' template function
- Line 148: function-like macro '__rte_format_printf' used; consider a 'constexpr' template function
- Line 158: declaration uses identifier '__rte_alloc_size', which is a reserved identifier
- Line 158: variadic macro '__rte_alloc_size' used; consider using a 'constexpr' variadic template function
- Line 164: macro 'RTE_PRIORITY_LOG' used to declare a constant; consider using a 'constexpr' constant
- Line 250: declaration uses identifier '__rte_warn_unused_result', which is a reserved identifier
- Line 260: declaration uses identifier '__rte_noinline', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_hot', which is a reserved identifier
- Line 270: declaration uses identifier '__rte_cold', which is a reserved identifier
- Line 282: declaration uses identifier '__rte_no_asan', which is a reserved identifier
- Line 290: function-like macro 'RTE_PTR_ADD' used; consider a 'constexpr' template function
- Line 443: declaration uses identifier '__rte_cache_min_aligned', which is a reserved identifier
- Line 464: do not declare C-style arrays, use std::array<> instead
- Line 824: macro argument should be enclosed in parentheses
- Line 837: function-like macro 'RTE_SIZEOF_FIELD' used; consider a 'constexpr' template function
- Line 841: function-like macro 'RTE_STR' used; consider a 'constexpr' template function
- Line 15: declaration uses identifier '__rte_experimental', which is a reserved identifier
- Line 33: declaration uses identifier '__rte_internal', which is a reserved identifier
- Line 13: declaration uses identifier '_RTE_CONFIG_H_', which is a reserved identifier
- Line 19: macro 'RTE_EXEC_ENV_LINUXAPP' used to declare a constant; consider using a 'constexpr' constant
- Line 7: declaration uses identifier '_RTE_CYCLES_X86_64_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_DEBUG_H_', which is a reserved identifier
- Line 43: variadic macro 'rte_panic' used; consider using a 'constexpr' variadic template function
- Line 28: macro 'RTE_MAGIC' used to declare a constant; consider using a 'constexpr' constant
- Line 25: macro 'RTE_ETHER_ADDR_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 84: do not use C-style cast to convert between unrelated types
- Line 85: do not use C-style cast to convert between unrelated types
- Line 102: do not use C-style cast to convert between unrelated types
- Line 149: do not use C-style cast to convert between unrelated types
- Line 333: do not use C-style cast to convert between unrelated types
- Line 358: variable 'nh' is not initialized
- Line 359: variable 'vh' is not initialized
- Line 369: do not use pointer arithmetic
- Line 378: do not use C-style cast to convert between unrelated types
- Line 68: function-like macro 'RTE_IPV4' used; consider a 'constexpr' template function
- Line 164: variable 'end' is not initialized
- Line 166: do not use C-style cast to convert between unrelated types
- Line 195: declaration uses identifier '__rte_raw_cksum_reduce', which is a reserved identifier
- Line 215: variable 'sum' is not initialized
- Line 239: variable 'seg' is not initialized
- Line 240: variable 'buf' is not initialized
- Line 241: multiple declarations in a single statement reduces readability
- Line 241: variable 'tmp' is not initialized
- Line 242: multiple declarations in a single statement reduces readability
- Line 242: variable 'done' is not initialized
- Line 246: do not use pointer arithmetic
- Line 263: use nullptr
- Line 266: do not use pointer arithmetic
- Line 342: variable 'l3_len' is not initialized
- Line 362: declaration uses identifier '__rte_ipv4_udptcp_cksum', which is a reserved identifier
- Line 364: variable 'cksum' is not initialized
- Line 365: multiple declarations in a single statement reduces readability
- Line 365: variable 'l4_len' is not initialized
- Line 366: variable 'ip_hdr_len' is not initialized
- Line 417: declaration uses identifier '__rte_ipv4_udptcp_cksum_mbuf', which is a reserved identifier
- Line 421: variable 'raw_cksum' is not initialized
- Line 422: variable 'cksum' is not initialized
- Line 543: macro 'RTE_IPV6_HDR_FL_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 596: declaration uses identifier '__rte_ipv6_udptcp_cksum', which is a reserved identifier
- Line 598: variable 'cksum' is not initialized
- Line 599: variable 'l4_len' is not initialized
- Line 646: declaration uses identifier '__rte_ipv6_udptcp_cksum_mbuf', which is a reserved identifier
- Line 650: variable 'raw_cksum' is not initialized
- Line 651: variable 'cksum' is not initialized
- Line 765: macro 'RTE_IPV6_EHDR_MF_SHIFT' used to declare a constant; consider using a 'constexpr' constant
- Line 813: do not use pointer arithmetic
- Line 6: declaration uses identifier '_RTE_LCORE_H_', which is a reserved identifier
- Line 218: function-like macro 'RTE_LCORE_FOREACH' used; consider a 'constexpr' template function
- Line 220: macro argument should be enclosed in parentheses
- Line 221: macro argument should be enclosed in parentheses
- Line 226: function-like macro 'RTE_LCORE_FOREACH_WORKER' used; consider a 'constexpr' template function
- Line 228: macro argument should be enclosed in parentheses
- Line 229: macro argument should be enclosed in parentheses
- Line 6: declaration uses identifier '_RTE_LOG_H_', which is a reserved identifier
- Line 29: macro 'RTE_LOGTYPE_EAL' used to declare a constant; consider using a 'constexpr' constant
- Line 370: macro argument should be enclosed in parentheses
- Line 371: macro argument should be enclosed in parentheses
- Line 387: function-like macro 'RTE_LOG_REGISTER' used; consider a 'constexpr' template function
- Line 218: do not use C-style cast to convert between unrelated types
- Line 318: do not use C-style cast to convert between unrelated types
- Line 348: declaration uses identifier '__rte_mbuf_sanity_check', which is a reserved identifier
- Line 348: function-like macro '__rte_mbuf_sanity_check' used; consider a 'constexpr' template function
- Line 382: declaration uses identifier '__rte_mbuf_refcnt_update', which is a reserved identifier
- Line 510: function-like macro 'RTE_MBUF_PREFETCH_TO_FREE' used; consider a 'constexpr' template function
- Line 575: function-like macro 'MBUF_RAW_ALLOC_CHECK' used; consider a 'constexpr' template function
- Line 600: do not use C-style cast to convert between unrelated types
- Line 825: variable 'mbp_priv' is not initialized
- Line 827: do not use C-style cast to convert between unrelated types
- Line 848: do not use C-style cast to convert between unrelated types
- Line 907: variable 'm' is not initialized
- Line 908: use nullptr
- Line 931: variable 'rc' is not initialized
- Line 933: do not use C-style cast to convert between unrelated types
- Line 1006: do not use C-style cast to convert between unrelated types
- Line 1009: do not use C-style cast to convert between unrelated types
- Line 1014: do not use C-style cast to convert between unrelated types
- Line 1184: use nullptr
- Line 1200: declaration uses identifier '__rte_pktmbuf_free_extbuf', which is a reserved identifier
- Line 1216: declaration uses identifier '__rte_pktmbuf_free_direct', which is a reserved identifier
- Line 1218: variable 'md' is not initialized
- Line 1225: use nullptr
- Line 1253: multiple declarations in a single statement reduces readability
- Line 1253: variable 'buf_len' is not initialized
- Line 1254: variable 'priv_size' is not initialized
- Line 1281: do not use C-style cast to convert between unrelated types
- Line 1304: variable 'shinfo' is not initialized
- Line 1353: use nullptr
- Line 1356: use nullptr
- Line 1357: use nullptr
- Line 1370: use nullptr
- Line 1373: use nullptr
- Line 1374: use nullptr
- Line 1381: use nullptr
- Line 1397: use nullptr
- Line 1412: variable 'm_next' is not initialized
- Line 1414: use nullptr
- Line 1417: use nullptr
- Line 1500: use nullptr
- Line 1543: use nullptr
- Line 1556: function-like macro 'rte_pktmbuf_pkt_len' used; consider a 'constexpr' template function
- Line 1598: do not use C-style cast to convert between unrelated types
- Line 1619: variable 'm_last' is not initialized
- Line 1625: use nullptr
- Line 1627: do not use C-style cast to convert between unrelated types
- Line 1660: do not use C-style cast to convert between unrelated types
- Line 1710: declaration uses identifier '__rte_pktmbuf_read', which is a reserved identifier
- Line 1737: do not use pointer arithmetic
- Line 1863: declaration uses identifier '__rte_pktmbuf_linearize', which is a reserved identifier
- Line 1996: compound literals are a C99-specific feature
- Line 81: macro 'RTE_MBUF_F_RX_IP_CKSUM_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 75: macro 'RTE_PTYPE_UNKNOWN' used to declare a constant; consider using a 'constexpr' constant
- Line 72: do not use C-style cast to convert between unrelated types
- Line 428: variable 'bits' is not initialized
- Line 441: do not use C-style cast to convert between unrelated types
- Line 38: macro replacement list should be enclosed in parentheses
- Line 609: macro 'RTE_MEM_EVENT_CALLBACK_NAME_LEN' used to declare a constant; consider using a 'constexpr' constant
- Line 57: macro 'RTE_MEMPOOL_HEADER_COOKIE1' used to declare a constant; consider using a 'constexpr' constant
- Line 773: variable 'ret' is not initialized
- Line 802: variable 'ops' is not initialized
- Line 827: variable 'ops' is not initialized
- Line 828: variable 'ret' is not initialized
- Line 970: macro argument should be enclosed in parentheses
- Line 1318: use nullptr
- Line 1321: use nullptr
- Line 1324: do not use pointer arithmetic
- Line 1342: use nullptr
- Line 1365: variable 'cache_objs' is not initialized
- Line 1368: use nullptr
- Line 1387: do not use array subscript when the index is not an integer constant expression
- Line 1494: variable 'ret' is not initialized
- Line 1496: multiple declarations in a single statement reduces readability
- Line 1496: variable 'len' is not initialized
- Line 1497: variable 'cache_objs' is not initialized
- Line 1500: use nullptr
- Line 1505: do not use array subscript when the index is not an integer constant expression
- Line 1567: use nullptr
- Line 1603: variable 'ret' is not initialized
- Line 1636: variable 'cache' is not initialized
- Line 1693: variable 'ret' is not initialized
- Line 1790: variable 'hdr' is not initialized
- Line 1791: do not use C-style cast to convert between unrelated types
- Line 6: declaration uses identifier '_RTE_MEMZONE_H_', which is a reserved identifier
- Line 33: macro 'RTE_MEMZONE_2MB' used to declare a constant; consider using a 'constexpr' constant
- Line 21: function-like macro 'RTE_TAILQ_HEAD' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_PCI_DEV_DEFS_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PER_LCORE_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_PREFETCH_X86_64_H_', which is a reserved identifier
- Line 18: do not use C-style cast to convert between unrelated types
- Line 11: declaration uses identifier '_RTE_RING_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_CORE_H_', which is a reserved identifier
- Line 40: macro 'RTE_TAILQ_RING_NAME' used to declare a constant; consider using a 'constexpr' constant
- Line 96: declaration uses identifier '__rte_ring_hts_pos', which is a reserved identifier
- Line 153: macro 'RING_F_SP_ENQ' used to declare a constant; consider using a 'constexpr' constant
- Line 214: use nullptr
- Line 240: use nullptr
- Line 264: use nullptr
- Line 290: use nullptr
- Line 396: use nullptr
- Line 424: use nullptr
- Line 448: use nullptr
- Line 475: use nullptr
- Line 582: use nullptr
- Line 692: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_ELEM_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_enqueue_elems_32', which is a reserved identifier
- Line 17: variable 'i' is not initialized
- Line 18: use auto when initializing with a cast to avoid duplicating the type name
- Line 18: do not use C-style cast to convert between unrelated types
- Line 19: do not use C-style cast to convert between unrelated types
- Line 60: variable 'i' is not initialized
- Line 63: use auto when initializing with a cast to avoid duplicating the type name
- Line 63: do not use C-style cast to convert between unrelated types
- Line 64: do not use C-style cast to convert between unrelated types
- Line 93: variable 'i' is not initialized
- Line 96: use auto when initializing with a cast to avoid duplicating the type name
- Line 96: do not use C-style cast to convert between unrelated types
- Line 97: do not use C-style cast to convert between unrelated types
- Line 134: multiple declarations in a single statement reduces readability
- Line 134: variable 'scale' is not initialized
- Line 134: variable 'nr_idx' is not initialized
- Line 134: variable 'nr_num' is not initialized
- Line 134: variable 'nr_size' is not initialized
- Line 148: declaration uses identifier '__rte_ring_dequeue_elems_32', which is a reserved identifier
- Line 151: variable 'i' is not initialized
- Line 152: use auto when initializing with a cast to avoid duplicating the type name
- Line 152: do not use C-style cast to convert between unrelated types
- Line 153: do not use C-style cast to convert between unrelated types
- Line 194: variable 'i' is not initialized
- Line 197: use auto when initializing with a cast to avoid duplicating the type name
- Line 197: do not use C-style cast to convert between unrelated types
- Line 198: do not use C-style cast to convert between unrelated types
- Line 227: variable 'i' is not initialized
- Line 230: use auto when initializing with a cast to avoid duplicating the type name
- Line 230: do not use C-style cast to convert between unrelated types
- Line 231: do not use C-style cast to convert between unrelated types
- Line 264: multiple declarations in a single statement reduces readability
- Line 264: variable 'scale' is not initialized
- Line 264: variable 'nr_idx' is not initialized
- Line 264: variable 'nr_num' is not initialized
- Line 264: variable 'nr_size' is not initialized
- Line 315: declaration uses identifier '__rte_ring_do_enqueue_elem', which is a reserved identifier
- Line 320: multiple declarations in a single statement reduces readability
- Line 320: variable 'prod_next' is not initialized
- Line 321: variable 'free_entries' is not initialized
- Line 332: use nullptr
- Line 362: declaration uses identifier '__rte_ring_do_dequeue_elem', which is a reserved identifier
- Line 367: multiple declarations in a single statement reduces readability
- Line 367: variable 'cons_next' is not initialized
- Line 368: variable 'entries' is not initialized
- Line 380: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_GENERIC_PVT_H_', which is a reserved identifier
- Line 14: declaration uses identifier '__rte_ring_update_tail', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_move_prod_head', which is a reserved identifier
- Line 62: variable 'success' is not initialized
- Line 125: declaration uses identifier '__rte_ring_move_cons_head', which is a reserved identifier
- Line 131: variable 'success' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_HTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_HTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_hts_update_tail', which is a reserved identifier
- Line 28: variable 'tail' is not initialized
- Line 42: declaration uses identifier '__rte_ring_hts_head_wait', which is a reserved identifier
- Line 55: declaration uses identifier '__rte_ring_hts_move_prod_head', which is a reserved identifier
- Line 59: variable 'n' is not initialized
- Line 60: multiple declarations in a single statement reduces readability
- Line 113: declaration uses identifier '__rte_ring_hts_move_cons_head', which is a reserved identifier
- Line 117: variable 'n' is not initialized
- Line 118: multiple declarations in a single statement reduces readability
- Line 187: declaration uses identifier '__rte_ring_do_hts_enqueue_elem', which is a reserved identifier
- Line 191: multiple declarations in a single statement reduces readability
- Line 191: variable 'head' is not initialized
- Line 200: use nullptr
- Line 228: declaration uses identifier '__rte_ring_do_hts_dequeue_elem', which is a reserved identifier
- Line 232: multiple declarations in a single statement reduces readability
- Line 232: variable 'head' is not initialized
- Line 241: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_H_', which is a reserved identifier
- Line 170: variable 'tail' is not initialized
- Line 333: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ELEM_PVT_H_', which is a reserved identifier
- Line 31: declaration uses identifier '__rte_ring_st_get_tail', which is a reserved identifier
- Line 34: multiple declarations in a single statement reduces readability
- Line 34: variable 'n' is not initialized
- Line 34: variable 't' is not initialized
- Line 53: declaration uses identifier '__rte_ring_st_set_head_tail', which is a reserved identifier
- Line 56: variable 'pos' is not initialized
- Line 75: declaration uses identifier '__rte_ring_hts_get_tail', which is a reserved identifier
- Line 78: variable 'n' is not initialized
- Line 97: declaration uses identifier '__rte_ring_hts_set_head_tail', which is a reserved identifier
- Line 114: declaration uses identifier '__rte_ring_do_enqueue_start', which is a reserved identifier
- Line 117: multiple declarations in a single statement reduces readability
- Line 117: variable 'head' is not initialized
- Line 117: variable 'next' is not initialized
- Line 137: use nullptr
- Line 147: declaration uses identifier '__rte_ring_do_dequeue_start', which is a reserved identifier
- Line 151: multiple declarations in a single statement reduces readability
- Line 151: variable 'head' is not initialized
- Line 151: variable 'next' is not initialized
- Line 174: use nullptr
- Line 11: declaration uses identifier '_RTE_RING_PEEK_ZC_H_', which is a reserved identifier
- Line 98: declaration uses identifier '__rte_ring_get_elem_addr', which is a reserved identifier
- Line 101: multiple declarations in a single statement reduces readability
- Line 101: variable 'scale' is not initialized
- Line 101: variable 'nr_idx' is not initialized
- Line 102: use auto when initializing with a cast to avoid duplicating the type name
- Line 102: do not use C-style cast to convert between unrelated types
- Line 124: declaration uses identifier '__rte_ring_do_enqueue_zc_elem_start', which is a reserved identifier
- Line 128: multiple declarations in a single statement reduces readability
- Line 128: variable 'head' is not initialized
- Line 128: variable 'next' is not initialized
- Line 151: use nullptr
- Line 291: variable 'tail' is not initialized
- Line 331: declaration uses identifier '__rte_ring_do_dequeue_zc_elem_start', which is a reserved identifier
- Line 335: multiple declarations in a single statement reduces readability
- Line 335: variable 'head' is not initialized
- Line 335: variable 'next' is not initialized
- Line 359: use nullptr
- Line 497: variable 'tail' is not initialized
- Line 11: declaration uses identifier '_RTE_RING_RTS_H_', which is a reserved identifier
- Line 11: declaration uses identifier '_RTE_RING_RTS_ELEM_PVT_H_', which is a reserved identifier
- Line 25: declaration uses identifier '__rte_ring_rts_update_tail', which is a reserved identifier
- Line 27: multiple declarations in a single statement reduces readability
- Line 53: declaration uses identifier '__rte_ring_rts_head_wait', which is a reserved identifier
- Line 56: variable 'max' is not initialized
- Line 70: declaration uses identifier '__rte_ring_rts_move_prod_head', which is a reserved identifier
- Line 74: variable 'n' is not initialized
- Line 75: multiple declarations in a single statement reduces readability
- Line 128: declaration uses identifier '__rte_ring_rts_move_cons_head', which is a reserved identifier
- Line 132: variable 'n' is not initialized
- Line 133: multiple declarations in a single statement reduces readability
- Line 202: declaration uses identifier '__rte_ring_do_rts_enqueue_elem', which is a reserved identifier
- Line 206: multiple declarations in a single statement reduces readability
- Line 206: variable 'head' is not initialized
- Line 215: use nullptr
- Line 243: declaration uses identifier '__rte_ring_do_rts_dequeue_elem', which is a reserved identifier
- Line 247: multiple declarations in a single statement reduces readability
- Line 247: variable 'head' is not initialized
- Line 256: use nullptr
- Line 6: declaration uses identifier '_RTE_RTM_H_', which is a reserved identifier
- Line 6: macro '_RTE_RTM_H_' used to declare a constant; consider using a 'constexpr' constant
- Line 26: function-like macro 'RTE_XABORT_CODE' used; consider a 'constexpr' template function
- Line 6: declaration uses identifier '_RTE_RWLOCK_X86_64_H_', which is a reserved identifier
- Line 6: declaration uses identifier '_RTE_SPINLOCK_X86_64_H_', which is a reserved identifier
- Line 80: multiple declarations in a single statement reduces readability
- Line 80: variable 'retries' is not initialized
- Line 109: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type 'int' is implementation-defined
- Line 74: do not use pointer arithmetic
- Line 6: declaration uses identifier '_RTE_TRACE_POINT_H_', which is a reserved identifier
- Line 78: variadic macro 'RTE_TRACE_POINT' used; consider using a 'constexpr' variadic template function
- Line 151: macro '__RTE_TRACE_EMIT_STRING_LEN_MAX' used to declare a constant; consider using a 'constexpr' constant
- Line 153: declaration uses identifier '__RTE_TRACE_EVENT_HEADER_SZ', which is a reserved identifier
- Line 211: declaration uses identifier '__rte_trace_point_fp_is_enabled', which is a reserved identifier
- Line 227: declaration uses identifier '__rte_trace_mem_per_thread_alloc', which is a reserved identifier
- Line 245: declaration uses identifier '__rte_trace_point_emit_field', which is a reserved identifier
- Line 265: declaration uses identifier '__rte_trace_point_register', which is a reserved identifier
- Line 379: declaration uses identifier '__rte_trace_point_emit_header_generic', which is a reserved identifier
- Line 379: function-like macro '__rte_trace_point_emit_header_generic' used; consider a 'constexpr' template function
- Line 380: function-like macro '__rte_trace_point_emit_header_fp' used; consider a 'constexpr' template function
- Line 11: declaration uses identifier '_RTE_UUID_H_', which is a reserved identifier
- Line 24: do not declare C-style arrays, use std::array<> instead
- Line 15: nested namespaces can be concatenated
- Line 20: do not declare C-style arrays, use std::array<> instead
- Line 35: nested namespaces can be concatenated
- Line 112: narrowing conversion from constant value 170 (0x000000AA) of type 'int' to signed type 'value_type' (aka 'char') is implementation-defined