Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 May 2008 18:16:38 +0500
From:      rihad <rihad@mail.ru>
To:        freebsd-net@freebsd.org
Subject:   if_var.h micro-optimization
Message-ID:  <483FFE36.7050006@mail.ru>

next in thread | raw e-mail | index | archive | help
Not sure if this is a worthwhile optimization? FreeBSD 7.0

--- /usr/src/sys/net/if_var.h   2007-12-07 09:46:08.000000000 +0400
+++ if_var.h    2008-05-30 18:10:25.000000000 +0500
@@ -282,7 +282,8 @@
         if (m) {                                                \
                 if (((ifq)->ifq_head = (m)->m_nextpkt) == NULL) \
                         (ifq)->ifq_tail = NULL;                 \
-               (m)->m_nextpkt = NULL;                          \
+               else                                            \
+                       (m)->m_nextpkt = NULL;                  \
                 (ifq)->ifq_len--;                               \
         }                                                       \
  } while (0)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?483FFE36.7050006>