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

Function nfp_mtr_config

dpdk/drivers/net/nfp/nfp_mtr.c:632–651  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

630}
631
632static void
633nfp_mtr_config(uint32_t mtr_id,
634 int shared,
635 struct rte_mtr_params *params,
636 struct nfp_mtr_profile *mtr_profile,
637 struct nfp_mtr_policy *mtr_policy,
638 struct nfp_mtr *mtr)
639{
640 mtr->mtr_id = mtr_id;
641
642 if (shared != 0)
643 mtr->shared = true;
644
645 if (params->meter_enable != 0)
646 mtr->enable = true;
647
648 mtr->mtr_profile = mtr_profile;
649 mtr->mtr_policy = mtr_policy;
650 mtr->stats_mask = params->stats_mask;
651}
652
653/**
654 * Create meter rules.

Callers 1

nfp_mtr_createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected