]> git.proxmox.com Git - mirror_ovs.git/commit - lib/nx-match.h
ofproto: Add pipeline fields support for OF 1.5 packet-out
authorYi-Hung Wei <yihung.wei@gmail.com>
Mon, 15 May 2017 17:04:57 +0000 (10:04 -0700)
committerBen Pfaff <blp@ovn.org>
Wed, 31 May 2017 21:54:10 +0000 (14:54 -0700)
commitd7892c814a8a9cf5681d34c6470bc9d841f4ad21
tree3f0a70672a3781b56f3b6f8ae7e41178d4721c94
parent577bfa9f687936d53970d0ff41928c3a727720e8
ofproto: Add pipeline fields support for OF 1.5 packet-out

This patch decodes pipeline fields from a packet-out message, and populates
the pipeline fields into datapath. Error OFPERR_OFPBRC_PIPELINE_FIELDS_ONLY
is returned if the match field of a packet-out messages contains any
non pipeline fields. Currently, the supported pipeline fields
are as following.

* metadata fields:
    - in_port, in_port_oxm

* tunnel fields:
    - tun_id, tun_src, tun_dst, tun_ipv6_src, tun_ipv6_dst
    - tun_gbp_id, tun_gpb_flags, tun_flags
    - tun_metadata0 - tun_metadata63

* register fields:
    - metadata
    - reg0 - reg-15, xreg0 - xreg7, xxreg0 - xxreg3

Signed-off-by: Yi-Hung Wei <yihung.wei@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
include/openvswitch/meta-flow.h
include/openvswitch/ofp-errors.h
lib/meta-flow.c
lib/nx-match.c
lib/nx-match.h
lib/ofp-util.c
ofproto/ofproto.c
tests/ofp-print.at
utilities/ovs-ofctl.c