[ovs-dev] [PATCH 2/2] ofp-actions: Implement writing to metadata field

Joe Stringer joe at wand.net.nz
Wed Jul 11 12:06:36 UTC 2012


<snip>
> +/* XXX Unused function */
> +static void
> +ofpact_metadata_to_openflow11(const struct ofpact_metadata *om,
> +                              struct ofpbuf *out)
> +{
> +    struct ofp11_instruction_write_metadata *oiwm;
> +
> +    oiwm = instruction_put_OFPIT11_WRITE_METADATA(out);
> +    oiwm->metadata = htonll(om->metadata);
> +    oiwm->metadata_mask = htonll(om->mask);
> +}
> +

Woops - left this in. It could perhaps be used in
ofpacts_put_openflow11_write_metadata() below, or just dropped.



More information about the dev mailing list