Page MenuHomeFreeBSD

Convert bpf(9) counters to counter(9).

Authored by melifaro on Mar 17 2018, 11:35 PM.



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. Fix this by using standard counter(9) API for each counter.

Diff Detail

rS FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

melifaro created this revision.Mar 17 2018, 11:35 PM
kp accepted this revision as: kp.Mar 18 2018, 11:23 AM

Looks sane to me.

This revision is now accepted and ready to land.Mar 18 2018, 11:23 AM
This revision was automatically updated to reflect the committed changes.