Summary: | net: incorrect BPF stats | ||
---|---|---|---|
Product: | Base System | Reporter: | elofu17 |
Component: | kern | Assignee: | Alexander V. Chernikov <melifaro> |
Status: | Closed FIXED | ||
Severity: | Affects Many People | CC: | gonzo, melifaro |
Priority: | --- | ||
Version: | 10.1-RELEASE | ||
Hardware: | Any | ||
OS: | Any |
Description
elofu17
2015-12-14 16:38:00 UTC
Any comments to this bug? It's very bad (and confusing) when the statistics from tools show weird/incorrect values. Especially in tools like snort, which calculate the percentage of drops/missing/unhandled packets. There one can see negative percentages or that the percentage of analyzed packets is more than 100%, etc. A commit references this bug: Author: melifaro Date: Tue Mar 20 22:57:06 UTC 2018 New revision: 331275 URL: https://svnweb.freebsd.org/changeset/base/331275 Log: Use count(9) api for the bpf(4) statistics. Currently each bfp descriptor uses u64 variables to maintain its counters. On interfaces with high packet rate this leads to unnecessary contention and inaccurate reporting. PR: kern/205320 Reported by: elofu17 at hotmail.com MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D14726 Changes: head/sys/net/bpf.c head/sys/net/bpfdesc.h Alexander, can this PR be closed or is there work pending? Thanks |