src/dpdk/drivers/net/mvpp2/mrvl_mtr.c
static struct mrvl_mtr_profile *
mrvl_mtr_profile_from_id(struct mrvl_priv *priv, uint32_t meter_profile_id)
{
	struct mrvl_mtr_profile *profile = NULL;

	LIST_FOREACH(profile, &priv->profiles, next)
		if (profile->profile_id == meter_profile_id)
			break;

	return profile;
}
/**
 * Get profile using it's id.
 *
 * @param priv Pointer to the port's private data.
 * @param meter_profile_id Profile id used by the meter.
 * @returns Pointer to the profile if exists, NULL otherwise.
 */
Get profile using it's id.
@param priv Pointer to the port's private data.
@param meter_profile_id Profile id used by the meter.
@returns Pointer to the profile if exists, NULL otherwise.
Get profile using it ' s id . @param priv Pointer to the port ' s private data . @param meter_profile_id Profile id used by the meter . @returns Pointer to the profile if exists NULL otherwise .
static struct mrvl_mtr_profile *
mrvl_mtr_profile_from_id(struct mrvl_priv *priv, uint32_t meter_profile_id)
{
	struct mrvl_mtr_profile *profile = NULL;
	LIST_FOREACH(profile, &priv->profiles, next)
		if (profile->profile_id == meter_profile_id)
			break;
	return profile;
}
static struct mrvl_mtr_profile * mrvl_mtr_profile_from_id ( struct mrvl_priv * priv , uint32_t meter_profile_id ) { struct mrvl_mtr_profile * profile = NULL ; LIST_FOREACH ( profile , & priv -> profiles , next ) if ( profile -> profile_id == meter_profile_id ) break ; return profile ; }
Get profile using it's id.
Get profile using it ' s id .