This patch adds instruction OF11 apply-actions/goto-table supports. The approach is to introduce OFPACT_ which corresponds to instruction. Although I haven't tested it fully yet, I'd like to get feed back before going too further. It this approach is sane?
If so, I'll go finish it. (Or go for other apporach) This patch set is based on master branch, however ofp-msg patch series is comming, and it conflicts with this patch series. thanks, Isaku Yamahata (17): ofp-actions: simplify ofpacts_from_openflow1[01] ofp-actions: teach action decoder all action structure padded to 8 ofp-actions: introduce nest/unnest helper functions ofp-util: introduce actions corresponding to instructions ofp-actions: introduce ofp actions for instructions ofp-actions: helper function to check if instruction ofp-actions: instruction formatter ofp-parse: parser for instructions ofp-actions: implement instruction encoder ofproto-dpif: refactor do_xlate_actions(), no logic change ofproto-dpif: teach do_xlate_action() OFPACT_APPLY_ACTIONS ofproto-dpif: teach do_xlate_action() goto-table instruction ofproto/ofproto-dpif.c: apply_actions ofproto-dpif: output OFPP_TABLE doesn't sent packet to table id = 0 ofproto-dpif: refactor rule_dpif_lookup() ofproto-dpif: teach goto-table instruction packet-in packets, ofproto-dpif: factor out packet update logic lib/ofp-actions.c | 441 +++++++++++++++++++++++++++++++++++++++++------- lib/ofp-actions.h | 35 ++++- lib/ofp-parse.c | 41 +++++ lib/ofp-util.c | 29 +++ lib/ofp-util.def | 10 + lib/ofp-util.h | 3 + lib/packets.c | 42 +++++ lib/packets.h | 2 + ofproto/ofproto-dpif.c | 373 ++++++++++++++++++++++------------------- 9 files changed, 739 insertions(+), 237 deletions(-) _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev