svn commit: r261710 - head/sys/netinet6
Christian Brueffer
brueffer at FreeBSD.org
Mon Feb 10 14:47:52 UTC 2014
Author: brueffer
Date: Mon Feb 10 14:47:51 2014
New Revision: 261710
URL: http://svnweb.freebsd.org/changeset/base/261710
Log:
Only count table lookups when we're actually processing packets.
PR: 183462
Submitted by: Sven-Thorsten Dietrich <thebigcorporation at gmail.com>
Reviewed by: bms
MFC after: 1 month
Modified:
head/sys/netinet6/ip6_mroute.c
Modified: head/sys/netinet6/ip6_mroute.c
==============================================================================
--- head/sys/netinet6/ip6_mroute.c Mon Feb 10 14:36:51 2014 (r261709)
+++ head/sys/netinet6/ip6_mroute.c Mon Feb 10 14:47:51 2014 (r261710)
@@ -283,7 +283,6 @@ static VNET_DEFINE(int, pim6);
#define MF6CFIND(o, g, rt) do { \
struct mf6c *_rt = mf6ctable[MF6CHASH(o,g)]; \
rt = NULL; \
- MRT6STAT_INC(mrt6s_mfc_lookups); \
while (_rt) { \
if (IN6_ARE_ADDR_EQUAL(&_rt->mf6c_origin.sin6_addr, &(o)) && \
IN6_ARE_ADDR_EQUAL(&_rt->mf6c_mcastgrp.sin6_addr, &(g)) && \
@@ -1099,6 +1098,7 @@ X_ip6_mforward(struct ip6_hdr *ip6, stru
* Determine forwarding mifs from the forwarding cache table
*/
MF6CFIND(ip6->ip6_src, ip6->ip6_dst, rt);
+ MRT6STAT_INC(mrt6s_mfc_lookups);
/* Entry exists, so forward if necessary */
if (rt) {
More information about the svn-src-all
mailing list