fix age calculations (yet again); entries in the q have values

relative to the head

MFC after:	3 days
This commit is contained in:
Sam Leffler 2008-09-06 17:04:44 +00:00
parent 8191aa7c0b
commit 7705b0838b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=182819

View File

@ -101,7 +101,7 @@ typedef struct {
#define _AGEQ_ENQUEUE(_ifq, _m, _qlen, _age) do { \
(_m)->m_nextpkt = NULL; \
if ((_ifq)->ifq_tail != NULL) { \
_age -= M_AGE_GET((_ifq)->ifq_tail); \
_age -= M_AGE_GET((_ifq)->ifq_head); \
(_ifq)->ifq_tail->m_nextpkt = (_m); \
} else { \
(_ifq)->ifq_head = (_m); \