This patch adds instruction OF11 apply-actions/goto-table supports.
Now the patch is in good shape and unit tests pass.
The last patch (6/6) is just for showing how write-actions will be, and
the action-set support is on my TODO yet.
Change v4 -> v5:
- improved ofpact_instruction_name_from_type
- ignore unsuported actions as Ben suggested
Changes v3 -> v4:
- patch reorganization
- unit test
- allow encoder to return error
Changes v2 -> v3:
- introduce OFPACT_{CLEAR_ACTIONS, WRITE_ACTIONS, GOTO_TABLE}
Changes v1 -> v2:
- introduce ofpact_instruction to represent instruction delimiter
thanks,
Isaku Yamahata (6):
lib/ofp-actions: improve ofpact_instruction_name_from_type()
instruction: support goto-table action
ofproto-dpif: refactor rule_dpif_lookup() for table miss whose id > 0
ofproto-dpif: teach goto-table instruction packet-in
instruction/clear-actions: string parser/formater, of packet
decoder/encoder
instruction/write-actions: add text parser/formater, of packet
decoder/encoder
lib/ofp-actions.c | 233 +++++++++++++++++++++++++++++++++++++++-------
lib/ofp-actions.h | 31 ++++++-
lib/ofp-parse.c | 120 ++++++++++++++++++++++--
ofproto/ofproto-dpif.c | 75 +++++++++++----
tests/ofp-actions.at | 44 +++++++--
utilities/ovs-ofctl.8.in | 25 +++++
6 files changed, 457 insertions(+), 71 deletions(-)
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev