From e20525cad9089e2033ca67b34ea5e5d628d9c653 Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Sat, 31 May 2008 10:47:24 -0700 Subject: [PATCH] add small comment --- src/common/packet-metadata.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common/packet-metadata.cc b/src/common/packet-metadata.cc index 0c5345415..a9d1c041e 100644 --- a/src/common/packet-metadata.cc +++ b/src/common/packet-metadata.cc @@ -496,6 +496,11 @@ PacketMetadata::ReplaceTail (PacketMetadata::SmallItem *item, available); NS_ASSERT (m_data != 0); + /* If the tail we want to replace is located at the end of the data array, + * and if there is extra room at the end of this array, then, + * we can try to use that extra space to avoid falling in the slow + * path below. + */ if (m_tail + available == m_used && m_used == m_data->m_dirtyEnd) {