git: 00399a54c561 - stable/13 - if_vxlan(4): Add missing statistic for input packets
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 11 Jan 2023 10:39:55 UTC
The branch stable/13 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=00399a54c561e625e6674ecf3b12e794aa712d30 commit 00399a54c561e625e6674ecf3b12e794aa712d30 Author: Zhenlei Huang <zlei.huang@gmail.com> AuthorDate: 2022-10-05 10:38:30 +0000 Commit: Zhenlei Huang <zlei@FreeBSD.org> CommitDate: 2023-01-11 10:35:59 +0000 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) --- 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 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;