git: 1fc839f48921 - main - if_vxlan(4): Add missing statistic for input packets
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 05 Oct 2022 10:39:53 UTC
The branch main has been updated by kp:
URL: https://cgit.FreeBSD.org/src/commit/?id=1fc839f48921919dea386966e0ce4f20c26dcecf
commit 1fc839f48921919dea386966e0ce4f20c26dcecf
Author: Zhenlei Huang <zlei.huang@gmail.com>
AuthorDate: 2022-10-05 10:38:30 +0000
Commit: Kristof Provost <kp@FreeBSD.org>
CommitDate: 2022-10-05 10:38:30 +0000
if_vxlan(4): Add missing statistic for input packets
Event: Aberdeen hackathon 2022
Reviewed by: bryanv, kp
Differential Revision: https://reviews.freebsd.org/D36841
---
sys/net/if_vxlan.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/net/if_vxlan.c b/sys/net/if_vxlan.c
index cba2ba4b0a16..500eb520cd1b 100644
--- a/sys/net/if_vxlan.c
+++ b/sys/net/if_vxlan.c
@@ -2894,6 +2894,7 @@ vxlan_input(struct vxlan_socket *vso, uint32_t vni, struct mbuf **m0,
m->m_pkthdr.csum_data = 0;
}
+ if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1);
(*ifp->if_input)(ifp, m);
*m0 = NULL;
error = 0;