MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sfc_ft_counters_reset

Function sfc_ft_counters_reset

dpdk/drivers/net/sfc/sfc_flow_tunnel.c:457–471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455}
456
457void
458sfc_ft_counters_reset(struct sfc_adapter *sa)
459{
460 unsigned int i;
461
462 SFC_ASSERT(sfc_adapter_is_locked(sa));
463 SFC_ASSERT(sa->state != SFC_ETHDEV_STARTED);
464
465 for (i = 0; i < RTE_DIM(sa->ft_ctx_pool); ++i) {
466 struct sfc_ft_ctx *ft_ctx = &sa->ft_ctx_pool[i];
467
468 ft_ctx->reset_tunnel_hit_counter = 0;
469 ft_ctx->switch_hit_counter = 0;
470 }
471}

Callers 1

sfc_flow_startFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected