Date: Fri, 8 Apr 2022 00:03:23 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: f44692ce0c92 - main - ng_tag: Move totlen fully under #ifdef NG_TAG_DEBUG. Message-ID: <202204080003.23803NNh086290@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=f44692ce0c924294a3a7bd54e474ba8061af34e2 commit f44692ce0c924294a3a7bd54e474ba8061af34e2 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-08 00:01:27 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-08 00:01:27 +0000 ng_tag: Move totlen fully under #ifdef NG_TAG_DEBUG. --- sys/netgraph/ng_tag.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/netgraph/ng_tag.c b/sys/netgraph/ng_tag.c index d46c463fc53a..8c93f994e993 100644 --- a/sys/netgraph/ng_tag.c +++ b/sys/netgraph/ng_tag.c @@ -509,13 +509,15 @@ ng_tag_rcvdata(hook_p hook, item_p item) uint32_t cookie; hinfo_p dhip; hook_p dest; +#ifdef NG_TAG_DEBUG int totlen; +#endif int found = 0, error = 0; m = NGI_M(item); /* 'item' still owns it.. we are peeking */ +#ifdef NG_TAG_DEBUG totlen = m->m_pkthdr.len; -#ifdef NG_TAG_DEBUG hip->stats.recvFrames++; hip->stats.recvOctets += totlen; #endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204080003.23803NNh086290>