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

Ben Pfaff blp at nicira.com
Wed Jul 11 21:29:57 UTC 2012


On Thu, Jul 12, 2012 at 12:06:36AM +1200, Joe Stringer wrote:
> <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.

Please repost with one choice or the other.  Thank you.



More information about the dev mailing list