[ovs-dev] [PATCH 13/18] actions: Allow secondary decoding of a flow

Jarno Rajahalme jarno.rajahalme at nsn.com
Fri Dec 28 06:23:47 UTC 2012


On Dec 27, 2012, at 7:23 , ext Simon Horman wrote:

> 
> +static ovs_be16
> +actions_allow_l3_extraction(const struct ofpact *ofpacts, size_t ofpacts_len)
> +{
> +    const struct ofpact *a;
> +
> +    OFPACT_FOR_EACH (a, ofpacts, ofpacts_len) {
> +        if (a->type == OFPACT_EXIT)
> +            break;
> +        if (a->type == OFPACT_POP_MPLS)
> +            return ofpact_get_POP_MPLS(a)->ethertype;
> +    }
> +
> +    return htons(0);
> +}
> +

I haven't checked this, but it appears that in places where this is used, flow->encap_dl_type could be used instead.


More information about the dev mailing list