[ovs-dev] [RFC PATCH 00/10] set_field action support as preliminary OF12

Isaku Yamahata yamahata at valinux.co.jp
Wed Jun 27 04:26:55 UTC 2012


Hi. This patch series is based on Simon's patch series.

This patch is preliminary to support set_field action.
Although it is only compile tested, I'd like to hear if this is the right
direction before going further.

Once this is done, I'd like to add instruction support next.
For that, introduce OFPACT_IT_xxx and teach struct action_xlate_ctx and
do_xlate_actions() instructions. Is this the dirction to go? Or other way?

My plan is
- compete this (if this direction is ok)
- integrate this patch series into Simon's series.
- instruction support
- integrate Ravi's MPLS/VLAN patch

The code is available at (This includes rebased Ravi's patches)
git://github.com/yamahata/openvswitch.git mpls/june-22-2012-ravi

thanks,

Isaku Yamahata (10):
  ofproto-dpif/xlate_autopath: unbreak xlate_autpath()
  lib/meta-flow: use symbolic value instead of ~7
  openflow1.2: add OFP12_ACTION_SET_FIELD_ALIGN = 8
  lib/ofp-actions: simplfy ofpact_form_openflow1x()
  meta-flow.h: add MFF_REG_END
  lib/ofp-util: preparation for OF12 of ofp-util
  lib/ofp-actions: introduce ofpaction_set_field for of12 support
  ofp-actions/set-field: introduce set_field related functions
  ofp-actions: plumb set-field action
  ofp-actions: removed unnecessary ofp-actions

 include/openflow/openflow-1.2.h |    2 +
 lib/automake.mk                 |    2 +
 lib/meta-flow.c                 |    2 +-
 lib/meta-flow.h                 |    1 +
 lib/ofp-actions.c               |  245 +++++-----------------
 lib/ofp-actions.h               |   60 ++----
 lib/ofp-parse.c                 |   57 +----
 lib/ofp-print.c                 |    1 +
 lib/ofp-util.c                  |    3 +
 lib/ofp-util.def                |   20 ++
 lib/ofp-util.h                  |    6 +
 lib/set-field.c                 |  447 +++++++++++++++++++++++++++++++++++++++
 lib/set-field.h                 |   57 +++++
 ofproto/ofproto-dpif.c          |   50 +----
 14 files changed, 621 insertions(+), 332 deletions(-)
 create mode 100644 lib/set-field.c
 create mode 100644 lib/set-field.h




More information about the dev mailing list