src/dpdk/drivers/net/enic/enic_flow.c
static const struct enic_action_cap *
enic_get_action_cap(struct enic *enic)
{
	const struct enic_action_cap *ea;
	uint8_t actions;

	actions = enic->filter_actions;
	if (actions & FILTER_ACTION_DROP_FLAG)
		ea = &enic_action_cap[FILTER_ACTION_DROP_FLAG];
	else if (actions & FILTER_ACTION_FILTER_ID_FLAG)
		ea = &enic_action_cap[FILTER_ACTION_FILTER_ID_FLAG];
	else
		ea = &enic_action_cap[FILTER_ACTION_RQ_STEERING_FLAG];
	return ea;
}
/** Get the actions for this NIC version. */
Get the actions for this NIC version.
Get the actions for this NIC version .
static const struct enic_action_cap *
enic_get_action_cap(struct enic *enic)
{
	const struct enic_action_cap *ea;
	uint8_t actions;
	actions = enic->filter_actions;
	if (actions & FILTER_ACTION_DROP_FLAG)
		ea = &enic_action_cap[FILTER_ACTION_DROP_FLAG];
	else if (actions & FILTER_ACTION_FILTER_ID_FLAG)
		ea = &enic_action_cap[FILTER_ACTION_FILTER_ID_FLAG];
	else
		ea = &enic_action_cap[FILTER_ACTION_RQ_STEERING_FLAG];
	return ea;
}
static const struct enic_action_cap * enic_get_action_cap ( struct enic * enic ) { const struct enic_action_cap * ea ; uint8_t actions ; actions = enic -> filter_actions ; if ( actions & FILTER_ACTION_DROP_FLAG ) ea = & enic_action_cap [ FILTER_ACTION_DROP_FLAG ] ; else if ( actions & FILTER_ACTION_FILTER_ID_FLAG ) ea = & enic_action_cap [ FILTER_ACTION_FILTER_ID_FLAG ] ; else ea = & enic_action_cap [ FILTER_ACTION_RQ_STEERING_FLAG ] ; return ea ; }
Get the actions for this NIC version.
Get the actions for this NIC version .