| 162 | } |
| 163 | |
| 164 | static int |
| 165 | nfp_mtr_profile_conf_insert(uint32_t mtr_profile_id, |
| 166 | struct rte_mtr_meter_profile *profile, |
| 167 | struct nfp_mtr_profile *mtr_profile) |
| 168 | { |
| 169 | mtr_profile->profile_id = mtr_profile_id; |
| 170 | mtr_profile->in_use = false; |
| 171 | |
| 172 | return nfp_mtr_profile_conf_mod(mtr_profile_id, profile, |
| 173 | &mtr_profile->conf); |
| 174 | } |
| 175 | |
| 176 | static struct nfp_mtr_profile * |
| 177 | nfp_mtr_profile_search(struct nfp_mtr_priv *priv, uint32_t mtr_profile_id) |
no test coverage detected