Lines Matching defs:profile
178 struct rte_meter_trtcm_profile profile;
268 /* Find profile */
279 &mp_data->profile);
283 /* Meter profile */
326 &mp[mp_id].profile,
2174 * Action profile
2387 rte_table_action_profile_action_register(struct rte_table_action_profile *profile,
2394 if ((profile == NULL) ||
2395 profile->frozen ||
2397 (profile->cfg.action_mask & (1LLU << type)) ||
2444 action_cfg_set(&profile->cfg, type, action_config);
2450 rte_table_action_profile_freeze(struct rte_table_action_profile *profile)
2452 if (profile->frozen)
2455 profile->cfg.action_mask |= 1LLU << RTE_TABLE_ACTION_FWD;
2456 action_data_offset_set(&profile->data, &profile->cfg);
2457 profile->frozen = 1;
2463 rte_table_action_profile_free(struct rte_table_action_profile *profile)
2465 if (profile == NULL)
2468 free(profile);
2485 rte_table_action_create(struct rte_table_action_profile *profile,
2491 if ((profile == NULL) ||
2492 (profile->frozen == 0))
2504 memcpy(&action->cfg, &profile->cfg, sizeof(profile->cfg));
2505 memcpy(&action->data, &profile->data, sizeof(profile->data));
2637 struct rte_table_action_meter_profile *profile)
2645 (profile == NULL))
2648 if (profile->alg != RTE_TABLE_ACTION_METER_TRTCM)
2662 /* Install new profile */
2663 status = rte_meter_trtcm_profile_config(&mp_data->profile,
2664 &profile->trtcm);
2691 /* Uninstall profile */