flow-monitor: Fix clang-tidy warnings

This commit is contained in:
F5
2023-11-22 16:12:05 +08:00
parent 2f84697f6b
commit c4783e254b
3 changed files with 12 additions and 6 deletions

View File

@@ -162,7 +162,8 @@ FlowMonitor::ReportFirstTx(Ptr<FlowProbe> probe,
#ifdef NS3_MTP
while (m_lock.exchange(true, std::memory_order_acquire))
;
{
};
#endif
TrackedPacket& tracked = m_trackedPackets[std::make_pair(flowId, packetId)];
@@ -203,7 +204,8 @@ FlowMonitor::ReportForwarding(Ptr<FlowProbe> probe,
#ifdef NS3_MTP
while (m_lock.exchange(true, std::memory_order_acquire))
;
{
};
#endif
std::pair<FlowId, FlowPacketId> key(flowId, packetId);
@@ -244,7 +246,8 @@ FlowMonitor::ReportLastRx(Ptr<FlowProbe> probe,
#ifdef NS3_MTP
while (m_lock.exchange(true, std::memory_order_acquire))
;
{
};
#endif
auto tracked = m_trackedPackets.find(std::make_pair(flowId, packetId));
@@ -326,7 +329,8 @@ FlowMonitor::ReportDrop(Ptr<FlowProbe> probe,
#ifdef NS3_MTP
while (m_lock.exchange(true, std::memory_order_acquire))
;
{
};
#endif
probe->AddPacketDropStats(flowId, packetSize, reasonCode);

View File

@@ -149,7 +149,8 @@ Ipv4FlowClassifier::Classify(const Ipv4Header& ipHeader,
#ifdef NS3_MTP
while (m_lock.exchange(true, std::memory_order_acquire))
;
{
};
#endif
// try to insert the tuple, but check if it already exists

View File

@@ -150,7 +150,8 @@ Ipv6FlowClassifier::Classify(const Ipv6Header& ipHeader,
#ifdef NS3_MTP
while (m_lock.exchange(true, std::memory_order_acquire))
;
{
};
#endif
// try to insert the tuple, but check if it already exists