aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhenlei Huang <zlei.huang@gmail.com>2022-10-05 10:38:30 +0000
committerZhenlei Huang <zlei@FreeBSD.org>2023-01-11 10:35:59 +0000
commit00399a54c561e625e6674ecf3b12e794aa712d30 (patch)
tree27b99fd2bb9e0ff40e02000623ea928466a45cb2
parent8819353dd0dfddb9bcd156a2773efc3770d09eff (diff)
downloadsrc-00399a54c561e625e6674ecf3b12e794aa712d30.tar.gz
src-00399a54c561e625e6674ecf3b12e794aa712d30.zip
if_vxlan(4): Add missing statistic for input packets
Event: Aberdeen hackathon 2022 Reviewed by: bryanv, kp Approved by: kp (mentor) Differential Revision: https://reviews.freebsd.org/D36841 (cherry picked from commit 1fc839f48921919dea386966e0ce4f20c26dcecf)
-rw-r--r--sys/net/if_vxlan.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net/if_vxlan.c b/sys/net/if_vxlan.c
index cf1f96cc0c1f..f8e8c413ea62 100644
--- a/sys/net/if_vxlan.c
+++ b/sys/net/if_vxlan.c
@@ -2889,6 +2889,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;