Skip to content

Commit

Permalink
mod_vpp: suppress /proc/net/dev polling of Linux interface managed by…
Browse files Browse the repository at this point in the history
… VPP
  • Loading branch information
sflow committed Sep 27, 2024
1 parent a2824f3 commit aa79cc4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Linux/mod_vpp.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,11 @@ extern "C" {
if(adaptor) {
HSPAdaptorNIO *nio = ADAPTOR_NIO(adaptor);
if(nio) {
// nake sure hsflowd does not poll counters for this interface
// if it appears in /proc/net/dev. Those counters will be wrong
// if VPP is using the port.
nio->procNetDev = NO;

nio->et_found = HSP_ETCTR_MC_IN
| HSP_ETCTR_MC_OUT
| HSP_ETCTR_BC_IN
Expand Down

0 comments on commit aa79cc4

Please sign in to comment.