From aa79cc475506fbbcce5944da36c92776a65388bb Mon Sep 17 00:00:00 2001 From: Neil McKee Date: Fri, 27 Sep 2024 14:50:05 -0700 Subject: [PATCH] mod_vpp: suppress /proc/net/dev polling of Linux interface managed by VPP --- src/Linux/mod_vpp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Linux/mod_vpp.c b/src/Linux/mod_vpp.c index 72b3ed7..0196e86 100644 --- a/src/Linux/mod_vpp.c +++ b/src/Linux/mod_vpp.c @@ -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