git: fcc723121376 - stable/12 - if_vxlan(4): Add missing statistic for input packets
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 13 Jan 2023 04:33:35 UTC
The branch stable/12 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=fcc7231213760b945038b0adca982f1ad38be79e commit fcc7231213760b945038b0adca982f1ad38be79e Author: Zhenlei Huang <zlei.huang@gmail.com> AuthorDate: 2022-10-05 10:38:30 +0000 Commit: Zhenlei Huang <zlei@FreeBSD.org> CommitDate: 2023-01-13 04:30:20 +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) (cherry picked from commit 00399a54c561e625e6674ecf3b12e794aa712d30) --- 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 7cb0471b8667..fc59e9fef820 100644 --- a/sys/net/if_vxlan.c +++ b/sys/net/if_vxlan.c @@ -2607,6 +2607,7 @@ vxlan_input(struct vxlan_socket *vso, uint32_t vni, struct mbuf **m0, m->m_pkthdr.rcvif = ifp; M_SETFIB(m, ifp->if_fib); + if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1); error = netisr_queue_src(NETISR_ETHER, 0, m); *m0 = NULL;